Commit e46291a5 by 程智春

下拉刷新回弹

parent d0be0c73
...@@ -196,13 +196,12 @@ export default { ...@@ -196,13 +196,12 @@ export default {
} }
// 获取页面数据 // 获取页面数据
if (this.mpApp.globalData.pageList) { if (this.mpApp.globalData.pageList) {
that.init(this.mpApp.globalData.pageList);
that.init(this.mpApp.globalData.pageList);
} else { } else {
this.mpApp.pageCallBack = function (params) { this.mpApp.pageCallBack = function (params) {
that.init(params); that.init(params);
}; };
} }
...@@ -256,6 +255,8 @@ export default { ...@@ -256,6 +255,8 @@ export default {
this.pageInfo = pageList.filter((item) => item.pageCode == 1)[0]; this.pageInfo = pageList.filter((item) => item.pageCode == 1)[0];
this.pageData = JSON.parse(this.pageInfo.pageData); this.pageData = JSON.parse(this.pageInfo.pageData);
console.log("36", this.pageData); console.log("36", this.pageData);
wx.stopPullDownRefresh()
}, },
scrolls(el){ scrolls(el){
if(this.$mp.page && this.$mp.page.selectComponent(".goodsListItem")){ if(this.$mp.page && this.$mp.page.selectComponent(".goodsListItem")){
...@@ -278,6 +279,8 @@ export default { ...@@ -278,6 +279,8 @@ export default {
console.log('onPullDownRefresh') console.log('onPullDownRefresh')
app.getShopInfo(extConfig); app.getShopInfo(extConfig);
app.getThemePage(extConfig); app.getThemePage(extConfig);
} }
}; };
</script> </script>
......
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