Browse Source

修改更新策略

master
mike 4 years ago
parent
commit
0fa38be14a
  1. 28
      pages/order/order.vue

28
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)

Loading…
Cancel
Save