linwenxin 4 mesiacov pred
rodič
commit
515ef1a688

+ 5 - 2
src/packageWorkorder/pages/orderDetail.vue

@@ -854,7 +854,8 @@ export default {
           payType: 'WECHAT'
         })
         .then(res => {
-          if (res.data) {
+          this.orderId_zf = res.data.orderId
+          if (res.data.payStatus == 'PAID') {
             // 支付成功
             this.getPayList(() => {
               this.state = 2
@@ -868,7 +869,9 @@ export default {
         })
         .catch(res => {
           // 等待支付
-          if (res.message === 'USERPAYING') {
+          var [USERPAYING, orderId] = res.message.split('|')
+          if (USERPAYING === 'USERPAYING' && !!orderId) {
+            this.orderId_zf = orderId
             if (this.state == 0) {
               this.state = 1
             }