gdpaoup
This commit is contained in:
@@ -226,14 +226,20 @@
|
||||
member_nickname: data.userInfo.nickName,
|
||||
member_avatar: data.userInfo.avatarUrl,
|
||||
}).then(res => {
|
||||
console.log(res.errCode);
|
||||
if (res.errCode == 0) {
|
||||
this.loginIn(res.data.token);
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
this.show = false;
|
||||
uni.switchTab({
|
||||
url: "../../pages/index/index"
|
||||
})
|
||||
console.log(res.data.member.member_mobilebind);
|
||||
if(res.data.member.member_mobilebind) {
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pageA/bindinges/bindinges'
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -247,11 +253,11 @@
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: (wxres) => {
|
||||
console.log(wxres);
|
||||
// console.log(wxres);
|
||||
uni.getUserInfo({
|
||||
provider: 'weixin',
|
||||
success: (data) => {
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.$u.api.wechatLogin({
|
||||
member_wxopenid: data.userInfo.openId,
|
||||
member_nickname: data.userInfo.nickName,
|
||||
@@ -260,11 +266,18 @@
|
||||
console.log(res);
|
||||
if (res.errCode == 0) {
|
||||
this.loginIn(res.data.token);
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
this.show = false;
|
||||
uni.switchTab({
|
||||
url: "../../pages/index/index"
|
||||
})
|
||||
console.log(res.data.member.member_mobilebind);
|
||||
if(res.data.member.member_mobilebind) {
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pageA/bindinges/bindinges'
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -301,11 +314,11 @@
|
||||
tochange() {
|
||||
|
||||
},
|
||||
goIndex() {
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
goIndex() {
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
},
|
||||
components: {
|
||||
identifying
|
||||
|
||||
Reference in New Issue
Block a user