...
|
...
|
@@ -130,7 +130,7 @@ function wechatAuthLogin() { // showMsg: 是否显示拒绝授权提示 |
|
|
return wx.login()
|
|
|
.then(res => {
|
|
|
if (res.code) {
|
|
|
return accountModel.wechatMiniAppLogin(app.getAppId(), res.code);
|
|
|
return accountModel.wechatMiniAppLogin(res.code);
|
|
|
}
|
|
|
})
|
|
|
.then(data => {
|
...
|
...
|
@@ -180,6 +180,8 @@ function getUserInfoLogin(e) { |
|
|
if (data.data.union_id) {
|
|
|
app.setUnionID(data.data.union_id);
|
|
|
return wechatUserIsBind(data.data.union_id, nickName);
|
|
|
} else {
|
|
|
return router.go('bindMobile');
|
|
|
}
|
|
|
})
|
|
|
.then(res => {
|
...
|
...
|
|