DESKTOP-70VPDLK\Administrator пре 5 месеци
родитељ
комит
3f240499ef
2 измењених фајлова са 5 додато и 3 уклоњено
  1. 3 1
      src/views/Forestage/Tourism/index.vue
  2. 2 2
      src/views/Forestage/Tourism/order-sett.vue

+ 3 - 1
src/views/Forestage/Tourism/index.vue

@@ -231,7 +231,9 @@ export default {
             this.orderId = res.data.order_id
 						this.$refs.orderSett.setOpen(true,res.data.order_id)
 						console.log('res', res)
-
+            setTimeout(()=>{
+              this.getInfo()
+            },2000)
 
             /* this.getInfo(); */
 					} else {

+ 2 - 2
src/views/Forestage/Tourism/order-sett.vue

@@ -64,14 +64,14 @@ export default {
 
 
             //  支付成功了
-            if (this.orderDetail.status >= 1) {
+            if (this.orderDetail.status > 1) {
               /* openGoodsDetailPopup() */
               this.$emit('order-success', this.orderDetail)
               this.$refs.orderDetail.setOpen(true)
             }
 
             //  支付失败了
-            if (this.orderDetail.status == 0) {
+            if (this.orderDetail.status <= 1) {
               this.$refs.balanceTip.setOpen(true)
             }
           }