用户权限授权修改

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

@@ -307,21 +307,24 @@ Page({
// 授权微信
getUserInfo(e) {
console.log(e.detail);
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
})
})
}
});
},
// 选中支付方式
@@ -330,4 +333,4 @@ Page({
payType: e.currentTarget.dataset.type
})
}
})
})