优化返回页面

This commit is contained in:
pengxiaolong
2025-05-22 22:05:55 +08:00
parent 6ca66f45d4
commit c55be10783
59 changed files with 3428 additions and 44 deletions

View File

@@ -9,7 +9,8 @@ const _sfc_main = {
return {
userInfo: {},
info: {},
userSig: ""
userSig: "",
lastPage: ""
};
},
onLoad() {
@@ -19,6 +20,16 @@ const _sfc_main = {
this.userInfo = res.userInfo;
}
});
common_vendor.index.getStorage({
key: "lastPage",
success: (res) => {
this.lastPage = "/" + res.data;
common_vendor.index.__f__("log", "at pages/login/login.vue:37", this.lastPage);
},
fail: () => {
this.lastPage = "/pages/Home/Home";
}
});
},
methods: {
// 获取手机号
@@ -55,9 +66,9 @@ const _sfc_main = {
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
common_vendor.index.hideLoading();
components_TUILogin.TUIlogin(this.info.data.chatInfo.appId, this.info.data.info.id, this.userSig.userSig);
common_vendor.index.__f__("log", "at pages/login/login.vue:81", "跳的地址", this.lastPage);
common_vendor.index.reLaunch({
url: this.$global.lastPage || "/pages/Home/Home"
// 默认页
url: this.lastPage
});
}
} else {