|
@@ -14,11 +14,12 @@ import Captcha from './Captcha'
|
14
|
14
|
import { raiseOrder, cancelOrder, queryPreselectionRecord, raiseOffline } from '@/services/project'
|
15
|
15
|
import { getCodeMessage, checkCaptcha } from '@/services/getCode'
|
16
|
16
|
import { checkRaise } from '@/services/house'
|
17
|
|
-import { checkIDCard, isEmpty } from '@/utils/tools'
|
|
17
|
+import { checkIDCard, isEmpty, transferImage } from '@/utils/tools'
|
18
|
18
|
import ContactConsultant from '../../components/ContactConsultant'
|
19
|
19
|
import RadioList from './RadioList'
|
20
|
20
|
import * as noticeType from '@/constants/common.js'
|
21
|
21
|
import { UPDATE_USER_INFO } from '@/constants/user'
|
|
22
|
+import BackHomeBtn from '@/components/BackHomeBtn'
|
22
|
23
|
|
23
|
24
|
const getRaiseProfile = ({ salesBatchId, raiseRecordId }) => {
|
24
|
25
|
const queryString = [
|
|
@@ -47,7 +48,7 @@ export default class raiseMoney extends Component {
|
47
|
48
|
navigationBarTitleText: '认筹确认'
|
48
|
49
|
}
|
49
|
50
|
state = {
|
50
|
|
- current: 0,
|
|
51
|
+ current: 4,
|
51
|
52
|
inputName: '',
|
52
|
53
|
raiseProfile: undefined, // 认筹主记录
|
53
|
54
|
record: {}, // 认筹单
|
|
@@ -454,7 +455,7 @@ export default class raiseMoney extends Component {
|
454
|
455
|
)
|
455
|
456
|
}
|
456
|
457
|
<View className="center-title">{payTip}</View>
|
457
|
|
- <RichText nodes={showProtocal || ''} />
|
|
458
|
+ <RichText nodes={showProtocal || ''} />
|
458
|
459
|
</ScrollView >
|
459
|
460
|
)
|
460
|
461
|
}
|
|
@@ -696,8 +697,46 @@ export default class raiseMoney extends Component {
|
696
|
697
|
}
|
697
|
698
|
})
|
698
|
699
|
}
|
|
700
|
+ toBuilding(buildingId) {
|
|
701
|
+ Taro.navigateTo({
|
|
702
|
+ url: `/pages/project/detail/index?id=${buildingId}`
|
|
703
|
+ })
|
|
704
|
+ }
|
|
705
|
+ toHouseList(id) {
|
|
706
|
+ Taro.navigateTo({
|
|
707
|
+ url: `/onlineSelling/pages/houseList/index?id=${id}`
|
|
708
|
+ })
|
|
709
|
+ }
|
|
710
|
+ renderBtn() {
|
|
711
|
+ const { raiseProfile = {}, record = {} } = this.state
|
|
712
|
+ return (
|
|
713
|
+ <View className="bottombar">
|
|
714
|
+ <View className="bt-nav__left">
|
|
715
|
+ <Button class='bt-nav__item' onClick={() => this.toBuilding(raiseProfile.buildingId)}>
|
|
716
|
+ <Image src={transferImage(require('@/assets/news/property.png'))} style="width:42rpx;height:42rpx"></Image>
|
|
717
|
+ <Text className="text">查看项目</Text>
|
|
718
|
+ </Button>
|
|
719
|
+ <Button className='bt-nav__item' onClick={() => this.toHouseList(raiseProfile.salesBatchId)}>
|
|
720
|
+ <Image src={transferImage(require('../../assets/list.png'))} style="width:40rpx;height:40rpx" ></Image>
|
|
721
|
+ <Text className="text">房源列表</Text>
|
|
722
|
+ </Button>
|
|
723
|
+ <Button className='bt-nav__item' onClick={() => this.handleChatClick()}>
|
|
724
|
+ <Image src={transferImage(require('../../assets/consult.png'))} style="width:36rpx;height:40rpx"></Image>
|
|
725
|
+ <Text className="text">置业顾问</Text>
|
|
726
|
+ </Button>
|
|
727
|
+ <Button className='bt-nav__item' >
|
|
728
|
+ <Image src={transferImage(require('../../assets/sign.png'))} style="width:42rpx;height:40rpx"></Image>
|
|
729
|
+ <Text className="text" style="color:#E4A938">签署合同</Text>
|
|
730
|
+ </Button>
|
|
731
|
+ </View>
|
|
732
|
+ <Button className="btn" onClick={() => this.toRaiseProfile(record.raiseRecordId)}>
|
|
733
|
+ 认筹单
|
|
734
|
+ </Button>
|
|
735
|
+ </View>
|
|
736
|
+ )
|
|
737
|
+ }
|
699
|
738
|
renderResult() {
|
700
|
|
- const { raiseProfile = {}, record = {}, failInfo, payType } = this.state
|
|
739
|
+ const { failInfo, payType } = this.state
|
701
|
740
|
const isOk = !failInfo
|
702
|
741
|
const showIcon = isOk ? require('../../assets/success2.png') : require('../../assets/fail2.png')
|
703
|
742
|
const showTitle = isOk ? '提交成功' : failInfo.title
|
|
@@ -706,16 +745,18 @@ export default class raiseMoney extends Component {
|
706
|
745
|
<View className="result">
|
707
|
746
|
<Image className="result-img" src={showIcon}></Image>
|
708
|
747
|
|
709
|
|
- <View className="status">{showTitle}</View>
|
|
748
|
+ <View className="status" style={failInfo ? 'color:#F4333B' : 'color:#118EE9'}>{showTitle}</View>
|
710
|
749
|
|
711
|
750
|
{
|
712
|
751
|
isOk &&
|
713
|
752
|
(
|
714
|
753
|
<Block>
|
715
|
|
- <View className="tip" style="margin-bottom:10rpx">详情请查看认筹单</View>
|
|
754
|
+ <View className="tip" style="margin:16rpx 0">详情请查看认筹单</View>
|
716
|
755
|
{payType === 'onLine' && <Block>
|
717
|
756
|
<View className="tip">支付结果请留意微信支付通知</View>
|
718
|
|
- </Block>}
|
|
757
|
+ <View style="font-size: 30rpx;color: #E4A938;line-height:2">为保障您的权益,请签署认筹合同!</View>
|
|
758
|
+ </Block>
|
|
759
|
+ }
|
719
|
760
|
{payType === 'offLine' && <Block>
|
720
|
761
|
<View className="tip" style="margin-bottom:10rpx">后台已收到认筹申请,您尚未付款!</View>
|
721
|
762
|
<View className="tip">请尽快联系您的专属置业顾问缴纳定金</View>
|
|
@@ -727,12 +768,13 @@ export default class raiseMoney extends Component {
|
727
|
768
|
{
|
728
|
769
|
!isOk && (<View className="tip">{(failInfo || {}).desc}</View>)
|
729
|
770
|
}
|
730
|
|
-
|
731
|
|
- <ContactConsultant buildingId={raiseProfile.buildingId} contactClick={() => this.handleChatClick()} text="联系专属置业顾问" style=" position: absolute;bottom: 11vh;" />
|
732
|
|
- {
|
|
771
|
+ {/* <ContactConsultant buildingId={raiseProfile.buildingId} contactClick={() => this.handleChatClick()} text="联系专属置业顾问" style=" position: absolute;bottom: 11vh;" /> */}
|
|
772
|
+ {/* {
|
733
|
773
|
record.raiseRecordId &&
|
734
|
774
|
(<View className="look-btn" onClick={() => this.toRaiseProfile(record.raiseRecordId)}>查看认筹单</View>)
|
735
|
|
- }
|
|
775
|
+ } */}
|
|
776
|
+ {this.renderBtn()}
|
|
777
|
+ <BackHomeBtn style={{ right: '3%', bottom: '190rpx' }}></BackHomeBtn>
|
736
|
778
|
</View>
|
737
|
779
|
|
738
|
780
|
);
|