diff --git a/pages/order/order.vue b/pages/order/order.vue index f7c7a5e..275e1bc 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -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)