Commit c1751751 by 程默

fix

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