瀏覽代碼

no message

linwenxin 4 月之前
父節點
當前提交
515ef1a688
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/packageWorkorder/pages/orderDetail.vue

+ 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
             }