Commit b73bd5b7 by zhangzhen

页面刷新bug优化

parent a8ea6fea
...@@ -228,13 +228,10 @@ ...@@ -228,13 +228,10 @@
countData:{} countData:{}
}; };
}, },
onShow() { onLoad(option) {
this.pageData.offset = 0; this.pageData.offset = 0;
this.onLoading(); this.onLoading();
}, },
onLoad(option) {
},
onReachBottom() { onReachBottom() {
if (this.status == 'loadmore') { if (this.status == 'loadmore') {
this.pageData.offset += 1; this.pageData.offset += 1;
......
...@@ -235,12 +235,9 @@ ...@@ -235,12 +235,9 @@
count: 0 count: 0
}; };
}, },
onShow() {
this.onLoading();
this.pageData.offset = 0;
},
onLoad(option) { onLoad(option) {
this.pageData.offset = 0;
this.onLoading();
}, },
onReachBottom() { onReachBottom() {
if (this.status == 'loadmore') { if (this.status == 'loadmore') {
......
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