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
5c78f6f2
Commit
5c78f6f2
authored
Mar 26, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页隔断
parent
9599a5bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
src/pages/home/index.vue
+16
-5
No files found.
src/pages/home/index.vue
View file @
5c78f6f2
...
...
@@ -283,11 +283,6 @@ export default {
},
onShow
()
{
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
// app.$themeToLink({
// type: 1,
// link:linkVal,
// });
this
.
getCartNum
();
setTabBarActive
.
bind
(
this
)(
checkTabbarPage
(
'/'
));
this
.
$mp
.
page
.
onPageScroll
=
(
el
)
=>
{
...
...
@@ -317,8 +312,23 @@ export default {
},
getSpokesmanInfo
(
extConfig
)
{
let
linkVal
=
'/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
;
console
.
log
(
1111112222233333
,
linkVal
)
getMiniProgram
().
then
(
res
=>
{
app
.
globalData
.
spokesmanInfo
=
res
;
if
(
res
&&
res
!=
'-1'
&&
res
.
distributorHomepage
&&
res
.
distributorHomepage
!=
'null'
&&
res
.
parentPartitionHomepageFlag
==
'1'
)
{
// let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
app
.
$themeToLink
({
type
:
1
,
link
:
linkVal
,
});
}
getDistributorHomepage
(
app
.
globalData
.
spokesmanInfo
).
then
(
ele
=>
{
if
(
ele
.
id
)
{
this
.
getDistributorHomepageName
=
'我的小店'
;
...
...
@@ -334,6 +344,7 @@ export default {
}
else
{
this
.
showSpokesManHome
=
false
;
}
console
.
log
(
app
.
globalData
.
spokesmanInfo
,
555666
)
if
(
app
.
globalData
.
spokesmanInfo
&&
app
.
globalData
.
spokesmanInfo
.
distributionModel
==
'1'
)
{
this
.
showHomepage
=
true
;
}
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