wechat_jiaxuan/pages/homeId/index.js
@@ -39,6 +39,7 @@ onPullDownRefresh: function () { console.log('下拉刷新'); this.setData({ dataList: [], pageNum: 1, total: 0 }) wx.stopPullDownRefresh() this.getList() }, getList(){ @@ -53,6 +54,8 @@ total: res.data.total, dataList: [ ...this.data.dataList, ...res.data.records ] }) }).finally(()=>{ wx.stopPullDownRefresh() }) }, itemClick(e) {