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
fe21b497
Commit
fe21b497
authored
Mar 10, 2021
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
99bac123
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
src/pages/home/index.vue
+16
-4
No files found.
src/pages/home/index.vue
View file @
fe21b497
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<banner
:datas=
"item"
></banner>
<banner
:datas=
"item"
></banner>
</div>
</div>
<div
v-else-if=
"item.componentCode=='goods-list' && item.componentInfo.visible == 1"
style=
"height:100%;"
>
<div
v-else-if=
"item.componentCode=='goods-list' && item.componentInfo.visible == 1"
style=
"height:100%;"
>
<goods-list
class=
"
goodsListItem
"
:datas=
"item"
></goods-list>
<goods-list
class=
"
merchants-list
"
:datas=
"item"
></goods-list>
</div>
</div>
<div
v-else-if=
"item.componentCode == 'area-navigation' && item.componentInfo.visible == 1"
>
<div
v-else-if=
"item.componentCode == 'area-navigation' && item.componentInfo.visible == 1"
>
<area-navigation
:datas=
"item"
:changeLocation=
"changeLocation"
></area-navigation>
<area-navigation
:datas=
"item"
:changeLocation=
"changeLocation"
></area-navigation>
...
@@ -245,9 +245,12 @@ export default {
...
@@ -245,9 +245,12 @@ export default {
},
},
scrolls
(
el
){
scrolls
(
el
){
// this.setFooterShow(el);
// this.setFooterShow(el);
if
(
this
.
$mp
.
page
&&
this
.
$mp
.
page
.
selectComponent
(
".goodsListItem"
)){
// if(this.$mp.page && this.$mp.page.selectComponent(".goodsListItem")){
this
.
$mp
.
page
.
selectComponent
(
".goodsListItem"
).
getScroll
(
el
);
// this.$mp.page.selectComponent(".goodsListItem").getScroll(el);
}
// }
// if(this.$mp.page && this.$mp.page.selectComponent(".merchants-list")){
// this.$mp.page.selectComponent(".merchants-list").getScroll(el);
// }
if
(
this
.
pageData
)
{
if
(
this
.
pageData
)
{
for
(
let
i
=
0
;
i
<
this
.
pageData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
pageData
.
length
;
i
++
)
{
const
element
=
this
.
pageData
[
i
]
const
element
=
this
.
pageData
[
i
]
...
@@ -255,6 +258,15 @@ export default {
...
@@ -255,6 +258,15 @@ export default {
let
com
=
this
.
$mp
.
page
.
selectComponent
(
".time-limited-discount"
+
i
)
;
let
com
=
this
.
$mp
.
page
.
selectComponent
(
".time-limited-discount"
+
i
)
;
com
&&
com
.
getScroll
(
el
);
com
&&
com
.
getScroll
(
el
);
}
}
if
(
element
.
componentCode
==
"merchants-list"
){
let
com
=
this
.
$mp
.
page
.
selectComponent
(
".merchants-list"
+
i
)
;
com
&&
com
.
getScroll
(
el
);
}
if
(
element
.
componentCode
==
"goodsListItem"
){
let
com
=
this
.
$mp
.
page
.
selectComponent
(
".goodsListItem"
+
i
)
;
com
&&
com
.
getScroll
(
el
);
}
}
}
...
...
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