From 0957116f41a9ff3f2c9412435170ede738fa995b Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期三, 01 六月 2022 09:56:04 +0800
Subject: [PATCH] bug修复、参数调整

---
 src/views/productDetail/components/PayCard.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/productDetail/components/PayCard.vue b/src/views/productDetail/components/PayCard.vue
index 91c8931..18a7ef1 100644
--- a/src/views/productDetail/components/PayCard.vue
+++ b/src/views/productDetail/components/PayCard.vue
@@ -516,7 +516,6 @@
       this.activeImg.url = url;
     },
     confirmNow() {
-      this.cartItem.totalPrice = this.computTotalPrice;
       let products = [
         {
           activateCode: this.cartItem.requestCode,
@@ -544,7 +543,7 @@
         if (res.success) {
           this.orderId = res.data.orderId;
 
-          if (this.cartItem.totalPrice == 0) {
+          if (this.data.priceBase == 0) {
             resumePay({ orderId: this.orderId, payMethod: 5 }).then((res) => {
               if (res.success) {
                 this.$router.push({
@@ -562,9 +561,9 @@
               }
             });
             return;
+          } else {
+            this.showOrder = true;
           }
-
-          this.showOrder = true;
         }
       });
     },

--
Gitblit v1.8.0