|
@@ -1,30 +1,180 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
|
-import { View } from '@tarojs/components'
|
|
2
|
+import { View, Block } from '@tarojs/components'
|
3
|
3
|
import './index.scss'
|
|
4
|
+import RaiseCard from '../../components/RaiseCard'
|
|
5
|
+import Statement from '../../components/Statement'
|
|
6
|
+import ConsultantItem from '../../components/ConsultantItem/index'
|
4
|
7
|
|
5
|
8
|
export default class raiseMoney extends Component {
|
6
|
9
|
config = {
|
7
|
10
|
navigationBarTitleText: '认筹确认'
|
8
|
11
|
}
|
|
12
|
+ state = {
|
|
13
|
+ current: 3,
|
|
14
|
+ houseList: [
|
|
15
|
+ {
|
|
16
|
+ apartmentName: 'A户型',
|
|
17
|
+ blockName: "1栋",
|
|
18
|
+ buildingId: "9f021a59b2a714822894c23ccca8c2db",
|
|
19
|
+ buildingImgList: null,
|
|
20
|
+ buildingName: "万科安平园舍",
|
|
21
|
+ createDate: "2020-02-27T16:31:56",
|
|
22
|
+ floorName: "1楼",
|
|
23
|
+ houseId: "820",
|
|
24
|
+ preselectionRecordId: 205,
|
|
25
|
+ price: "111.00000000",
|
|
26
|
+ roomName: "1户",
|
|
27
|
+ saleBatchStatus: "1",
|
|
28
|
+ status: 1,
|
|
29
|
+ termname: "1期",
|
|
30
|
+ unitName: "2单元",
|
|
31
|
+ area1: '290',
|
|
32
|
+ area2: '270',
|
|
33
|
+ code: '2-09876545456'
|
|
34
|
+ }, {
|
|
35
|
+ apartmentName: 'B户型',
|
|
36
|
+ blockName: "1栋",
|
|
37
|
+ buildingId: "9f021a59b2a714822894c23ccca8c2db",
|
|
38
|
+ buildingImgList: null,
|
|
39
|
+ buildingName: "凤翔新城",
|
|
40
|
+ createDate: "2020-02-27T16:31:56",
|
|
41
|
+ floorName: "1楼",
|
|
42
|
+ houseId: "820",
|
|
43
|
+ preselectionRecordId: 206,
|
|
44
|
+ price: "111.00000000",
|
|
45
|
+ roomName: "1户",
|
|
46
|
+ saleBatchStatus: "1",
|
|
47
|
+ status: 1,
|
|
48
|
+ termname: "1期",
|
|
49
|
+ unitName: "2单元",
|
|
50
|
+ area1: '290',
|
|
51
|
+ area2: '270',
|
|
52
|
+ code: '2-09876545333'
|
|
53
|
+ },
|
|
54
|
+ ]
|
9
|
55
|
|
10
|
|
- render() {
|
|
56
|
+ }
|
|
57
|
+ renderTop() {
|
|
58
|
+ const tabList = [
|
|
59
|
+ { title: '确认房源', value: 0 },
|
|
60
|
+ { title: '阅读协议', value: 1 },
|
|
61
|
+ { title: '填写资料', value: 2 },
|
|
62
|
+ { title: '缴纳定金', value: 3 },
|
|
63
|
+ { title: '认筹结果', value: 4 },
|
|
64
|
+ ]
|
|
65
|
+ const { current } = this.state
|
11
|
66
|
|
12
|
67
|
return (
|
13
|
|
- <View className="raiseMoney">
|
14
|
|
- <View className="top-con">
|
15
|
|
- <View>确认房源</View>
|
16
|
|
- <View className="right-icon1" ></View>
|
17
|
|
- <View>阅读协议</View>
|
18
|
|
- <View className="right-icon1" ></View>
|
19
|
|
- <View>填写资料</View>
|
20
|
|
- <View className="right-icon1" ></View>
|
21
|
|
- <View>缴纳定金</View>
|
22
|
|
- <View className="right-icon1" ></View>
|
23
|
|
- <View>认筹结果</View>
|
24
|
|
-
|
25
|
|
-
|
|
68
|
+ <View className="top-con">
|
|
69
|
+ {tabList.map((item, index) => (
|
|
70
|
+ <View className="flex" key={index + 'top'} style={current == item.value ? 'color:#333;font-weight:700' : ''}>
|
|
71
|
+ {item.title}
|
|
72
|
+ {item.value != 4 &&
|
|
73
|
+ <View className="flex" style="margin:0 12rpx 0 4rpx">
|
|
74
|
+ <View className='right-icon'></View>
|
|
75
|
+ <View className='right-icon icon2'></View>
|
|
76
|
+ <View className='right-icon icon3'></View>
|
|
77
|
+ </View>
|
|
78
|
+ }
|
|
79
|
+
|
|
80
|
+ </View>
|
|
81
|
+ ))
|
|
82
|
+ }
|
|
83
|
+ </View>
|
|
84
|
+ )
|
|
85
|
+ }
|
|
86
|
+ renderHouse() {
|
|
87
|
+ const { houseList } = this.state
|
|
88
|
+ return (
|
|
89
|
+ <ScrollView scrollY className="container">
|
|
90
|
+ {
|
|
91
|
+ houseList.map(item => (
|
|
92
|
+ <View key={item.preselectionRecordId} >
|
|
93
|
+ <RaiseCard type="raiseMoney" summary={item} />
|
|
94
|
+ </View>
|
|
95
|
+ )
|
|
96
|
+ )
|
|
97
|
+ }
|
|
98
|
+ <View className="addhouse">从<Text style="color:#BB9C79">预选记录</Text>中添加其他房源</View>
|
|
99
|
+ <View className="addhouse">从<Text style="color:#F3B82E">房源列表</Text>中添加其他房源</View>
|
|
100
|
+ <Statement style="margin-top:80rpx" />
|
|
101
|
+ </ScrollView>
|
|
102
|
+ )
|
|
103
|
+ }
|
|
104
|
+ renderAgreement() {
|
|
105
|
+ return (
|
|
106
|
+ <ScrollView scrollY className="container3">
|
|
107
|
+ <View className="agent-box">
|
|
108
|
+ <View className="center-title">线上选房协议</View>
|
|
109
|
+ <View className="title">chgissvdsghuytredsvbnhjuytrewdsvbnmjkuytrewscvbnmkloiu6543ewsdcvbnmjkoiu65rewsazxcv bnmjytresazx nmjytredscvbnm,kuytrdszx nmjkuy6redsvbnjkoi675erdsfghjklio765ewdxc mjkuytredsxcvbnmki56resaxzc bnjku5redsx bmkju65eszx bnhjyu63wqazXCVHJKLOPIU7TR4QW W345Y789P,KNB CXZaq1wet5uyjnhbv cxazQWETU67JM q1e3tyujm bncxzaa QE35HYUJNB VCaegtyujm,n vcxzawset5hyujm bncvxza</View>
|
|
110
|
+ </View>
|
|
111
|
+ </ScrollView >
|
|
112
|
+ )
|
|
113
|
+ }
|
|
114
|
+ renderProfile() {
|
|
115
|
+ const item = { name: '哈哈哈1', phone: '138541369741', avatar: 'http://img5.imgtn.bdimg.com/it/u=3299138037,391931528&fm=26&gp=0.jpg' }
|
|
116
|
+
|
|
117
|
+ return (
|
|
118
|
+ <ScrollView scrollY className="container2">
|
|
119
|
+ <View className="profile-box">
|
|
120
|
+ <View className="title">我的个人信息</View>
|
|
121
|
+ <View style="font-size:24rpx;color:#999;line-height:60rpx">除手机号外其他信息修改后会保存到个人信息中</View>
|
|
122
|
+ <View className="profile-flex">
|
|
123
|
+ <View className="title">我的置业顾问信息</View>
|
|
124
|
+ <View className="choose">选择置业顾问</View>
|
|
125
|
+ </View>
|
|
126
|
+ <ConsultantItem
|
|
127
|
+ data={item}
|
|
128
|
+ style="padding:30rpx 0"
|
|
129
|
+ type="raiseMoney"
|
|
130
|
+ onClick={this.handleItemClick}>
|
|
131
|
+ </ConsultantItem>
|
26
|
132
|
</View>
|
|
133
|
+ </ScrollView >
|
|
134
|
+ )
|
|
135
|
+ }
|
|
136
|
+ renderMoney(){
|
|
137
|
+ return (
|
|
138
|
+ <ScrollView scrollY className="container2" style="padding:0 30rpx">
|
|
139
|
+ <View className="profile-flex">
|
|
140
|
+ <View className="title">认筹金额</View>
|
|
141
|
+ <View className="price">30000 元</View>
|
|
142
|
+ </View>
|
|
143
|
+ <View className="center-title">线上选房协议</View>
|
|
144
|
+ </ScrollView >
|
|
145
|
+ )
|
|
146
|
+ }
|
|
147
|
+ nextStep(current) {
|
|
148
|
+ this.setState({
|
|
149
|
+ current: current + 1
|
|
150
|
+ })
|
|
151
|
+ }
|
|
152
|
+ upStep(current) {
|
|
153
|
+ this.setState({
|
|
154
|
+ current: current - 1
|
|
155
|
+ })
|
|
156
|
+ }
|
|
157
|
+ renderBottomBtn() {
|
|
158
|
+ const { current } = this.state
|
|
159
|
+ return (
|
|
160
|
+ <View className="bottom-btn">
|
|
161
|
+ {current == 1 && <View style="font-size:24rpx;color:#999;line-height:70rpx">请仔细阅读选房协议直到结尾才能进入下一步</View>}
|
|
162
|
+ {current != 4 && <View className="next-btn" onClick={() => this.nextStep(current)}>{current==3?'现在缴费':'下一步'}</View>}
|
|
163
|
+ {current != 0 && <View className="up-btn" onClick={() => this.upStep(current)}>上一步</View>}
|
|
164
|
+ </View>
|
|
165
|
+ )
|
|
166
|
+ }
|
27
|
167
|
|
|
168
|
+ render() {
|
|
169
|
+ const { current } = this.state
|
|
170
|
+ return (
|
|
171
|
+ <View className="raiseMoney">
|
|
172
|
+ {this.renderTop()}
|
|
173
|
+ {current == 0 && this.renderHouse()}
|
|
174
|
+ {current == 1 && this.renderAgreement()}
|
|
175
|
+ {current == 2 && this.renderProfile()}
|
|
176
|
+ {current == 3 && this.renderMoney()}
|
|
177
|
+ {this.renderBottomBtn()}
|
28
|
178
|
</View>
|
29
|
179
|
)
|
30
|
180
|
}
|