zhaoxiaohai 3 years ago
parent
commit
b320213c23
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/tabbar/mine/index.js

+ 4 - 2
pages/tabbar/mine/index.js

@@ -122,13 +122,12 @@ Page({
         const {
             name
         } = e.currentTarget.dataset;
-        console.log(name)
+        const that = this;
         if (name == '绑定微信') {
             wx.showModal({
                 title: "提示",
                 content: "是否使用当前微信绑定此账号?",
                 success: res => {
-                    console.log(res)
                     if (res.confirm) {
                         wx.login({
                             success(res) {
@@ -146,6 +145,9 @@ Page({
                                     wx.showToast({
                                         title: '绑定成功',
                                     })
+                                    that.setData({
+                                        "userMsg.iswechatbinding": true
+                                    })
                                 })
                             }
                         })