You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
437 B
25 lines
437 B
6 years ago
|
Page({
|
||
|
data: {
|
||
|
loadMoreVisible: false,
|
||
|
loadMoreType: 'none'
|
||
|
},
|
||
|
onLoad () {
|
||
|
|
||
|
},
|
||
|
onReady () {
|
||
|
this.pulldownRefresh = this.selectComponent('#pulldown-refresh')
|
||
|
},
|
||
|
onPageScroll (e) {
|
||
|
this.pulldownRefresh.onPageScroll(e)
|
||
|
},
|
||
|
onReachBottom () {
|
||
|
this.setData({
|
||
|
loadMoreVisible: true
|
||
|
})
|
||
|
},
|
||
|
pullDownRefresh () {
|
||
|
setTimeout(() => {
|
||
|
this.pulldownRefresh.stopRefresh()
|
||
|
}, 2000)
|
||
|
}
|
||
|
})
|