riku
2022-09-19 47e86f543415585ab1e1b2b1ed1d98830817a1be
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