|
@@ -873,27 +873,27 @@ export default {
|
|
|
},
|
|
|
|
|
|
checkPay(orderId){
|
|
|
- this.timer = setTimeout(()=>{
|
|
|
- if(this.num === undefined){
|
|
|
- this.num = 0
|
|
|
- }
|
|
|
- if(this.num <=10){
|
|
|
- this.num++
|
|
|
- }else{
|
|
|
+ if(this.num === undefined){
|
|
|
+ this.num = 0
|
|
|
+ }
|
|
|
+ if(this.num <=10){
|
|
|
+ this.num++
|
|
|
+ }else{
|
|
|
+ this.clear()
|
|
|
+ this.$refs.tabPage.removeTab(this.pageType);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ getOfflineOrderDetail({orderId}).then(res => {
|
|
|
+ if(res.data.orderStatus != 'NOPAY' && res.data.orderStatus != 'TIMEOUT'){
|
|
|
this.clear()
|
|
|
+ this.$message.success('支付成功!')
|
|
|
this.$refs.tabPage.removeTab(this.pageType);
|
|
|
- return
|
|
|
- }
|
|
|
- getOfflineOrderDetail({orderId}).then(res => {
|
|
|
- if(res.data.orderStatus != 'NOPAY' && res.data.orderStatus != 'TIMEOUT'){
|
|
|
- this.clear()
|
|
|
- this.$message.success('支付成功!')
|
|
|
- this.$refs.tabPage.removeTab(this.pageType);
|
|
|
- }else {
|
|
|
+ }else {
|
|
|
+ this.timer = setTimeout(()=>{
|
|
|
this.checkPay(orderId);
|
|
|
- }
|
|
|
- })
|
|
|
- }, 3000)
|
|
|
+ }, 3000)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
clear(){
|