From 3f62d09217740b02d45bad3e6791916a9f11695c Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 11 七月 2024 16:00:54 +0800
Subject: [PATCH] sudu

---
 packageBookService/pages/bookServices/detail/index.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index ec54438..990357d 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -190,7 +190,7 @@
     // this.getResourceClass(); // 鑾峰彇璧勬簮鎵�灞炲垎绫�
     const token = wx.getStorageSync(app.config.tokenKey);
     if (token) {
-      this.getShoppingCartProductGet();
+
       this.getApplyInfo(options.id);
       this.getAlreadyPBookList();
       this.getAlreadyEBookList();
@@ -573,6 +573,9 @@
           });
         }
       }
+      if (!this.data.buy && this.data.bookDetail.isSell == '1') {
+        this.getShoppingCartProductGet();
+      }
     });
   },
   // 鑾峰彇鍥句功鍒嗙被
@@ -900,6 +903,7 @@
           loading: false,
         });
       }
+      console.log(res.datas.cmsDatas[0].datas, "璧勬簮")
       let list = []
       // 娴嬭瘯 6浣�// 姝e紡 5浣�//  娴嬭瘯璋冪敤浼�20锛屽唴閮�7  姝e紡璋冪敤浼�17 鍐呴儴浼�6
       //鏁欏璧勬簮 浜戝涔�
@@ -937,7 +941,7 @@
             })
           }
         }
-        const addNum = query.cmsPath.length > 12 ? 7 : query.cmsPath.length > 14 ? 8 : 6
+        const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6
         const num = query.cmsPath.length + addNum
         this.getTreeList(res.datas.cmsDatas[0].datas, num, list, '\\', addNum)
         list = this.ensureTreeConsistency(list)
@@ -1028,7 +1032,7 @@
             if (data.length > 0) {
               let list = []
               // 娴嬭瘯 6浣�// 姝e紡 5浣�//  娴嬭瘯璋冪敤浼�20锛屽唴閮�7  姝e紡璋冪敤浼�17 鍐呴儴浼�6
-              const addNum = query.cmsPath.length > 12 ? 7 : query.cmsPath.length > 14 ? 8 : 6
+              const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6
               const num = query.cmsPath.length + addNum
               this.getTreeList(data, num, list, '\\', addNum)
               list = this.ensureTreeConsistency(list)

--
Gitblit v1.9.1