浏览代码

推荐客户授权后仍提示授权问题

许静 5 年前
父节点
当前提交
498fb95980

+ 4
- 4
config/dev.js 查看文件

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST:  '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    HOST:  '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.0.84:8080"',
13
-    WSS_HOST: '"ws://192.168.0.84:8080"',
12
+    // HOST: '"http://192.168.0.84:8080"',
13
+    // WSS_HOST: '"ws://192.168.0.84:8080"',
14
   },
14
   },
15
   weapp: {},
15
   weapp: {},
16
   h5: {}
16
   h5: {}

+ 2
- 1
src/components/authorize/index.js 查看文件

27
         return
27
         return
28
       } else {
28
       } else {
29
         this.props.dispatchUpdateUserInfoNew(this.state.user.id)
29
         this.props.dispatchUpdateUserInfoNew(this.state.user.id)
30
+        console.log(this.props.from,"this.props.from")
30
         if (this.props.from) {
31
         if (this.props.from) {
32
+          console.log('跳转啦啦啦啦啦啦啦啦')
31
           Taro.reLaunch({
33
           Taro.reLaunch({
32
             url: this.props.from
34
             url: this.props.from
33
           })
35
           })
36
             url: '/pages/person/index'
38
             url: '/pages/person/index'
37
           })
39
           })
38
         }
40
         }
39
-
40
       }
41
       }
41
     })
42
     })
42
   }
43
   }

+ 1
- 1
src/pages/activity/activity.js 查看文件

52
   }
52
   }
53
 
53
 
54
   renderLogin() {
54
   renderLogin() {
55
-    return <Authorize from="/pages/activity/activity"></Authorize>
55
+    return <Authorize></Authorize>
56
   }
56
   }
57
 
57
 
58
   render() {
58
   render() {

+ 3
- 1
src/pages/activity/detail/assemble.js 查看文件

558
                     (
558
                     (
559
                       <Block>
559
                       <Block>
560
                         <Image className="status__img" style="margin:12rpx auto 24rpx auto" src={getThumbnail(successImg)}></Image>
560
                         <Image className="status__img" style="margin:12rpx auto 24rpx auto" src={getThumbnail(successImg)}></Image>
561
-                        <View className="hexiaoma" style="margin:0 auto 40rpx auto">核销码: {verificationCode}</View>
561
+                        {
562
+                          verificationCode&&<View className="hexiaoma" style="margin:0 auto 40rpx auto">核销码: {verificationCode}</View>
563
+                        }
562
                       </Block>
564
                       </Block>
563
                     )
565
                     )
564
                   }
566
                   }

+ 23
- 18
src/pages/agent/recommend/index.js 查看文件

411
   }
411
   }
412
   // 性别
412
   // 性别
413
   radioChange(e) {
413
   radioChange(e) {
414
-    console.log(e.detail.value)
415
     this.setState({
414
     this.setState({
416
       sex: e.detail.value
415
       sex: e.detail.value
417
     })
416
     })
418
   }
417
   }
419
-  renderLogin () {
420
-    return <Authorize from="/pages/agent/recommend/index"></Authorize>
418
+  renderLogin() {
419
+    const from = "/pages/agent/recommend/index"
420
+    return <Authorize from={from}></Authorize>
421
   }
421
   }
422
 
422
 
