"enablePullDownRefresh": false,
onPullDownRefresh() {
this.getOrderList(this.tabbarIndex)
setTimeout(function () {
uni.stopPullDownRefresh()
}, 1000)
},
onPageScroll(e){
return;
this.headerPosition = e.scrollTop>=0?"fixed":"absolute";
},
getOrderList(tbIndex){
switch(tbIndex){
case 0:
delete this.query.state
fetchOrderList(1,this.query).then(res=>{
this.list = res.records
this.total = res.total
uni.stopPullDownRefresh()
})
.catch(() => {
uni.stopPullDownRefresh()
})
break;
default:
this.query.state = tbIndex
fetchOrderList(1,this.query).then(res=>{
this.list = res.records
this.total = res.total
uni.stopPullDownRefresh()
})
.catch(() => {
uni.stopPullDownRefresh()
})
}
}