瀏覽代碼

价格为0时购买不扫码

natasha 1 年之前
父節點
當前提交
1f8c719891
共有 3 個文件被更改,包括 21 次插入9 次删除
  1. 7 3
      src/views/bookShelf/bookItem.vue
  2. 7 3
      src/views/bookShelf/bookPeruseItem.vue
  3. 7 3
      src/views/bookStore/Subscribe.vue

+ 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