wechat_staff/pages/userinfo/collect.js
@@ -14,18 +14,19 @@ pageNum: 1, pageSize: 10, }, onLoad(options) {}, onLoad(options) { }, onPullDownRefresh: function () { console.log('下拉刷新'); console.log('下拉刷新') this.setData({ dataList: [], pageNum: 1, total: 0 }) wx.stopPullDownRefresh() this.getList() }, onReachBottom() { console.log('触底事件'); console.log('触底事件') const { total, dataList, @@ -109,7 +110,8 @@ */ onShow() { this.setData({ pageNum: 1 pageNum: 1, dataList: [] }) this.getList() },