panhui 3 yıl önce
ebeveyn
işleme
4eebc6f7d7
1 değiştirilmiş dosya ile 30 ekleme ve 11 silme
  1. 30 11
      src/pages/My.vue

+ 30 - 11
src/pages/My.vue

@@ -179,18 +179,37 @@ export default {
             wx.getUserProfile({
                 desc: '获取信息绑定账号',
                 success: res => {
+                    console.log(res);
                     this.wxInfo = res.userInfo;
-                    this.$http
-                        .post('/user/getMaUserInfo', {
-                            sessionKey: this.$store.state.sessionKey,
-                            rawData: res.rawData,
-                            signature: res.signature,
-                            encryptedData: res.encryptedData,
-                            iv: res.iv
-                        })
-                        .then(() => {
-                            this.showPhone = true;
-                        });
+                    this.showPhone = true;
+                    // this.$http
+                    //     .post(
+                    //         '/buyersInfo/saveVO',
+                    //         {
+                    //             logo: res.avatar,
+                    //             nickname: res.nickname
+                    //         },
+                    //         {
+                    //             header: {
+                    //                 'Content-Type': 'application/json'
+                    //             }
+                    //         }
+                    //     )
+                    //     .then(res => {
+                    //         this.$loading.close();
+                    //         this.showPhone = true;
+                    //     });
+                    // this.$http
+                    //     .post('/user/getMaUserInfo', {
+                    //         sessionKey: this.$store.state.sessionKey,
+                    //         rawData: res.rawData,
+                    //         signature: res.signature,
+                    //         encryptedData: res.encryptedData,
+                    //         iv: res.iv
+                    //     })
+                    //     .then(() => {
+                    //         this.showPhone = true;
+                    //     });
                 }
             });
         }