|
@@ -15,9 +15,9 @@ import { getCodeMessage } from '@/services/getCode'
|
15
|
15
|
import { checkIDCard, isEmpty } from '@/utils/tools'
|
16
|
16
|
import ContactConsultant from '../../components/ContactConsultant'
|
17
|
17
|
|
18
|
|
-const getRaiseProfile = ({ raiseId, salesBatchId, personId }) => {
|
|
18
|
+const getRaiseProfile = ({ salesBatchId, raiseRecordId, personId}) => {
|
19
|
19
|
const queryString = [
|
20
|
|
- `${raiseId ? 'raiseId=' + raiseId : ''}`,
|
|
20
|
+ `${raiseRecordId ? 'raiseRecordId=' + raiseRecordId : ''}`,
|
21
|
21
|
`${salesBatchId ? 'salesBatchId=' + salesBatchId : ''}`,
|
22
|
22
|
`${personId ? 'personId=' + personId : ''}`,
|
23
|
23
|
].filter(Boolean).join('&')
|
|
@@ -58,8 +58,8 @@ export default class raiseMoney extends Component {
|
58
|
58
|
componentWillMount() {
|
59
|
59
|
ready.queue(() => {
|
60
|
60
|
const {
|
61
|
|
- salesBatchId, // 批次, 备用
|
62
|
|
- houseId, // 房源号, 从房源详情进入的
|
|
61
|
+ salesBatchId, // 批次, 从房源详情进入的
|
|
62
|
+ houseId, // 房源号, 备用
|
63
|
63
|
raiseRecordId, // 认筹单ID, // 从认筹列表进入
|
64
|
64
|
} = this.$router.params
|
65
|
65
|
|
|
@@ -71,7 +71,7 @@ export default class raiseMoney extends Component {
|
71
|
71
|
return;
|
72
|
72
|
}
|
73
|
73
|
|
74
|
|
- this.loadInfo(houseId, salesBatchId, raiseRecordId)
|
|
74
|
+ this.loadInfo(salesBatchId, raiseRecordId)
|
75
|
75
|
|
76
|
76
|
if (this.$router.params.type == 'pay') {
|
77
|
77
|
this.setState({ current: 3 })
|
|
@@ -79,7 +79,8 @@ export default class raiseMoney extends Component {
|
79
|
79
|
})
|
80
|
80
|
}
|
81
|
81
|
|
82
|
|
- loadInfo = (houseId, salesBatchId, raiseRecordId) => {
|
|
82
|
+ loadInfo(salesBatchId, raiseRecordId) {
|
|
83
|
+ console.log(raiseRecordId, "raiseRecordIdraiseRecordIdraiseRecordIdraiseRecordId")
|
83
|
84
|
const { userInfo, house } = this.props
|
84
|
85
|
const { personId, nickname, idcard, tel, phone } = userInfo.person
|
85
|
86
|
|
|
@@ -293,7 +294,7 @@ export default class raiseMoney extends Component {
|
293
|
294
|
<Text style="color:#FF3C3C;font-size:32rpx;margin-right:8rpx">*</Text>
|
294
|
295
|
验证码
|
295
|
296
|
</View>
|
296
|
|
- <Input className='inputCode' placeholder-style="color:#999" type='text' disabled={disabled} onInput={this.handleInput.bind(this, 'captcha')} placeholder='请填写验证码' />
|
|
297
|
+ <Input className='inputCode' placeholder-style="color:#999" type='text' disabled={disabled} onInput={this.handleInput.bind(this, 'captcha')} placeholder='请填写验证码' />
|
297
|
298
|
<Captcha countdown={captchaCountdown} require={this.prepareGetCaptcha.bind(this)} onClick={this.handleCaptcha} />
|
298
|
299
|
</View>
|
299
|
300
|
<View className="profile-flex" style="margin-top:20rpx">
|
|
@@ -304,6 +305,7 @@ export default class raiseMoney extends Component {
|
304
|
305
|
data={consultant}
|
305
|
306
|
style="padding:30rpx 0;width:690rpx; border-bottom: 1px solid #dcdcdc;"
|
306
|
307
|
type="raiseMoney"
|
|
308
|
+ tips="show"
|
307
|
309
|
/>
|
308
|
310
|
</View>
|
309
|
311
|
</ScrollView >
|
|
@@ -420,6 +422,12 @@ export default class raiseMoney extends Component {
|
420
|
422
|
})
|
421
|
423
|
|
422
|
424
|
}
|
|
425
|
+ toRaiseProfile() {
|
|
426
|
+ const id = this.$router.params.raiseRecordId
|
|
427
|
+ Taro.navigateTo({
|
|
428
|
+ url: `/onlineSelling/pages/raiseProfile/index?raiseRecordId=${id}`
|
|
429
|
+ })
|
|
430
|
+ }
|
423
|
431
|
renderResult() {
|
424
|
432
|
return (
|
425
|
433
|
<View className="result">
|
|
@@ -431,7 +439,7 @@ export default class raiseMoney extends Component {
|
431
|
439
|
<View className="tip">支付结果请留意微信支付通知</View>
|
432
|
440
|
{/* <ContactConsultant buildingId={buildingId} style=" position: absolute;bottom: 8vh;" /> */}
|
433
|
441
|
<ContactConsultant style=" position: absolute;bottom: 11vh;" />
|
434
|
|
- <View className="look-btn">查看认筹单</View>
|
|
442
|
+ <View className="look-btn" onClick={() => this.toRaiseProfile()}>查看认筹单</View>
|
435
|
443
|
</View>
|
436
|
444
|
|
437
|
445
|
);
|
|
@@ -450,7 +458,11 @@ export default class raiseMoney extends Component {
|
450
|
458
|
|
451
|
459
|
// 缴费
|
452
|
460
|
case 3:
|
453
|
|
- this.makePay().then()
|
|
461
|
+ this.makePay().then(() => {
|
|
462
|
+ this.setState({
|
|
463
|
+ current: current + 1
|
|
464
|
+ })
|
|
465
|
+ })
|
454
|
466
|
return;
|
455
|
467
|
|
456
|
468
|
//
|