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
88138320
Commit
88138320
authored
Apr 01, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定分销关系存缓存
parent
f953e760
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
src/pages/home/index.vue
+15
-15
src/pages/login/index.vue
+2
-2
No files found.
src/pages/home/index.vue
View file @
88138320
...
...
@@ -227,7 +227,7 @@ export default {
key
:
"openid"
});
}
this
.
options
=
JSON
.
stringify
(
options
);
this
.
options
=
wx
.
getStorageSync
(
"becomeInfo"
);
this
.
changeLocation
=
options
.
changeLocation
||
''
if
(
this
.
changeLocation
==
1
){
...
...
@@ -242,19 +242,7 @@ export default {
that
.
showMyCard
=
res
;
})
//获取分销信息
this
.
getSpokesmanInit
(
wx
.
getStorage
(
"becomeInfo"
))
}
else
{
let
footerVal
=
{...
app
.
globalData
.
footerVal
};
console
.
log
(
'"分销员中心"'
,
footerVal
)
if
(
footerVal
.
componentData
)
{
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
();
}
this
.
getSpokesmanInit
(
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)))
}
// 来源
if
(
options
.
from
==
"logout"
)
{
...
...
@@ -355,12 +343,24 @@ export default {
this
.
$mp
.
page
.
selectComponent
(
".custom-tab-bar"
).
init
();
// that.applySucessEntry = res;
})
}
else
{
let
footerVal
=
{...
app
.
globalData
.
footerVal
};
console
.
log
(
'"分销员中心"'
,
footerVal
)
if
(
footerVal
.
componentData
)
{
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
();
}
}
},
getSpokesmanInit
(
extConfig
)
{
//绑定上下级关系
app
.
fenxiaoModel
.
becomeRelation
(
extConfig
).
then
(
res
=>
{
if
(
!
res
)
{
if
(
res
)
{
wx
.
removeStorage
({
key
:
"becomeInfo"
});
...
...
src/pages/login/index.vue
View file @
88138320
...
...
@@ -313,8 +313,8 @@ export default {
// 是否跳转h5或小程序
pushPageType
(){
//绑定上下级关系
app
.
fenxiaoModel
.
becomeRelation
(
wx
.
getStorage
(
"becomeInfo"
)).
then
(
res
=>
{
if
(
!
res
)
{
app
.
fenxiaoModel
.
becomeRelation
(
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)
)).
then
(
res
=>
{
if
(
res
)
{
wx
.
removeStorage
({
key
:
"becomeInfo"
});
...
...
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