|
@@ -1,18 +1,26 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
|
-import { View } from '@tarojs/components'
|
|
2
|
+import { View, Block } from '@tarojs/components'
|
|
3
|
+import dayjs from 'dayjs'
|
3
|
4
|
|
4
|
|
-import './index.scss'
|
5
|
5
|
import CellBlock from './CellBlock'
|
|
6
|
+import Statement from '../../components/Statement'
|
|
7
|
+import ContactConsultant from '../../components/ContactConsultant'
|
|
8
|
+import NamedIcon from '../../components/NamedIcon'
|
|
9
|
+
|
|
10
|
+import './index.scss'
|
6
|
11
|
|
7
|
12
|
export default class extends Component {
|
8
|
13
|
config = {
|
9
|
14
|
navigationBarTitleText: '认筹单',
|
10
|
15
|
}
|
11
|
16
|
|
12
|
|
- state = {}
|
|
17
|
+ state = {
|
|
18
|
+ buildingId: '9f021a59b2a714822894c23ccca8c2db', // must change this
|
|
19
|
+ }
|
13
|
20
|
|
14
|
21
|
componentWillMount () {}
|
15
|
22
|
|
|
23
|
+ // 复制数据
|
16
|
24
|
copyData(data) {
|
17
|
25
|
Taro.setClipboardData({
|
18
|
26
|
data,
|
|
@@ -20,24 +28,126 @@ export default class extends Component {
|
20
|
28
|
})
|
21
|
29
|
}
|
22
|
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
|
+
|
23
|
93
|
render() {
|
|
94
|
+ const { buildingId } = this.state;
|
|
95
|
+
|
|
96
|
+ // 认筹信息
|
|
97
|
+ const raiseInfo = [
|
|
98
|
+ { head: '认筹人', body: '姓名' },
|
|
99
|
+ { head: '身份证号', body: '412702199709215528' },
|
|
100
|
+ { head: '手机号', body: '17716241245' },
|
|
101
|
+ ]
|
|
102
|
+
|
|
103
|
+ // 缴费信息
|
|
104
|
+ const payInfo = [
|
|
105
|
+ { head: '缴费方式', body: '线上缴费/线下缴费' },
|
|
106
|
+ { head: '实际支付费用', body: '234元' },
|
|
107
|
+ { head: '缴费成功时间', body: dayjs('2020-2-28 17:12:48').format('YYYY/MM/DD HH:mm:ss') },
|
|
108
|
+ ]
|
|
109
|
+
|
|
110
|
+ // 退费信息
|
|
111
|
+ const refundInfo = [
|
|
112
|
+ { head: '退费状态', body: '退费中/退费完成' },
|
|
113
|
+ { head: '退费结果', body: '成功/失败' },
|
|
114
|
+ { head: '退费发起时间', body: dayjs('2020-2-28 17:12:48').format('YYYY/MM/DD HH:mm:ss') },
|
|
115
|
+ { head: '实退费用', body: '234元' },
|
|
116
|
+ { head: '退费到账时间', body: dayjs('2020-2-28 17:12:48').format('YYYY/MM/DD HH:mm:ss') },
|
|
117
|
+ { head: '退费原因', desc: '无效原因无效原因无效原因无效原因无效原因无效原因无效原因无效原因无效原因无效原因' },
|
|
118
|
+ ]
|
|
119
|
+
|
|
120
|
+ // 其他信息
|
24
|
121
|
const otherInfo = [
|
25
|
122
|
{ head: '其他信息', body: '供核对数据使用' },
|
26
|
|
- { head: '认筹单编号', body: '234567890-09876545678' },
|
27
|
|
- { head: '缴费单编号', body: '234567890-09876543456' },
|
28
|
|
- { 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 },
|
29
|
126
|
]
|
30
|
127
|
|
31
|
128
|
return (
|
32
|
129
|
<View className="raiseProfilePage">
|
33
|
|
- <View>
|
|
130
|
+ <View className="main">
|
|
131
|
+ {this.renderHead()}
|
|
132
|
+ <View className="tip">注意:请在一个工作日内,到售楼处或项目现场办理认购手续。逾期未办理视为放弃购买。</View>
|
|
133
|
+ {this.renderCancelReason()}
|
|
134
|
+ {this.renderUnpayNotice()}
|
34
|
135
|
<View>
|
|
136
|
+ <CellBlock dataset={raiseInfo} />
|
|
137
|
+ <View className="hr" />
|
|
138
|
+ <CellBlock dataset={payInfo} />
|
35
|
139
|
<View className="hr" />
|
36
|
|
- <CellBlock dataset={otherInfo} disable />
|
|
140
|
+ <CellBlock dataset={refundInfo} />
|
|
141
|
+ <View className="hr" />
|
|
142
|
+ <CellBlock dataset={otherInfo} disable onActionClick={dt => this.copyData(dt.body)} />
|
37
|
143
|
</View>
|
38
|
144
|
<View></View>
|
39
|
145
|
<View></View>
|
40
|
146
|
</View>
|
|
147
|
+ <View className="contact">
|
|
148
|
+ <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId}/>
|
|
149
|
+ </View>
|
|
150
|
+ <Statement />
|
41
|
151
|
</View>
|
42
|
152
|
)
|
43
|
153
|
}
|