Commit c1751751 by 程默

fix

parent 8060fd6b
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
this.shopId this.shopId
); );
//检测登录态 //检测登录态
this.checkLogin(); // this.checkLogin();
this.options = options; this.options = options;
console.log('-------') console.log('-------')
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
} else if (options.from && options.from == "login") { } else if (options.from && options.from == "login") {
//来自小程序登录页面 //来自小程序登录页面
this.page = decodeURIComponent(options.backpath); this.page = decodeURIComponent(options.backpath);
this.params += "&" + decodeURIComponent(options.params) + "&"; this.params += "&" + decodeURIComponent(options.params);
} else if (options.from && options.from == "logout") { } else if (options.from && options.from == "logout") {
//来自用户登出 //来自用户登出
wx.removeStorage({ wx.removeStorage({
...@@ -240,6 +240,8 @@ export default { ...@@ -240,6 +240,8 @@ export default {
checkLogin() { checkLogin() {
let getOpenid = wx.getStorageSync("openid"); let getOpenid = wx.getStorageSync("openid");
let getSessionid = wx.getStorageSync("sessionid"); let getSessionid = wx.getStorageSync("sessionid");
console.log('244',getOpenid,getSessionid);
if (getOpenid == "" || getSessionid == "") { if (getOpenid == "" || getSessionid == "") {
this.params += "&logOut=true"; this.params += "&logOut=true";
} }
......
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