|
@@ -13,6 +13,7 @@ import Captcha from './Captcha'
|
13
|
13
|
import { raiseOrder, cancelOrder } from '@/services/project'
|
14
|
14
|
import { getCodeMessage } from '@/services/getCode'
|
15
|
15
|
import { checkIDCard, isEmpty } from '@/utils/tools'
|
|
16
|
+import ContactConsultant from '../../components/ContactConsultant'
|
16
|
17
|
|
17
|
18
|
const getRaiseProfile = ({ raiseId, salesBatchId, personId }) => {
|
18
|
19
|
const queryString = [
|
|
@@ -33,7 +34,8 @@ const saveRaiseRecord = (record, raise) => {
|
33
|
34
|
buildingId: raise.buildingId,
|
34
|
35
|
}
|
35
|
36
|
|
36
|
|
- return fetch({ url: `${apis.API_SAVE_RAISE_RECORD}`, method: 'POST', payload })
|
|
37
|
+
|
|
38
|
+ return fetch({ url: `${apis.API_SAVE_RAISE_RECORD}`, method: 'POST', payload })
|
37
|
39
|
}
|
38
|
40
|
|
39
|
41
|
@connect(({ user, house }) => ({ ...user, house }), { ...houseActions })
|
|
@@ -42,7 +44,7 @@ export default class raiseMoney extends Component {
|
42
|
44
|
navigationBarTitleText: '认筹确认'
|
43
|
45
|
}
|
44
|
46
|
state = {
|
45
|
|
- current: 2,
|
|
47
|
+ current: 4,
|
46
|
48
|
inputName: '',
|
47
|
49
|
raiseProfile: undefined,
|
48
|
50
|
record: {},
|
|
@@ -252,7 +254,7 @@ export default class raiseMoney extends Component {
|
252
|
254
|
|
253
|
255
|
getConsultant = () => {
|
254
|
256
|
const { house } = this.props
|
255
|
|
- return house.chooseConsultant ||(house.consultantList || []).filter(x => x.mine)[0]
|
|
257
|
+ return house.chooseConsultant || (house.consultantList || []).filter(x => x.mine)[0]
|
256
|
258
|
}
|
257
|
259
|
|
258
|
260
|
renderProfile() {
|
|
@@ -291,7 +293,7 @@ export default class raiseMoney extends Component {
|
291
|
293
|
<Text style="color:#FF3C3C;font-size:32rpx;margin-right:8rpx">*</Text>
|
292
|
294
|
验证码
|
293
|
295
|
</View>
|
294
|
|
- <Input className='inputCode' placeholder-style="color:#999" type='text' disabled={disabled} onInput={this.handleInput.bind(this, 'captcha')} placeholder='请填写验证码' />
|
|
296
|
+ <Input className='inputCode' placeholder-style="color:#999" type='text' disabled={disabled} onInput={this.handleInput.bind(this, 'captcha')} placeholder='请填写验证码' />
|
295
|
297
|
<Captcha countdown={5} require={this.prepareGetCaptcha.bind(this)} onClick={this.handleCaptcha} />
|
296
|
298
|
</View>
|
297
|
299
|
<View className="profile-flex" style="margin-top:20rpx">
|
|
@@ -344,7 +346,7 @@ export default class raiseMoney extends Component {
|
344
|
346
|
|
345
|
347
|
return Promise.reject()
|
346
|
348
|
}
|
347
|
|
-
|
|
349
|
+
|
348
|
350
|
// 校验手机号
|
349
|
351
|
if (isEmpty(record.tel) || record.tel < 11) {
|
350
|
352
|
Taro.showToast({
|
|
@@ -352,7 +354,7 @@ export default class raiseMoney extends Component {
|
352
|
354
|
icon: 'none',
|
353
|
355
|
})
|
354
|
356
|
}
|
355
|
|
-
|
|
357
|
+
|
356
|
358
|
// 验证码
|
357
|
359
|
if (isEmpty(record.captcha)) {
|
358
|
360
|
Taro.showToast({
|
|
@@ -418,6 +420,22 @@ export default class raiseMoney extends Component {
|
418
|
420
|
})
|
419
|
421
|
|
420
|
422
|
}
|
|
423
|
+ renderResult() {
|
|
424
|
+ return (
|
|
425
|
+ <View className="result">
|
|
426
|
+ <Image className="result-img" src={require('../../assets/success2.png')}></Image>
|
|
427
|
+
|
|
428
|
+ <View className="status">提交成功</View>
|
|
429
|
+
|
|
430
|
+ <View className="tip" style="margin-bottom:10rpx">详情请查看认筹单</View>
|
|
431
|
+ <View className="tip">支付结果请留意微信支付通知</View>
|
|
432
|
+ {/* <ContactConsultant buildingId={buildingId} style=" position: absolute;bottom: 8vh;" /> */}
|
|
433
|
+ <ContactConsultant style=" position: absolute;bottom: 11vh;" />
|
|
434
|
+ <View className="look-btn">查看认筹单</View>
|
|
435
|
+ </View>
|
|
436
|
+
|
|
437
|
+ );
|
|
438
|
+ }
|
421
|
439
|
|
422
|
440
|
nextStep(current) {
|
423
|
441
|
switch (current) {
|
|
@@ -462,7 +480,7 @@ export default class raiseMoney extends Component {
|
462
|
480
|
text={current == 3 ? '现在缴费' : '下一步'}
|
463
|
481
|
/>
|
464
|
482
|
}
|
465
|
|
- {current != 0 && <View className="up-btn" onClick={() => this.upStep(current)}>上一步</View>}
|
|
483
|
+ {current != 0 && current != 4 && <View className="up-btn" onClick={() => this.upStep(current)}>上一步</View>}
|
466
|
484
|
</View>
|
467
|
485
|
)
|
468
|
486
|
}
|
|
@@ -476,6 +494,7 @@ export default class raiseMoney extends Component {
|
476
|
494
|
{current == 1 && this.renderAgreement()}
|
477
|
495
|
{current == 2 && this.renderProfile()}
|
478
|
496
|
{current == 3 && this.renderMoney()}
|
|
497
|
+ {current == 4 && this.renderResult()}
|
479
|
498
|
{this.renderBottomBtn()}
|
480
|
499
|
</View>
|
481
|
500
|
)
|