Commit bb7b3f79 by 张卓

退出登录首页初始化

parent 22fcc826
...@@ -211,6 +211,7 @@ export default { ...@@ -211,6 +211,7 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
Object.assign(this.$data, this.$options.data());
if (options.from && options.from == "logout") { if (options.from && options.from == "logout") {
//来自用户登出 //来自用户登出
wx.removeStorage({ wx.removeStorage({
...@@ -237,7 +238,15 @@ export default { ...@@ -237,7 +238,15 @@ export default {
//获取分销信息 //获取分销信息
this.getSpokesmanInit(options) this.getSpokesmanInit(options)
}else { }else {
app.globalData.spokesmanInfo = {} app.globalData.spokesmanInfo = {};
let footerVal = {...app.globalData.footerVal};
footerVal.componentData.list.forEach(res=>{
if(res.link.name=="分销员中心"||res.link.name=="分销商中心") {
res.show = false
}
})
app.globalData.footerVal = footerVal;
this.$mp.page.selectComponent(".custom-tab-bar").init();
} }
// 来源 // 来源
if (options.from == "logout") { if (options.from == "logout") {
...@@ -273,23 +282,6 @@ export default { ...@@ -273,23 +282,6 @@ export default {
}, },
onShow() { onShow() {
//未登录首页分销初始化
// if(!wx.getStorageSync("sessionid")) {
// app.globalData.spokesmanInfo = {};
// app.globalData.applySucessEntry = {};
// this.showSpokesManHome = false;//分销商货架是否展示
// this.showMyCard = false;
// this.showHomepage = false;//分销商首页入口
// this.applySucessEntry = false;//成为分销弹框
// let footerVal = {...app.globalData.footerVal};
// footerVal.componentData.list.forEach(res=>{
// if(res.link.name=="分销员中心"||res.link.name=="分销商中心") {
// res.show = false
// }
// })
// app.globalData.footerVal = footerVal;
// this.$mp.page.selectComponent(".custom-tab-bar").init();
// }
//分销隔流 //分销隔流
if(this.toHomePage) { if(this.toHomePage) {
let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo' let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
......
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