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
64ba1365
Commit
64ba1365
authored
Mar 29, 2021
by
程默
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
5c35035a
bb7b3f79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
35 deletions
+53
-35
src/pages/home/index.vue
+53
-35
No files found.
src/pages/home/index.vue
View file @
64ba1365
...
@@ -210,6 +210,7 @@ export default {
...
@@ -210,6 +210,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
({
...
@@ -228,12 +229,24 @@ export default {
...
@@ -228,12 +229,24 @@ export default {
app
.
getThemePage
(
this
.
$store
.
state
.
extConfig
);
app
.
getThemePage
(
this
.
$store
.
state
.
extConfig
);
}
}
let
that
=
this
;
let
that
=
this
;
//获取个人名片入口
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
getHomePageQuickAccess
().
then
(
res
=>
{
//获取个人名片入口
that
.
showMyCard
=
res
;
getHomePageQuickAccess
().
then
(
res
=>
{
})
that
.
showMyCard
=
res
;
//获取分销信息
})
this
.
getSpokesmanInit
(
options
)
//获取分销信息
this
.
getSpokesmanInit
(
options
)
}
else
{
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"
)
{
//来自用户登出
//来自用户登出
...
@@ -268,6 +281,7 @@ export default {
...
@@ -268,6 +281,7 @@ export default {
},
},
onShow
()
{
onShow
()
{
//分销隔流
if
(
this
.
toHomePage
)
{
if
(
this
.
toHomePage
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app
.
$themeToLink
({
app
.
$themeToLink
({
...
@@ -299,38 +313,42 @@ export default {
...
@@ -299,38 +313,42 @@ export default {
wx
.
setNavigationBarTitle
({
title
:
app
.
globalData
.
shopInfo
.
shopName
})
wx
.
setNavigationBarTitle
({
title
:
app
.
globalData
.
shopInfo
.
shopName
})
wx
.
stopPullDownRefresh
()
wx
.
stopPullDownRefresh
()
query_isEntry
().
then
((
data
)
=>
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
//分销弹框信息
query_isEntry
().
then
((
data
)
=>
{
app
.
globalData
.
applySucessEntry
=
data
;
//分销弹框信息
console
.
log
(
app
.
globalData
.
applySucessEntry
,
3333444
)
app
.
globalData
.
applySucessEntry
=
data
;
if
(
console
.
log
(
app
.
globalData
.
applySucessEntry
,
3333444
)
data
.
applyRemind
==
"true"
&&
if
(
data
.
displayEntry
==
"true"
data
.
applyRemind
==
"true"
&&
)
{
data
.
displayEntry
==
"true"
this
.
applySucessEntry
=
true
;
)
{
this
.
applySucessEntry
=
true
;
}
else
if
(
}
else
if
(
data
.
applyRemindByDistributor
==
"true"
&&
data
.
applyRemindByDistributor
==
"true"
&&
data
.
displayEntryByDistributor
==
"true"
data
.
displayEntryByDistributor
==
"true"
)
{
)
{
this
.
applySucessEntry
=
true
this
.
applySucessEntry
=
true
}
let
footerVal
=
{...
app
.
globalData
.
footerVal
};
footerVal
.
componentData
.
list
.
forEach
(
res
=>
{
if
(
res
.
link
.
name
==
"分销员中心"
&&
data
.
displayEntry
==
'true'
)
{
res
.
show
=
true
}
else
if
(
res
.
link
.
name
==
"分销员中心"
&&
data
.
displayEntry
==
'false'
)
{
res
.
show
=
false
}
else
if
(
res
.
link
.
name
==
"分销商中心"
&&
data
.
displayEntryByDistributor
==
'true'
)
{
res
.
show
=
true
}
else
if
(
res
.
link
.
name
==
"分销商中心"
&&
data
.
displayEntryByDistributor
==
'false'
)
{
res
.
show
=
false
}
}
let
footerVal
=
{...
app
.
globalData
.
footerVal
};
footerVal
.
componentData
.
list
.
forEach
(
res
=>
{
if
(
res
.
link
.
name
==
"分销员中心"
&&
data
.
displayEntry
==
'true'
)
{
res
.
show
=
true
}
else
if
(
res
.
link
.
name
==
"分销员中心"
&&
data
.
displayEntry
==
'false'
)
{
res
.
show
=
false
}
else
if
(
res
.
link
.
name
==
"分销商中心"
&&
data
.
displayEntryByDistributor
==
'true'
)
{
res
.
show
=
true
}
else
if
(
res
.
link
.
name
==
"分销商中心"
&&
data
.
displayEntryByDistributor
==
'false'
)
{
res
.
show
=
false
}
})
app
.
globalData
.
footerVal
=
footerVal
;
this
.
$mp
.
page
.
selectComponent
(
".custom-tab-bar"
).
init
();
// that.applySucessEntry = res;
})
})
app
.
globalData
.
footerVal
=
footerVal
;
}
else
{
this
.
$mp
.
page
.
selectComponent
(
".custom-tab-bar"
).
init
();
app
.
globalData
.
applySucessEntry
=
{}
// that.applySucessEntry = res;
}
})
},
},
async
getSpokesmanInit
(
extConfig
)
{
async
getSpokesmanInit
(
extConfig
)
{
//绑定上下级关系
//绑定上下级关系
...
...
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