9 Commits

Author SHA1 Message Date
  xujing 42a046c19d commit 5 years ago
  xujing b2a856ccb2 commit 5 years ago
  Yansen df554bd1ee bug fix 5 years ago
  Yansen 68e9ae66f1 Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev 5 years ago
  xujing 1edb3378e2 commit 5 years ago
  Yansen 7679432c93 feats 5 years ago
  xujing 4c9a641bc7 commit 5 years ago
  xujing 82c0530b15 commit 5 years ago
  xujing 4631a57fe5 h5 5 years ago
6 changed files with 64 additions and 12 deletions
  1. 1
    1
      config/dev.js
  2. 1
    1
      config/prod.js
  3. 6
    6
      src/pages/person/spread/index.js
  4. 7
    4
      src/pages/project/h5Page.js
  5. 43
    0
      src/pages/project/pay.js
  6. 6
    0
      src/routes.js

+ 1
- 1
config/dev.js View File

@@ -13,7 +13,7 @@ module.exports = {
13 13
     // WSS_HOST: '"ws://192.168.0.190:8080"',
14 14
     OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
15 15
     OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
16
-    Version: "V3.5.28"
16
+    Version: "V3.5.29"
17 17
   },
18 18
   weapp: {},
19 19
   h5: {}

+ 1
- 1
config/prod.js View File

@@ -9,7 +9,7 @@ module.exports = {
9 9
     WSS_HOST: '"wss://wx.fangdeal.cn"',
10 10
     OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
11 11
     OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
12
-    Version: "V3.5.28-20200615"
12
+    Version: "V3.5.29"
13 13
   },
14 14
   weapp: {},
15 15
   h5: {}

+ 6
- 6
src/pages/person/spread/index.js View File

@@ -37,12 +37,12 @@ export default class Index extends Component {
37 37
       }
38 38
 
