|
@@ -1,11 +1,13 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
|
-import { View } from '@tarojs/components'
|
|
2
|
+import { View, Block } from '@tarojs/components'
|
3
|
3
|
import dayjs from 'dayjs'
|
4
|
4
|
|
5
|
|
-import './index.scss'
|
6
|
5
|
import CellBlock from './CellBlock'
|
7
|
6
|
import Statement from '../../components/Statement'
|
8
|
7
|
import ContactConsultant from '../../components/ContactConsultant'
|
|
8
|
+import NamedIcon from '../../components/NamedIcon'
|
|
9
|
+
|
|
10
|
+import './index.scss'
|
9
|
11
|
|
10
|
12
|
export default class extends Component {
|
11
|
13
|
config = {
|
|
@@ -18,6 +20,7 @@ export default class extends Component {
|
18
|
20
|
|
19
|
21
|
componentWillMount () {}
|
20
|
22
|
|
|
23
|
+ // 复制数据
|
21
|
24
|
copyData(data) {
|
22
|
25
|
Taro.setClipboardData({
|
23
|
26
|
data,
|
|
@@ -25,6 +28,68 @@ export default class extends Component {
|
25
|
28
|
})
|
26
|
29
|
}
|
27
|
30
|
|
|
31
|
+ // 跳转去交费
|
|
32
|
+ toPay = () => {
|
|
33
|
+
|
|
34
|
+ }
|
|
35
|
+
|
|
36
|
+ // 查看所有认筹房源
|
|
37
|
+ viewAllHouses = () => {}
|
|
38
|
+
|
|
39
|
+ renderHead() {
|
|
40
|
+ return (
|
|
41
|
+ <View className="head flexSpace">
|
|
42
|
+ <View className="flexSpace-fixed">
|
|
43
|
+ <View className="title">认筹房源</View>
|
|
44
|
+ </View>
|
|
45
|
+ <View className="flexSpace-fixed">
|
|
46
|
+ <View className="gray" onClick={this.viewAllHouses}>
|
|
47
|
+ <Text>查看全部(4)</Text>
|
|
48
|
+ <Text className='at-icon at-icon-chevron-right'></Text>
|
|
49
|
+ </View>
|
|
50
|
+ </View>
|
|
51
|
+ </View>
|
|
52
|
+ )
|
|
53
|
+ }
|
|
54
|
+
|
|
55
|
+ // 取消认购原因
|
|
56
|
+ renderCancelReason() {
|
|
57
|
+ return (
|
|
58
|
+ <Block>
|
|
59
|
+ <View className="cancelReason flexSpace">
|
|
60
|
+ <View className="flexSpace-fixed">
|
|
61
|
+ <NamedIcon name="void" size={120}/>
|
|
62
|
+ </View>
|
|
63
|
+ <View className="flexSpace-item" style="margin-left: 20px">
|
|
64
|
+ <View>认筹单作废原因:</View>
|
|
65
|
+ <View className="gray">认筹单作废原因作废原因原因认筹单作废原因作废原因原因
|
|
66
|
+ 认筹单作废原因作废原因原因认筹单作废原因作废原因原因</View>
|
|
67
|
+ </View>
|
|
68
|
+ </View>
|
|
69
|
+ <View className="hr"></View>
|
|
70
|
+ </Block>
|
|
71
|
+ )
|
|
72
|
+ }
|
|
73
|
+
|
|
74
|
+ // 未交费提示
|
|
75
|
+ renderUnpayNotice() {
|
|
76
|
+ return (
|
|
77
|
+ <Block>
|
|
78
|
+ <View className="unpayNotice flexSpace" onClick={this.toPay}>
|
|
79
|
+ <View className="flexSpace-fixed">
|
|
80
|
+ <NamedIcon name="pay" size={64} />
|
|
81
|
+ <View className="a-line txt">未缴费?点我缴费</View>
|
|
82
|
+ </View>
|
|
83
|
+ <View className="flexSpace-fixed">
|
|
84
|
+ <Text className="a-line">认筹金额</Text>
|
|
85
|
+ <Text className="a-line price">30000元</Text>
|
|
86
|
+ </View>
|
|
87
|
+ </View>
|
|
88
|
+ <View className="hr"></View>
|
|
89
|
+ </Block>
|
|
90
|
+ )
|
|
91
|
+ }
|
|
92
|
+
|
28
|
93
|
render() {
|
29
|
94
|
const { buildingId } = this.state;
|
30
|
95
|
|
|
@@ -55,14 +120,18 @@ export default class extends Component {
|
55
|
120
|
// 其他信息
|
56
|
121
|
const otherInfo = [
|
57
|
122
|
{ head: '其他信息', body: '供核对数据使用' },
|
58
|
|
- { head: '认筹单编号', body: '234567890-09876545678' },
|
59
|
|
- { head: '缴费单编号', body: '234567890-09876543456' },
|
60
|
|
- { head: '退费单编号', body: '234567890-09876543456' },
|
|
123
|
+ { head: '认筹单编号', body: '234567890-09876545678', action: true },
|
|
124
|
+ { head: '缴费单编号', body: '234567890-09876543456', action: true },
|
|
125
|
+ { head: '退费单编号', body: '234567890-09876543423', action: true },
|
61
|
126
|
]
|
62
|
127
|
|
63
|
128
|
return (
|
64
|
129
|
<View className="raiseProfilePage">
|
65
|
130
|
<View className="main">
|
|
131
|
+ {this.renderHead()}
|
|
132
|
+ <View className="tip">注意:请在一个工作日内,到售楼处或项目现场办理认购手续。逾期未办理视为放弃购买。</View>
|
|
133
|
+ {this.renderCancelReason()}
|
|
134
|
+ {this.renderUnpayNotice()}
|
66
|
135
|
<View>
|
67
|
136
|
<CellBlock dataset={raiseInfo} />
|
68
|
137
|
<View className="hr" />
|
|
@@ -70,7 +139,7 @@ export default class extends Component {
|
70
|
139
|
<View className="hr" />
|
71
|
140
|
<CellBlock dataset={refundInfo} />
|
72
|
141
|
<View className="hr" />
|
73
|
|
- <CellBlock dataset={otherInfo} disable />
|
|
142
|
+ <CellBlock dataset={otherInfo} disable onActionClick={dt => this.copyData(dt.body)} />
|
74
|
143
|
</View>
|
75
|
144
|
<View></View>
|
76
|
145
|
<View></View>
|