From 4496721cd3af3c68ed4d55218d3e83ea0664c57e Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期一, 29 四月 2024 17:53:10 +0800
Subject: [PATCH] bug3

---
 packageBookService/pages/bookServices/detail/components/tree/index.js |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 52 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js
index 379c69a..b15157c 100644
--- a/packageBookService/pages/bookServices/detail/components/tree/index.js
+++ b/packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -48,6 +48,9 @@
     checkAllState: {
       type: Boolean,
     },
+    deadline: {
+      type: String
+    }
   },
   data: {
     sonPurchaseSaleMethodId: "",
@@ -58,7 +61,8 @@
     selectAll: [],
     shoppingCart: true,
     stop: false,
-    cart: true
+    cart: true,
+    canExecute: true
   },
   ready() {},
 
@@ -131,13 +135,25 @@
     // 璺宠浆闊宠棰戞挱鏀惧櫒
     goPlayer(e) {
       // 妫�鏌ョ櫥褰曠姸鎬�
+
+
+
+
       const token = wx.getStorageSync(app.config.tokenKey);
       if (token) {
+
+
+
+
+
         const item = e.currentTarget.dataset.item;
         const parent = e.currentTarget.dataset.parent;
         const parentProductLinkPath = parent ? parent.productLinkPath : wx.getStorageSync('teachResourcesPath')
         const parentName = parent ? parent.name : '鏁欏璧勬簮'
         let url;
+
+
+
         if (this.properties.isShowCheck && this.resourceIsBuy(item)) {
           return false;
         }
@@ -181,11 +197,29 @@
           }
         }
         wx.navigateTo({
-          url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parentProductLinkPath}&parentName=${parentName}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}&formPath=${this.properties.tab}`,
+          url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parentProductLinkPath}&parentName=${parentName}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}&formPath=${this.properties.tab}&applyState=${this.properties.applyState}&deadline=${this.properties.deadline}`,
         });
 
-        console.log(item, '7899');
-        if (item.selectType == "document" || item.selectType == "pdf") {
+
+        // || item.selectType == "pdf"
+
+
+
+        if (item.selectType == "pdf") {
+          console.log(item, '79825');
+          const fileLink = item.file ? item.file : item.freeFile
+          console.log(fileLink);
+          wx.navigateTo({
+            url: "/packageBookService/pages/components/webView/index?md5=" +
+              fileLink +
+              "&fileName=" +
+              item.name +
+              "&fileType=" +
+              item.selectType + "&bookBuy=true"
+
+          });
+        }
+        if (item.selectType == "document") {
           // freeFile
 
           if (item.selectType == "document") {
@@ -225,6 +259,10 @@
               util.hideLoadingWithErrorTips();
             },
           });
+
+
+
+
         }
 
 
@@ -236,6 +274,16 @@
           });
           console.log(this.data.webpageSrc, "webpageSrc");
         }
+
+
+
+
+
+
+
+
+
+
       }
     },
 

--
Gitblit v1.9.1