|
@@ -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
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
})
|