From 47462dc6c323cc4ac7b32b93051947d351799c1f Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 21 三月 2024 18:53:20 +0800
Subject: [PATCH] 检索页修改

---
 packageBookService/pages/bookServices/detail/index.wxml |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index 0ad4ec3..0272a41 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -104,25 +104,31 @@
         鐢靛瓙涔�
       </t-tab-panel>
       <t-tab-panel label="鏁欏璧勬簮" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}">
-        <view wx:if="{{!loading && teach.length}}">
+        <view wx:if="{{!loading && teach.length && !noResources}}">
           <teach-resource applyState="{{applyState}}" rejectCause="{{rejectCause}}" bind:applyResource="applyResource" applyResourceLoading="{{applyResourceLoading}}"></teach-resource>
           <tree bookInfo="{{bookDetail}}" treeList="{{teach}}" tab="{{tabValue}}" applyState="{{applyState}}" bind:downloadTeach="downloadTeach" openTeachids="{{openTeachids}}" wx:if="{{teach.length}}"></tree>
         </view>
         <t-loading theme="circular" size="60rpx" class="loading" loading="{{loading}}" />
-        <!-- <view wx:if="{{!teach.length && !loading}}" class="noData">
+        <view wx:if="{{noResources}}" class="noData">
           <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
-        </view> -->
+        </view>
       </t-tab-panel>
       <t-tab-panel label="浜戝涔�" value="jsek_cloudLearning" style="{{tabPanelstyle}}">
         <view wx:if="{{!loading && learn.length}}">
           <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource"></learn-resource>
-          <tree bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}"></tree>
+          <tree id="tree" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}"></tree>
+        </view>
+        <view wx:if="{{noResources}}" class="noData">
+          <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
         </view>
       </t-tab-panel>
       <t-tab-panel label="浜戞祴璇�" value="questionBank" style="{{tabPanelstyle}}">
         <view wx:if="{{!loading && test.length}}">
           <test-resource list="{{test}}" bookInfo="{{bookDetail}}" mockData="{{mockData}}"></test-resource>
         </view>
+        <view wx:if="{{noResources}}" class="noData">
+          <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+        </view>
       </t-tab-panel>
       <t-tab-panel label="浜戠瑪璁�" value="jesk_note" style="{{tabPanelstyle}}">
         <note bookInfo="{{bookDetail}}" id="note" class="note-list" bind:changeLoaidng="changeLoaidng"></note>

--
Gitblit v1.9.1