xiansin пре 4 година
родитељ
комит
5aa5827bc5
1 измењених фајлова са 10 додато и 1 уклоњено
  1. 10 1
      pages/index/index.vue

+ 10 - 1
pages/index/index.vue

xqd xqd xqd
@@ -72,6 +72,7 @@
             this.pageHide = true;
         },
         onLoad(options) {
+            console.log('options==>',options)
             this.getUserInfo();
             // 测试下分支
             if (typeof options.scene !== 'undefined') {
@@ -246,6 +247,7 @@
                 }
             },
             qrcode(options) {
+                let _this = this;
                 this.$request({
                     url: this.$api.default.qrcode_parameter,
                     data: {
@@ -265,7 +267,14 @@
                                 this.$request({
                                     url: this.$api.share.bind_parent
                                 }).then(res => {
-                                    this.getUserInfo()
+                                    console.log('bind->',res)
+                                    if(res.error){
+                                        uni.showToast({
+                                            title: res.error,
+                                            icon: "none"
+                                        });
+                                    }
+                                    _this.shareInfo = res.userInfo.identity
                                 })
                             }
                         }