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
258f0e8b
Commit
258f0e8b
authored
Mar 26, 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
79c1bc55
a73a5b73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
src/pages/home/index.vue
+25
-1
No files found.
src/pages/home/index.vue
View file @
258f0e8b
...
@@ -145,7 +145,8 @@ export default {
...
@@ -145,7 +145,8 @@ export default {
showHomepage
:
false
,
//分销商首页入口
showHomepage
:
false
,
//分销商首页入口
applySucessEntry
:
false
,
//成为分销弹框
applySucessEntry
:
false
,
//成为分销弹框
getDistributorHomepageName
:
''
,
//小店入口名称
getDistributorHomepageName
:
''
,
//小店入口名称
active
:
-
1
active
:
-
1
,
toHomePage
:
false
,
//是否分销隔断
};
};
},
},
components
:{
components
:{
...
@@ -284,6 +285,13 @@ export default {
...
@@ -284,6 +285,13 @@ export default {
},
},
onShow
()
{
onShow
()
{
if
(
this
.
toHomePage
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app
.
$themeToLink
({
type
:
1
,
link
:
linkVal
,
});
}
this
.
getCartNum
();
this
.
getCartNum
();
this
.
$mp
.
page
.
onPageScroll
=
(
el
)
=>
{
this
.
$mp
.
page
.
onPageScroll
=
(
el
)
=>
{
throttle
(
this
.
scrolls
(
el
),
100
)
throttle
(
this
.
scrolls
(
el
),
100
)
...
@@ -312,8 +320,23 @@ export default {
...
@@ -312,8 +320,23 @@ export default {
},
},
getSpokesmanInfo
(
extConfig
)
{
getSpokesmanInfo
(
extConfig
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
;
getMiniProgram
().
then
(
res
=>
{
getMiniProgram
().
then
(
res
=>
{
app
.
globalData
.
spokesmanInfo
=
res
;
app
.
globalData
.
spokesmanInfo
=
res
;
if
(
res
&&
res
!=
'-1'
&&
res
.
distributorHomepage
&&
res
.
distributorHomepage
!=
'null'
&&
res
.
parentPartitionHomepageFlag
==
'1'
)
{
this
.
toHomePage
=
true
;
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app
.
$themeToLink
({
type
:
1
,
link
:
linkVal
,
});
}
getDistributorHomepage
(
app
.
globalData
.
spokesmanInfo
).
then
(
ele
=>
{
getDistributorHomepage
(
app
.
globalData
.
spokesmanInfo
).
then
(
ele
=>
{
if
(
ele
.
id
)
{
if
(
ele
.
id
)
{
this
.
getDistributorHomepageName
=
'我的小店'
;
this
.
getDistributorHomepageName
=
'我的小店'
;
...
@@ -329,6 +352,7 @@ export default {
...
@@ -329,6 +352,7 @@ export default {
}
else
{
}
else
{
this
.
showSpokesManHome
=
false
;
this
.
showSpokesManHome
=
false
;
}
}
console
.
log
(
app
.
globalData
.
spokesmanInfo
,
555666
)
if
(
app
.
globalData
.
spokesmanInfo
&&
app
.
globalData
.
spokesmanInfo
.
distributionModel
==
'1'
)
{
if
(
app
.
globalData
.
spokesmanInfo
&&
app
.
globalData
.
spokesmanInfo
.
distributionModel
==
'1'
)
{
this
.
showHomepage
=
true
;
this
.
showHomepage
=
true
;
}
else
{
}
else
{
...
...
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