Compare commits
No commits in common. "fe6fdbf84b81589f58334a72be2b92fe6045ba5c" and "d5ab9ecf8f36b47303056b8821b3e91e533fb712" have entirely different histories.
fe6fdbf84b
...
d5ab9ecf8f
@ -59,15 +59,21 @@ export default {
|
|||||||
this.code = res.code;
|
this.code = res.code;
|
||||||
let res1 = await this.$api.login.login({ code: res.code });
|
let res1 = await this.$api.login.login({ code: res.code });
|
||||||
if (res1.status == 0) {
|
if (res1.status == 0) {
|
||||||
if (!res1.data.accountInfo.isNew) {
|
this.isShow = true;
|
||||||
uni.reLaunch({
|
this.isNew = res1.data.accountInfo.isNew;
|
||||||
url: "/pages/home/index"
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.isShow = true;
|
|
||||||
this.isNew = res1.data.accountInfo.isNew;
|
|
||||||
}
|
|
||||||
uni.setStorageSync("token", res1.data.token);
|
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 {
|
} else {
|
||||||
this.$common.msgToast(res1.msg);
|
this.$common.msgToast(res1.msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user