From 9b95dadd2e9dc16c2f03468333d1a4df72740526 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期日, 07 四月 2024 15:11:12 +0800
Subject: [PATCH] 个人中心

---
 packageBookService/pages/bookServices/detail/index.js |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index 3a04430..1240104 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -954,8 +954,7 @@
         remarks: "鐢靛瓙涔�",
         requests: [{
           saleMethodId: this.data.bookItemDetail.defaultSaleMethodId ?
-            this.data.bookItemDetail.defaultSaleMethodId :
-            this.data.bookDetail.defaultSaleMethodId,
+            this.data.bookItemDetail.defaultSaleMethodId : this.data.bookDetail.defaultSaleMethodId,
           count: 1,
         }, ],
       };
@@ -1848,14 +1847,7 @@
           });
           return false;
         }
-        if (this.data.electronicBookList.length >= 2) {
-          wx.showToast({
-            title: "姣忔鏈�澶氬彧鍙敵璇�2鏈牱涔�",
-            icon: "none",
-            duration: 1000,
-          });
-          return false;
-        }
+
         let isHas = this.data.electronicBookList.find(
           (eitem) => eitem.id == this.data.bookDetail.id
         );
@@ -1873,6 +1865,14 @@
         if (isApply) {
           wx.showToast({
             title: "璇ヤ功宸茬敵璇凤紒",
+            icon: "none",
+            duration: 1000,
+          });
+          return false;
+        }
+        if (this.data.electronicBookList.length >= 2) {
+          wx.showToast({
+            title: "姣忔鏈�澶氬彧鍙敵璇�2鏈牱涔�",
             icon: "none",
             duration: 1000,
           });
@@ -1917,6 +1917,17 @@
           });
           return false;
         }
+        let isApply = this.data.alreadyPaperBookList.find(
+          (pitem) => pitem.id == this.data.bookDetail.id
+        );
+        if (isApply) {
+          wx.showToast({
+            title: "璇ヤ功宸茬敵璇凤紒",
+            icon: "none",
+            duration: 1000,
+          });
+          return false;
+        }
         if (this.data.paperBookList.length >= 2) {
           wx.showToast({
             title: "姣忔鏈�澶氬彧鍙敵璇�2鏈牱涔�",
@@ -1931,17 +1942,6 @@
         if (isHas) {
           wx.showToast({
             title: "璇ヤ功宸插湪娓呭崟鍒楄〃涓�",
-            icon: "none",
-            duration: 1000,
-          });
-          return false;
-        }
-        let isApply = this.data.alreadyPaperBookList.find(
-          (pitem) => pitem.id == this.data.bookDetail.id
-        );
-        if (isApply) {
-          wx.showToast({
-            title: "璇ヤ功宸茬敵璇凤紒",
             icon: "none",
             duration: 1000,
           });

--
Gitblit v1.9.1