Commit affa2a4e by 程默

ff

parent 5483a132
...@@ -48,8 +48,13 @@ export default { ...@@ -48,8 +48,13 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
console.log('onload')
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
this.ss = ss ? `&sessionid=${ss}` : ""; this.ss = ss ? `&sessionid=${ss}` : "";
if (!ss) {
this.params += this.params.includes("logOut") ? "" : "&logOut=true";
}
// tabbar 跳转 // tabbar 跳转
let homeIndex = checkTabbarPage("/"); let homeIndex = checkTabbarPage("/");
homeIndex != 0 && homeIndex == this.index && (this.index = 0); homeIndex != 0 && homeIndex == this.index && (this.index = 0);
...@@ -61,16 +66,14 @@ export default { ...@@ -61,16 +66,14 @@ export default {
} }
}, },
onShow() { onShow() {
console.log('onshow')
// 登录态更新 // 登录态更新
let ss = wx.getStorageSync("sessionid"); // let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) { // if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`; // this.ss = `&sessionid=${ss}`;
} else if (!ss) { // } else if (!ss) {
this.params += this.params.includes("logOut") ? "" : "&logOut=true"; // this.params += this.params.includes("logOut") ? "" : "&logOut=true";
} // }
if (!noLoginListPath.includes(this.page)) {
this.timestamp = `&timestamp=${new Date().getTime()}`;
}
}, },
methods: { methods: {
handleError(data) { handleError(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment