panhui 3 年之前
父節點
當前提交
4eebc6f7d7
共有 1 個文件被更改,包括 30 次插入11 次删除
  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;
+                    //     });
                 }
             });
         }