优化代码

This commit is contained in:
wuxw 2024-04-12 14:00:33 +08:00
parent d6edd46226
commit 305c5cf9a7

View File

@ -94,23 +94,6 @@
this._initData();
},
onPullDownRefresh: function() {
//
if (!this.loading) {
this.getTable(1, true).then(() => {
//
wx.stopPullDownRefresh();
});
}
},
onReachBottom: function() {
console.log(1, !this.loading, this.page < this.totalPage); //
//
if (!this.loading && this.page < this.totalPage) {
this.getTable(this.page + 1);
}
},
methods: {
_initData:function(){
let that = this;