Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
bb7b3f79
Commit
bb7b3f79
authored
Mar 29, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出登录首页初始化
parent
22fcc826
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
src/pages/home/index.vue
+10
-18
No files found.
src/pages/home/index.vue
View file @
bb7b3f79
...
...
@@ -211,6 +211,7 @@ export default {
}
},
onLoad
(
options
)
{
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
if
(
options
.
from
&&
options
.
from
==
"logout"
)
{
//来自用户登出
wx
.
removeStorage
({
...
...
@@ -237,7 +238,15 @@ export default {
//获取分销信息
this
.
getSpokesmanInit
(
options
)
}
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"
)
{
...
...
@@ -273,23 +282,6 @@ export default {
},
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
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment