|
|
|
@ -302,14 +302,19 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 筛选 |
|
|
|
confirm(){ |
|
|
|
confirm(refresher){ |
|
|
|
|
|
|
|
this.tabIndex = 0; |
|
|
|
let tabItem = this.tabList[this.tabIndex]; |
|
|
|
tabItem.page = 1; |
|
|
|
tabItem.isPage = true; |
|
|
|
tabItem.status = 'loading'; |
|
|
|
tabItem.data = []; |
|
|
|
this[tabItem.requestFunction](); |
|
|
|
if(refresher){ |
|
|
|
this[tabItem.requestFunction]({refresher:true}); |
|
|
|
}else{ |
|
|
|
this[tabItem.requestFunction](); |
|
|
|
} |
|
|
|
this.showFilter = false; |
|
|
|
}, |
|
|
|
// 重置筛选条件 |
|
|
|
@ -379,7 +384,22 @@ |
|
|
|
message: '支付成功', |
|
|
|
type: 'success' |
|
|
|
}); |
|
|
|
this.confirm(); |
|
|
|
|
|
|
|
this.confirm(true); |
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
let tabIndex = 3; |
|
|
|
let tabItem = this.tabList[tabIndex]; |
|
|
|
tabItem.page = 1; |
|
|
|
tabItem.isPage = true; |
|
|
|
tabItem.status = 'loading'; |
|
|
|
tabItem.data = []; |
|
|
|
this[tabItem.requestFunction]({refresher:true}); |
|
|
|
this.showFilter = false; |
|
|
|
|
|
|
|
},500) |
|
|
|
|
|
|
|
//this.confirm(); |
|
|
|
}, |
|
|
|
fail: err => { |
|
|
|
uni.showModal({ |
|
|
|
@ -388,6 +408,8 @@ |
|
|
|
showCancel: false |
|
|
|
}) |
|
|
|
this.clickButton = false; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(err => this.clickButton = false) |
|
|
|
|