423
   renderDetail() {
423
   renderDetail() {
424
-    const { reType } = this.state
424
+    const { reType, name, phone, floorArray, floorID, floorColor, intention, adviserArray, adviserID, adviserColor, remarks, radioList } = this.state
425
+ 
425
     return (
426
     return (
426
       <View className='recommend__customers'>
427
       <View className='recommend__customers'>
427
         <View className='submit__infor ani'>
428
         <View className='submit__infor ani'>
428
           <View className='info info__1'>
429
           <View className='info info__1'>
429
             <Text className='customers__txt'>客户姓名</Text>
430
             <Text className='customers__txt'>客户姓名</Text>
430
-            <Input className="input customers__name" name="name" data-id='name' value={this.state.name} onInput={this.BindInfo.bind(this)} placeholder="请输入" />
431
+            <Input className="input customers__name" name="name" data-id='name' value={name} onInput={this.BindInfo.bind(this)} placeholder="请输入" />
431
           </View>
432
           </View>
432
           <View className='info info__2'>
433
           <View className='info info__2'>
433
             <Text className='customers__txt'>客户性别</Text>
434
             <Text className='customers__txt'>客户性别</Text>
434
             <View className='radio-list input'>
435
             <View className='radio-list input'>
435
               <RadioGroup onChange={this.radioChange}>
436
               <RadioGroup onChange={this.radioChange}>
436
-                {this.state.radioList.map((item, i) => {
437
+                {radioList.map((item, i) => {
437
                   return (
438
                   return (
438
                     <Label className='radio-list__label' for={i} key={i}>
439
                     <Label className='radio-list__label' for={i} key={i}>
439
                       <Radio className='radio-list__radio' color={item.color} value={item.value} checked={item.checked} >{item.text}</Radio>
440
                       <Radio className='radio-list__radio' color={item.color} value={item.value} checked={item.checked} >{item.text}</Radio>
445
           </View>
446
           </View>
446
           <View className='info info__3'>
447
           <View className='info info__3'>
447
             <Text className='customers__txt'>电话号码</Text>
448
             <Text className='customers__txt'>电话号码</Text>
448
-            <Input type='number' className="input customers__sex" name="phone" data-id="phone" value={this.state.phone} onInput={this.BindInfo.bind(this)} placeholder="请输入" />
449
+            <Input type='number' className="input customers__sex" name="phone" data-id="phone" value={phone} onInput={this.BindInfo.bind(this)} placeholder="请输入" />
449
           </View>
450
           </View>
450
           <View className='info info__4'>
451
           <View className='info info__4'>
451
             <Text className='customers__txt'>意向楼盘</Text>
452
             <Text className='customers__txt'>意向楼盘</Text>
452
             {
453
             {
453
-              reType == 'index' ? (<Picker className='input customers__name' onChange={this.bindFloorChange} value={this.state.floorID} range={this.state.floorArray} range-key="buildingName">
454
-                <View class="picker overtext" style={this.state.floorColor}>
455
-                  {this.state.floorArray[this.state.floorID].buildingName}
454
+              reType == 'index' ? (<Picker className='input customers__name' onChange={this.bindFloorChange} value={floorID} range={floorArray} range-key="buildingName">
455
+                <View class="picker overtext" style={floorColor}>
456
+                  {floorArray[floorID].buildingName}
456
                 </View>
457
                 </View>
457
-              </Picker>) : (<Input className="input customers__name" style='color:#999;' disabled='disabled' name="name" value={this.state.intention} onInput={this.bindFloorChange.bind(this)} placeholder="" />)
458
+              </Picker>) : (<Input className="input customers__name" style='color:#999;' disabled='disabled' name="name" value={intention} onInput={this.bindFloorChange.bind(this)} placeholder="" />)
458
             }
459
             }
459
 
460
 
460
           </View>
461
           </View>
461
           <View className='info info__4__1'>
462
           <View className='info info__4__1'>
462
             <Text className='customers__txt'>置业顾问</Text>
463
             <Text className='customers__txt'>置业顾问</Text>
463
-            <Picker className='input customers__adviser' onChange={this.bindAdviserChange} value={this.state.adviserID} range={this.state.adviserArray} range-key="name">
464
-              <View class="picker overtext" style={this.state.adviserColor}>
465
-                {this.state.adviserArray[this.state.adviserID].name}
464
+            <Picker className='input customers__adviser' onChange={this.bindAdviserChange} value={adviserID} range={adviserArray} range-key="name">
465
+              <View class="picker overtext" style={adviserColor}>
466
+                {adviserArray[adviserID].name}
466
               </View>
467
               </View>
467
             </Picker>
468
             </Picker>
468
           </View>
469
           </View>
469
 
470
 
470
           <View className='info info__6'>
471
           <View className='info info__6'>
471
             <Text className='customers__txt'>客户描述</Text>
472
             <Text className='customers__txt'>客户描述</Text>
472
-            <Input className="input customers__remarks" data-id="remarks" name="remarks" value={this.state.remarks} onInput={this.BindInfo.bind(this)} placeholder="(选填)" />
473
+            <Input className="input customers__remarks" data-id="remarks" name="remarks" value={remarks} onInput={this.BindInfo.bind(this)} placeholder="(选填)" />
473
           </View>
474
           </View>
474
         </View>
475
         </View>
475
         <View className='submit-btn'>
476
         <View className='submit-btn'>
480
     );
481
     );
481
   }
482
   }
482
   render() {
483
   render() {
483
-    const { person: { phone, tel } } = this.props.userInfo
484
+
485
+
486
+    const { person: { phone, tel, personId } } = this.props.userInfo
487
+    const visable = (!phone && !tel)
488
+
484
     return (
489
     return (
485
       <View style="width:100%;height:100%">
490
       <View style="width:100%;height:100%">
486
-      {!phone && !tel ? this.renderLogin() : this.renderDetail()}
487
-    </View>
491
+        {visable ? this.renderLogin() : this.renderDetail()}
492
+      </View>
488
     );
493
     );
489
   }
494
   }
490
 }
495
 }

+ 1
- 1
src/pages/person/index.js 查看文件

160
   }
160
   }
161
 
161
 
162
   renderLogin () {
162
   renderLogin () {
163
-    return <Authorize from="/pages/person/index"></Authorize>
163
+    return <Authorize></Authorize>
164
   }
164
   }
165
 
165
 
166
   renderDetail () {
166
   renderDetail () {

+ 1
- 1
src/pages/shop/index.js 查看文件

197
   }
197
   }
198
 
198
 
199
   renderLogin () {
199
   renderLogin () {
200
-    return <Authorize from="/pages/shop/index"></Authorize>
200
+    return <Authorize></Authorize>
201
   }
201
   }
202
   handleBannerClick = (item) => {
202
   handleBannerClick = (item) => {
203
     console.log(this, "this")
203
     console.log(this, "this")