From 5bb338fc7ce81dcec7a46f33b88966e8de0aab10 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 03 四月 2024 17:41:25 +0800
Subject: [PATCH] 教学资源数据请求优化

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

diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index a932168..be4310e 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -12,7 +12,7 @@
   <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom">
     <!-- 鍥句功璇︽儏 -->
     <view class="book-box">
-      <view class="book-detail">
+      <view class="book-detail" id="book-detail">
         <view class="detail-left">
           <view class="book-img">
             <image loading="" src="{{bookDetail.icon ? bookDetail.icon : '/static/images/default-book-img.png'}}" mode="aspectFill" aria-label="{{bookDetail.name}}" />
@@ -95,7 +95,7 @@
       </view>
     </view>
     <view class="book-resource">
-      <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class">
+      <t-tabs value="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class">
         <t-tab-panel label="鍥句功绠�浠�" icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" style="{{tabPanelstyle}}">
           <book-brief content="{{bookDetail.content}}" authorIntroduction="{{bookDetail.authorIntroduction}}" wx:if="{{bookDetail.content || bookDetail.authorIntroduction}}"></book-brief>
           <view wx:if="{{!bookDetail.content && !bookDetail.authorIntroduction}}" class="noData">
@@ -121,7 +121,7 @@
         </t-tab-panel>
         <t-tab-panel label="浜戝涔�" icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" style="{{tabPanelstyle}}">
           <view wx:if="{{!loading && learn.length}}">
-            <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}"></learn-resource>
+            <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}"></learn-resource>
             <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}"></tree>
           </view>
           <view wx:if="{{noResources}}" class="noData">
@@ -136,6 +136,9 @@
         <t-tab-panel label="浜戠瑪璁�" icon="{{tabValue == 'jsek_note' ? noteClickIcon: noteIcon}}" value="jsek_note" style="{{tabPanelstyle}}">
           <note bookInfo="{{bookDetail}}" id="note" class="note-list"></note>
         </t-tab-panel>
+        <t-tab-panel label="鐩稿叧鍥句功" icon="{{tabValue == 'related_books' ? linkClickIcon: linkIcon}}" value="related_books" style="{{tabPanelstyle}}">
+          <related-books relatedBookData="{{relatedBookData}}" relatedBookLoading="{{relatedBookLoading}}" noRelatedBookData="{{noRelatedBookData}}" bind:goBookDetails="goBookDetails"></related-books>
+        </t-tab-panel>
       </t-tabs>
     </view>
   </scroll-view>

--
Gitblit v1.9.1