riku
2022-10-28 b45a01a8bee4a9bff5f9c248ead301b8675d1099
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//列表页面基类,定义下拉刷新与上滑加载动作
const ListPage = function (options) {
  return Page(
    Object.assign({}, options, {
      onPullDownRefresh() {
        this.setData({
          pullDown: true
        })
      },
      onReachBottom() {
        this.setData({
          reachBottom: true
        })
      }
    })
  )
}
 
export default ListPage