xujing 5 jaren geleden
bovenliggende
commit
6b8e1319a7

+ 4
- 4
config/dev.js Bestand weergeven

@@ -5,16 +5,16 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    HOST: '"https://dev.fangdeal.cn"',//测试
9
-    WSS_HOST: '"wss://dev.fangdeal.cn"',
8
+    // HOST: '"https://dev.fangdeal.cn"',//测试
9
+    // WSS_HOST: '"wss://dev.fangdeal.cn"',
10 10
     // HOST: '"https://dev.pawoma.cn"',//测试
11 11
     // WSS_HOST: '"wss://dev.pawoma.cn"',
12 12
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
13 13
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
14 14
     // HOST: '"https://lt.pawoma.cn"',
15 15
     // WSS_HOST: '"wss://lt.pawoma.cn"',
16
-    // HOST: '"http://192.168.2.52:8080"',
17
-    // WSS_HOST: '"ws://192.168.2.52:8080"',
16
+    HOST: '"http://192.168.2.52:8080"',
17
+    WSS_HOST: '"ws://192.168.2.52:8080"',
18 18
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
19 19
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
20 20
     Version: 'V3.5.19'

+ 13
- 5
src/onlineSelling/pages/houseList/index.js Bestand weergeven

@@ -143,7 +143,15 @@ export default class HouseList extends Component {
143 143
 
144 144
     }).catch(err => {
145 145
       Taro.hideToast()
146
-      Taro.showToast({ title: '未找到房源批次', icon: 'none', duration: 2000 })
146
+      if (err.message) {
147
+        Taro.showToast({
148
+          title: err.message,
149
+          icon: 'none'
150
+        })
151
+      } else {
152
+        Taro.showToast({ title: '未找到房源批次', icon: 'none', duration: 2000 })
153
+      }
154
+
147 155
     })
148 156
   }
149 157
   anotherInfo(id) {
@@ -583,10 +591,10 @@ export default class HouseList extends Component {
583 591
         <View className="screen-top">
584 592
           筛选房源
585 593
             {conditionList.map(item => (
586
-            <View key={item.value} onClick={() => this.handleCondition(item.value)} className={current == item.value ? 'top-item active' : 'top-item'}>
587
-              {item.title}
588
-            </View>
589
-          ))}
594
+          <View key={item.value} onClick={() => this.handleCondition(item.value)} className={current == item.value ? 'top-item active' : 'top-item'}>
595
+            {item.title}
596
+          </View>
597
+        ))}
590 598
         </View>
591 599
         {current == 0 && this.renderApartment()}
592 600
         {current == 1 && displayHousePrice && this.renderPrice()}

+ 14
- 14
src/onlineSelling/pages/raiseMoney/Certification.js Bestand weergeven

