Commit 4e78c6cf by 程默

fix home

parent 6ba41b45
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment