@@ -277,11 +277,16 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
+ const that = this
this.setData({
- 'fetcherData.page': 1,
+ hasData: true,
+ 'fetcherData': {
+ ...that.data.fetcherData,
+ page:1,
+ },
"roomList":[],
}, () => {
- this.getRoomList()
+ that.getRoomList()
wx.stopPullDownRefresh()
})
},