master
Aiden 12 months ago
parent 956923bc20
commit c450051a39

@ -59,21 +59,15 @@ export default {
this.code = res.code;
let res1 = await this.$api.login.login({ code: res.code });
if (res1.status == 0) {
this.isShow = true;
this.isNew = res1.data.accountInfo.isNew;
if (!res1.data.accountInfo.isNew) {
uni.reLaunch({
url: "/pages/home/index"
});
} else {
this.isShow = true;
this.isNew = res1.data.accountInfo.isNew;
}
uni.setStorageSync("token", res1.data.token);
// if (res1.data.accountInfo.isNew) {
// this.openId = res1.data.accountInfo.openId;
// uni.setStorageSync("token", res1.data.token);
// uni.reLaunch({
// url: "/pages/realName/realName"
// });
// } else {
// uni.setStorageSync("token", res1.data.token);
// uni.reLaunch({
// url: "/pages/home/index"
// });
// }
} else {
this.$common.msgToast(res1.msg);
}

Loading…
Cancel
Save