Przeglądaj źródła

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 5 lat temu
rodzic
commit
925715a554

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

@@ -5,14 +5,14 @@ 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.pawoma.cn"',//测试
9
-    // WSS_HOST: '"wss://dev.pawoma.cn"',
8
+    HOST: '"https://dev.pawoma.cn"',//测试
9
+    WSS_HOST: '"wss://dev.pawoma.cn"',
10 10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
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://192.168.2.52:8080"',
15
+    // WSS_HOST: '"ws://192.168.2.52: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'

+ 4
- 4
config/prod.js Wyświetl plik

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://192.168.2.52:8080"',
7
-    WSS_HOST: '"ws://192.168.2.52:8080"',
8
-    // HOST: '"https://dev.pawoma.cn"',// 新测试
9
-    // WSS_HOST: '"wss://dev.pawoma.cn"',
6
+    // HOST: '"http://192.168.2.52:8080"',
7
+    // WSS_HOST: '"ws://192.168.2.52:8080"',
8
+    HOST: '"https://dev.pawoma.cn"',// 新测试
9
+    WSS_HOST: '"wss://dev.pawoma.cn"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',

+ 6
- 6
src/onlineSelling/components/ConsultantItem/index.js Wyświetl plik

@@ -3,22 +3,22 @@ import './index.scss'
3 3
 
4 4
 export default function ConsultantItem(props) {
5 5
 
6
-  const { data = {}, style, type } = props
6
+  const { data = {}, style, type, tips } = props
7 7
 
8 8
   return (
9 9
     <Block>
10
-      {(!data || !data.id) && (<View style="margin-top: 20px; text-align: center">暂无数据</View>)}
10
+      {(!data || !data.id) && tips == 'show' && (<View style="margin-top: 20px; text-align: center">暂无数据</View>)}
11 11
       {
12
-        (data && data.id) &&
12
+        (data && (data.id || data.consultantPersonId)) &&
13 13
         (
14 14
           <View className="card-item" style={style}>
15 15
             <View onClick={() => props.onClick && props.onClick(data)}>
16 16
               <Image src={data.photo || data.avatar} className='avatar' ></Image>
17 17
               {
18
-                data.name &&
18
+                (data.name || data.userName) &&
19 19
                 (
20 20
                   <View className="name">
21
-                    {data.name|| data.userName}
21
+                    {data.name || data.userName}
22 22
                     <Image src={require('@/assets/person/card.png')} className='card' ></Image>
23 23
                     {type == 'raiseProfile' && <View className="tip">您的专属置业顾问</View>}
24 24
                   </View>
@@ -27,7 +27,7 @@ export default function ConsultantItem(props) {
27 27
               <View className="phone">{data.phone}</View>
28 28
             </View>
29 29
             {!type && <View className="home">主页</View>}
30
-            {type == 'raiseProfile' && <View className="contact"  onClick={props.contactClick}>联系我<Text className="right-icon"></Text></View>}
30
+            {type == 'raiseProfile' && <View className="contact" onClick={props.contactClick}>联系我<Text className="right-icon"></Text></View>}
31 31
           </View >
32 32
         )
33 33
       }

+ 21
- 9
src/onlineSelling/pages/raiseMoney/index.js Wyświetl plik

@@ -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
       //