ソースを参照

价格为0时购买不扫码

natasha 1 年間 前
コミット
1f8c719891

+ 7 - 3
src/views/bookShelf/bookItem.vue

@@ -590,10 +590,14 @@ export default {
         .then((res) => {
             this.createOrderLoading = false
             if(res.status === 1){
-                this.orderId = res.id
-                this.qr_code_url = res.qr_code_url
-                this.paymentShow = true;
                 this.order_amount = res.order_amount
+                if(this.order_amount<=0){
+                    this.getInfo()
+                }else{
+                    this.orderId = res.id
+                    this.qr_code_url = res.qr_code_url
+                    this.paymentShow = true;
+                }
             }
         }).catch(()=>{
             this.createOrderLoading = false

+ 7 - 3
src/views/bookShelf/bookPeruseItem.vue

@@ -275,10 +275,14 @@ export default {
         .then((res) => {
             this.createOrderLoading = false
             if(res.status === 1){
-                this.orderId = res.id
-                this.qr_code_url = res.qr_code_url
-                this.paymentShow = true;
                 this.order_amount = res.order_amount
+                if(this.order_amount<=0){
+                    this.getInfo()
+                }else{
+                    this.orderId = res.id
+                    this.qr_code_url = res.qr_code_url
+                    this.paymentShow = true;
+                }
             }
         }).catch(()=>{
             this.createOrderLoading = false

+ 7 - 3
src/views/bookStore/Subscribe.vue

@@ -621,10 +621,14 @@ export default {
         .then((res) => {
             this.createOrderLoading = false
             if(res.status === 1){
-                this.orderId = res.id
-                this.qr_code_url = res.qr_code_url
-                this.paymentShow = true;
                 this.order_amount = res.order_amount
+                if(this.order_amount<=0){
+                    
+                }else{
+                    this.orderId = res.id
+                    this.qr_code_url = res.qr_code_url
+                    this.paymentShow = true;
+                }
             }
         }).catch(()=>{
             this.createOrderLoading = false