Procházet zdrojové kódy

临时修改原生支付逻辑

!!!
lex-xin před 6 dny
rodič
revize
7a40aab844
1 změnil soubory, kde provedl 27 přidání a 10 odebrání
  1. 27 10
      src/views/order-detail/index.tsx

+ 27 - 10
src/views/order-detail/index.tsx

@@ -380,23 +380,40 @@ export default defineComponent({
           this.orderInfo = orderStatus.orderObject.paymentConfig || {}
           this.orderNo = orderStatus.orderObject.orderNo
           const paymentChannel = this.orderInfo.paymentConfig.paymentChannel
-          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