linwenxin 2 هفته پیش
والد
کامیت
76462e45b1
2فایلهای تغییر یافته به همراه12 افزوده شده و 4 حذف شده
  1. 6 2
      src/packageMaterial/pages/newSale/pay.vue
  2. 6 2
      src/packageMaterial/pages/sale/pay.vue

+ 6 - 2
src/packageMaterial/pages/newSale/pay.vue

@@ -203,10 +203,14 @@ export default {
           this.orderId = res.data.orderId
           if (res.data.payStatus == 'PAID') {
             // 支付成功
-            this.state = 2
+            this.getDetail(() => {
+              this.state = 2
+            })
           } else {
             // 支付失败
-            this.state = 4
+            this.getDetail(() => {
+              this.state = 4
+            })
           }
         })
         .catch(res => {})

+ 6 - 2
src/packageMaterial/pages/sale/pay.vue

@@ -204,10 +204,14 @@ export default {
           this.orderId = res.data.orderId
           if (res.data.payStatus == 'PAID') {
             // 支付成功
-            this.state = 2
+            this.getDetail(() => {
+              this.state = 2
+            })
           } else {
             // 支付失败
-            this.state = 4
+            this.getDetail(() => {
+              this.state = 4
+            })
           }
         })
         .catch(res => {})