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
4e78c6cf
Commit
4e78c6cf
authored
Mar 08, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix home
parent
6ba41b45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/pages/home/index.vue
+4
-3
No files found.
src/pages/home/index.vue
View file @
4e78c6cf
...
@@ -241,12 +241,10 @@ export default {
...
@@ -241,12 +241,10 @@ export default {
wx
.
stopPullDownRefresh
()
wx
.
stopPullDownRefresh
()
},
},
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
.
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,7 +253,10 @@ export default {
...
@@ -255,7 +253,10 @@ export default {
com
&&
com
.
getScroll
(
el
);
com
&&
com
.
getScroll
(
el
);
}
}
}
}
}
}
},
},
setFooterShow
(
el
){
setFooterShow
(
el
){
let
afterScrollTop
=
el
.
scrollTop
;
let
afterScrollTop
=
el
.
scrollTop
;
...
...
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