39 39
       getMiniQrcode(payload).then(qrcode => {
40
-        rtLog.error(qrcode, "qrcodeqrcodeqrcodeqrcodeqrcodeqrcode")
40
+        console.log(qrcode, "qrcodeqrcodeqrcodeqrcodeqrcodeqrcode")
41 41
         let data = {
42 42
           qrcode,//小程序二维码
43 43
           nickname,//访问者名字
44 44
           avatarurl: avatarurl,//访问者头像
45
-          tip:personType == ROLE_CODE['CONSULTANT'] ? '扫一扫上面的二维码图案,成为我的客户' : '扫一扫上面的二维码图案,成为独立经纪人'
45
+          tip: personType == ROLE_CODE['CONSULTANT'] ? '扫一扫上面的二维码图案,成为我的客户' : '扫一扫上面的二维码图案,成为独立经纪人'
46 46
         }
47 47
         this.setState({
48 48
           qrcode
@@ -57,7 +57,7 @@ export default class Index extends Component {
57 57
     if (flag) {
58 58
       rtLog.error(flag, "flagflagflagflag,true")
59 59
       this.getPosterData().then(posterData => {
60
-        rtLog.error(posterData,"posterDataposterDataposterDataposterDataposterData")
60
+        rtLog.error(posterData, "posterDataposterDataposterDataposterDataposterData")
61 61
         this.setState({
62 62
           makePosterStatus: !!flag,
63 63
           posterData,
@@ -65,7 +65,7 @@ export default class Index extends Component {
65 65
         })
66 66
       })
67 67
     } else {
68
-      rtLog.error(flag,"flagflagflagflag,false")
68
+      rtLog.error(flag, "flagflagflagflag,false")
69 69
       this.setState({
70 70
         makePosterStatus: !!flag
71 71
       })
@@ -88,9 +88,9 @@ export default class Index extends Component {
88 88
             {
89 89
               personType == ROLE_CODE['CONSULTANT'] ? <View className='spread-code-tip'>扫一扫上面的二维码图案,成为我的客户</View> : <View className='spread-code-tip'>扫一扫上面的二维码图案,成为独立经纪人</View>
90 90
             }
91
-            
91
+
92 92
           </View>
93
-          <View className='save_btn'  onClick={() => { this.toggleVisiblePoster(true) }}>保存到手机</View>
93
+          <View className='save_btn' onClick={() => { this.toggleVisiblePoster(true) }}>保存到手机</View>
94 94
         </View>
95 95
       </Block>
96 96
 

+ 7
- 4
src/pages/project/h5Page.js View File

@@ -474,15 +474,15 @@ export default class Index extends Component {
474 474
       webParams,
475 475
     } = this.state;
476 476
     const {
477
-      userInfo: { person }
477
+      userInfo: { person },
478 478
     } = this.props;
479 479
 
480 480
     const consultant1 = this.$router.params.consultantId || codeParams.consultant || Taro.getStorageSync('consultantId') || ''
481 481
     const consultantId1 = this.$router.params.consultantId || codeParams.consultantId || ''
482 482
     const consultant = person.personType == ROLE_CODE["CONSULTANT"] ? person.personId : consultant1;
483 483
     const consultantId = person.personType == ROLE_CODE["CONSULTANT"] ? person.userId : consultantId1;
484
-
485
-    const firstShare = this.$router.params.firstShare || person.personId;
484
+    console.log(this.props, "this.propsthis.propsthis.propsthis.props")
485
+    const firstShare = this.$router.params.firstShare || person.personId || '';
486 486
     const webUrlParams = [
487 487
       `personId=${person.personId}`,
488 488
       `recommender=${person.personId}`,
@@ -491,6 +491,9 @@ export default class Index extends Component {
491 491
       `consultant=${consultant}`,
492 492
       `consultantId=${consultantId}`,
493 493
       `firstShare=${firstShare}`,
494
+      `orgId=${person.orgId || ''}`,
495
+      `miniappId=${person.miniappId || ''}`,
496
+      `mpAppid=${pageInfo.mpAppid || ''}`,
494 497
       `codeParams=${encodeURIComponent(mergeQueryParams(webParams || '', codeParams["__raw"]))}`
495 498
     ].join("&");
496 499
 
@@ -507,7 +510,7 @@ export default class Index extends Component {
507 510
       `${originURL.origin}${originURL.path}?${queryString}`,
508 511
       originURL.hash
509 512
     ].join("#");
510
-
513
+    console.log(webURL,"webURLwebURLwebURLwebURLwebURLwebURLwebURLwebURL")
511 514
     return (
512 515
       <Block>
513 516
         {this.renderMaskBanner()}

+ 43
- 0
src/pages/project/pay.js View File

@@ -0,0 +1,43 @@
1
+import Taro, { Component } from "@tarojs/taro";
2
+import ready from "@/utils/ready";
3
+
4
+export default class Index extends Component {
5
+  state = {
6
+
7
+  };
8
+
9
+  componentDidShow() {
10
+    ready.queue(() => {
11
+
12
+      console.log(this.$router, '支付中间页路径this.$routerthis.$router')
13
+
14
+      const queryParams = this.$router.params
15
+
16
+      Taro.requestPayment({
17
+        timeStamp: String(queryParams.timeStamp),
18
+        nonceStr: queryParams.nonceStr,
19
+        package: queryParams.package,
20
+        signType: queryParams.signType,
21
+        paySign: queryParams.sign,
22
+
23
+        success(res) {
24
+          Taro.navigateBack({ delta: 1 })
25
+        },
26
+        fail(err) {
27
+          Taro.navigateBack({ delta: 1 })
28
+        }
29
+      })
30
+    });
31
+  }
32
+
33
+
34
+  render() {
35
+
36
+    return (
37
+      <Block>
38
+
39
+
40
+      </Block>
41
+    );
42
+  }
43
+}

+ 6
- 0
src/routes.js View File

@@ -311,6 +311,12 @@ const routes = [
311 311
     pkg: 'main',
312 312
     type: 'other',
313 313
   },
314
+  {
315
+    name: '支付',
316
+    page: 'pages/project/pay',
317
+    pkg: 'main',
318
+    type: 'other',
319
+  },
314 320
   {
315 321
     name: '授权',
316 322
     page: 'pages/auth/index',