|
@ -62,9 +62,9 @@ Page({ |
|
|
list: list |
|
|
list: list |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
const page = this.data.currPage - 1 |
|
|
const page = this.data.currentPage - 1 |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
currPage: page |
|
|
currentPage: page |
|
|
}) |
|
|
}) |
|
|
wx.showToast({ |
|
|
wx.showToast({ |
|
|
title: '已加载全部', |
|
|
title: '已加载全部', |
|
@ -83,7 +83,7 @@ Page({ |
|
|
*/ |
|
|
*/ |
|
|
onPullDownRefresh: function () { |
|
|
onPullDownRefresh: function () { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
currPage: 1, |
|
|
currentPage: 1, |
|
|
}) |
|
|
}) |
|
|
this.fetchMyMessageList() |
|
|
this.fetchMyMessageList() |
|
|
}, |
|
|
}, |
|
@ -92,9 +92,9 @@ Page({ |
|
|
* 页面上拉触底事件的处理函数 |
|
|
* 页面上拉触底事件的处理函数 |
|
|
*/ |
|
|
*/ |
|
|
onReachBottom: function () { |
|
|
onReachBottom: function () { |
|
|
const page = this.data.currPage + 1 |
|
|
const page = this.data.currentPage + 1 |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
currPage: page |
|
|
currentPage: page |
|
|
}) |
|
|
}) |
|
|
this.fetchMyMessageList() |
|
|
this.fetchMyMessageList() |
|
|
}, |
|
|
}, |
|
|