用户权限授权修改

This commit is contained in:
limqhz
2021-05-27 22:43:12 +08:00
parent 68e4dd0eaa
commit 87236f1f89
13 changed files with 121 additions and 289 deletions

View File

@@ -217,19 +217,23 @@ Page({
// 授权微信
getUserInfo(e) {
app.$pay.payWxLoing(e.detail).then(res => {
wx.showToast({
title: '绑定成功',
duration: 2000,
})
this.setData({
isWxLogin: false
})
}, err => {
this.setData({
isWxLogin: false
})
})
wx.getUserProfile({
desc: '用于完善会员资料',
success: (res) => {
app.$pay.payWxLoing(res).then(res => {
wx.showToast({
title: '绑定成功',
duration: 2000,
})
this.setData({
isWxLogin: false
})
}, err => {
this.setData({
isWxLogin: false
})
})
}
});
}
})
})