张延森 5 lat temu
rodzic
commit
a5046726ed
2 zmienionych plików z 10 dodań i 4 usunięć
  1. 2
    2
      config/dev.js
  2. 8
    2
      src/onlineSelling/pages/raiseMoney/index.js

+ 2
- 2
config/dev.js Wyświetl plik

@@ -11,8 +11,8 @@ module.exports = {
11 11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
12 12
     // HOST: '"https://lt.pawoma.cn"',
13 13
     // WSS_HOST: '"wss://lt.pawoma.cn"',
14
-    HOST: '"http://192.168.2.52:8080"',
15
-    WSS_HOST: '"ws://192.168.2.52:8080"',
14
+    HOST: '"http://127.0.0.1:8080"',
15
+    WSS_HOST: '"ws://127.0.0.1:8080"',
16 16
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
17 17
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
18 18
     Version: 'V3.5.12'

+ 8
- 2
src/onlineSelling/pages/raiseMoney/index.js Wyświetl plik

@@ -513,12 +513,16 @@ export default class raiseMoney extends Component {
513 513
       return Promise.reject()
514 514
     }
515 515
 
516
+    debugger
517
+
516 518
     // 校验手机号
517 519
     if (isEmpty(record.tel) || record.tel.length < 11) {
518 520
       Taro.showToast({
519 521
         title: '手机号格式不正确',
520 522
         icon: 'none',
521 523
       })
524
+
525
+      return Promise.reject()
522 526
     }
523 527
 
524 528
     // 验证码
@@ -634,8 +638,10 @@ export default class raiseMoney extends Component {
634 638
         }
635 639
 
636 640
         <ContactConsultant buildingId={raiseProfile.buildingId} style=" position: absolute;bottom: 11vh;" />
637
-
638
-        <View className="look-btn" onClick={() => this.toRaiseProfile(record.raiseRecordId)}>查看认筹单</View>
641
+        {
642
+          record.raiseRecordId &&
643
+          (<View className="look-btn" onClick={() => this.toRaiseProfile(record.raiseRecordId)}>查看认筹单</View>)
644
+        }        
639 645
       </View>
640 646
 
641 647
     );