소스 검색

价格为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