lex-xin il y a 1 an
Parent
commit
3038cd75dd
1 fichiers modifiés avec 26 ajouts et 26 suppressions
  1. 26 26
      src/views/order-detail/index.tsx

+ 26 - 26
src/views/order-detail/index.tsx

@@ -381,39 +381,39 @@ export default defineComponent({
           this.orderNo = orderStatus.orderObject.orderNo
           const paymentChannel = this.orderInfo.paymentConfig.paymentChannel
           // 判断是否为原生支付
-          if (
-            this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
-            this.orderInfo.paymentVendor?.indexOf('alipay') > -1
-          ) {
-            this.paymentStatus = true
-          } else {
-            if (paymentChannel) {
-              const payCode = beforeSubmit(paymentChannel)
-              this.onConfirm({
-                payCode,
-                pay_channel: paymentChannel
-              })
-            } else {
-              this.paymentStatus = true
-            }
-          }
-          // if (paymentChannel) {
-          //   // 判断是否为原生支付
-          //   if (
-          //     this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
-          //     this.orderInfo.paymentVendor?.indexOf('alipay') > -1
-          //   ) {
-          //     this.submitNativePay()
-          //   } else {
+          // if (
+          //   this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
+          //   this.orderInfo.paymentVendor?.indexOf('alipay') > -1
+          // ) {
+          //   this.paymentStatus = true
+          // } else {
+          //   if (paymentChannel) {
           //     const payCode = beforeSubmit(paymentChannel)
           //     this.onConfirm({
           //       payCode,
           //       pay_channel: paymentChannel
           //     })
+          //   } else {
+          //     this.paymentStatus = true
           //   }
-          // } else {
-          //   this.paymentStatus = true
           // }
+          if (paymentChannel) {
+            // 判断是否为原生支付
+            if (
+              this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
+              this.orderInfo.paymentVendor?.indexOf('alipay') > -1
+            ) {
+              this.submitNativePay()
+            } else {
+              const payCode = beforeSubmit(paymentChannel)
+              this.onConfirm({
+                payCode,
+                pay_channel: paymentChannel
+              })
+            }
+          } else {
+            this.paymentStatus = true
+          }
           
         }
         return