//列表页面基类,定义下拉刷新与上滑加载动作 const ListPage = function (options) { return Page( Object.assign({}, options, { onPullDownRefresh() { this.setData({ pullDown: true }) }, onReachBottom() { this.setData({ reachBottom: true }) } }) ) } export default ListPage