From d7b7435558c15789e9a2c650389cd28ce88d443b Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 06 五月 2025 15:05:42 +0800
Subject: [PATCH] 资源查看判断是否购买

---
 packageBookService/pages/bookServices/detail/index.wxml |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index d8164b8..e130935 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -16,6 +16,8 @@
       scroll-y="{{true}}"
       class="book"
       bindscrolltolower="onReachBottom"
+      scroll-with-animation="{{true}}"
+      scroll-top="{{scrollTop}}"
     >
       <!-- 鍥句功璇︽儏 -->
       <view class="book-box">
@@ -195,13 +197,7 @@
               <empty />
             </view>
           </t-tab-panel>
-          <!-- <t-tab-panel
-          label="鐢靛瓙涔�"
-          icon="{{tabValue == 'jsek_eBook' ? eBookClickIcon : eBookIcon}}"
-          value="jsek_eBook"
-          style="{{tabPanelstyle}}"
-        >
-        </t-tab-panel> -->
+
           <t-tab-panel
             label="鏁欏璧勬簮"
             icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}"
@@ -229,9 +225,12 @@
                 bind:downloadTeach="downloadTeach"
                 bind:handleTree="handleTree"
                 openTeachids="{{openTeachids}}"
+                source="{{source}}"
+                activeId="{{activeId}}"
                 wx:if="{{teach.length}}"
                 isShoppingCart="isShoppingCart"
                 bind:updateCloudLearning="updateCloudLearning"
+                bind:handleScrollTop="handleScrollTop"
               ></tree>
             </view>
             <view wx:if="{{loading}}" style="width: 100%; height: min-content">
@@ -280,9 +279,12 @@
                 cloundMenuIsBuy="{{cloundMenuIsBuy}}"
                 learnMenu="{{learnMenu}}"
                 isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}"
+                source="{{source}}"
+                activeId="{{activeId}}"
                 bind:updateShoppingCartHidden="updateShoppingCartHidden"
                 bind:updateCloudLearning="updateCloudLearning"
                 bind:getCloundIsBuy="getCloundIsBuy"
+                bind:handleScrollTop="handleScrollTop"
               ></tree>
             </view>
             <view wx:if="{{noResources && !loading}}" class="noData">

--
Gitblit v1.9.1