@@ -31,19 +31,19 @@ export default class Certification extends Component {
31 31
             // 自动签署
32 32
             contractAuto({ raiseRecordId, showToast: false }).then(res => {
33 33
               // if (res.status == 0) {
34
-                // 自动签署成功后调手动签署
35
-                contractManual({ ...res, showToast: false }).then(res => {
36
-                  if (res) {
37
-                    Taro.navigateTo({
38
-                      url: `/pages/project/panorama/index?url=${encodeURIComponent(res)}&from=contractManual&raiseId=${raiseId}&consultantName=${encodeURIComponent(consultantName)}&consultantId=${consultantId}&id=${raiseRecordId}`
39
-                    })
40
-                  } else {
41
-                    Taro.showToast({
42
-                      title: '无可跳转的认证地址',
43
-                      icon: 'none'
44
-                    })
45
-                  }
46
-                })
34
+              // 自动签署成功后调手动签署
35
+              contractManual({ ...res, showToast: false }).then(res => {
36
+                if (res) {
37
+                  Taro.navigateTo({
38
+                    url: `/pages/project/panorama/index?url=${encodeURIComponent(res)}&from=contractManual&raiseId=${raiseId}&consultantName=${encodeURIComponent(consultantName)}&consultantId=${consultantId}&id=${raiseRecordId}`
39
+                  })
40
+                } else {
41
+                  Taro.showToast({
42
+                    title: '无可跳转的认证地址',
43
+                    icon: 'none'
44
+                  })
45
+                }
46
+              })
47 47
               // } else {
48 48
               //   Taro.navigateTo({
49 49
               //     url: `/onlineSelling/pages/raiseMoney/signResult?id=${raiseRecordId}&consultantName=${encodeURIComponent(consultantName)}&consultantId=${consultantId}`
@@ -134,7 +134,7 @@ export default class Certification extends Component {
134 134
 
135 135
             {(status == 0 || status == 1 || status == 4) && <View className="tip" style="margin-top:14rpx">请返回重新发起认证</View>}
136 136
 
137
-            {status == 3 && <View className="tip" style="margin-top:14rpx; display: flex;align-items: center;" onClick={() => this.handleBtnClick()}>实名信息需要法大大审核,请刷新状态
137
+            {status == 3 && <View className="tip" style="margin-top:14rpx; display: flex;align-items: center;justify-content: center;" onClick={() => this.handleBtnClick()}>实名信息需要法大大审核,请刷新状态
138 138
             <Image style="width:18px;height:18px;margin-left:8rpx" src={require('../../assets/refresh.png')} />
139 139
             </View>}
140 140
 

+ 2
- 2
src/onlineSelling/pages/raiseMoney/signResult.js Bestand weergeven

@@ -123,10 +123,10 @@ export default class signResult extends Component {
123 123
             <Image src={transferImage(require('../../assets/see.png'))} style="width:42rpx;height:40rpx"></Image>
124 124
             <Text className="text" style="color:#E4A938" >查看合同</Text>
125 125
           </Button>}
126
-          {status == 1 && <Button className='bt-nav__item' onClick={() => this.toDownloadContract(result.contractDownloadUrl)} >
126
+          {/* {status == 1 && <Button className='bt-nav__item' onClick={() => this.toDownloadContract(result.contractDownloadUrl)} >
127 127
             <Image src={transferImage(require('../../assets/download.png'))} style="width:42rpx;height:40rpx"></Image>
128 128
             <Text className="text" style="color:#E4A938" >下载合同</Text>
129
-          </Button>}
129
+          </Button>} */}
130 130
 
131 131
         </View>
132 132
         <Button className="btn" onClick={() => this.toRaiseProfile(result.invoiceTargetId)}>

+ 14
- 3
src/onlineSelling/pages/raiseProfile/index.js Bestand weergeven

@@ -30,8 +30,12 @@ export default class Raise extends Component {
30 30
     signDetail: null,
31 31
     contractDetail: null,
32 32
   }
33
-
34
-  componentWillMount() {
33
+  componentDidShow() {
34
+    // componentWillMount() {
35
+    Taro.showToast({
36
+      title: '加载中...',
37
+      icon: 'loading'
38
+    })
35 39
     const { id: raiseRecordId } = this.$router.params
36 40
     queryRaiseDetail(raiseRecordId).then(res => {
37 41
       this.setState({
@@ -48,8 +52,14 @@ export default class Raise extends Component {
48 52
           contractUser({ raiseRecordId, }).then(res => {
49 53
             this.setState({
50 54
               signDetail: res || null
55
+            }, () => {
56
+              Taro.hideToast()
51 57
             })
58
+          }).catch(err => {
59
+            Taro.hideToast()
52 60
           })
61
+        } else {
62
+          Taro.hideToast()
53 63
         }
54 64
       })
55 65
     })
@@ -320,7 +330,8 @@ export default class Raise extends Component {
320 330
           {contractDetail &&
321 331
             <View className="raise-flex">
322 332
               <View className="date">合同签署时间  {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}
323
-                <Image className="download" onClick={() => this.toDownloadContract(contractDetail.contractDownloadUrl)} src={require('../../assets/download.png')} /></View>
333
+                {/* <Image className="download" onClick={() => this.toDownloadContract(contractDetail.contractDownloadUrl)} src={require('../../assets/download.png')} /> */}
334
+              </View>
324 335
               <View className="agreement" onClick={() => this.toSeeContract(contractDetail.contractViewUrl)}>查看合同<Text className="right-icon"></Text></View>
325 336
             </View>}
326 337