From 72edc07a7fe714316d318708710c150f7d247bbc Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 28 三月 2024 11:50:19 +0800
Subject: [PATCH] 图书分类、列表、详情页bug修改

---
 packageBookService/pages/bookServices/list/index.wxml |   39 ++++++++++++++++++++++++---------------
 1 files changed, 24 insertions(+), 15 deletions(-)

diff --git a/packageBookService/pages/bookServices/list/index.wxml b/packageBookService/pages/bookServices/list/index.wxml
index c06275a..1b7f4da 100644
--- a/packageBookService/pages/bookServices/list/index.wxml
+++ b/packageBookService/pages/bookServices/list/index.wxml
@@ -9,35 +9,44 @@
 
 <view class="bookServices-list">
   <view class="list-header">
-    <scroll-view scroll-x="{{true}}" class="header-scroll">
-      <t-dropdown-menu>
+    <view class="header-scroll">
+      <t-dropdown-menu style="width: 1000rpx">
         <t-dropdown-item options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" />
         <t-dropdown-item label="浜岀骇" options="{{secondList.options}}" optionsColumns="2" multiple value="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:change="onChangeSecond" />
         <t-dropdown-item label="閲嶇偣椤圭洰" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" />
         <t-dropdown-item label="鏂板舰鎬佹暀鏉�" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" />
       </t-dropdown-menu>
-    </scroll-view>
+    </view>
     <view class="header-sort" bind:tap="sortClick">
-      <view class="sort-name">鎺掑簭</view>
-      <view class="sort-icon">
-        <t-icon name="swap-left" size="24rpx" class="icon-right" color="{{sort == 'Asc' ? '#ff6c00' : ''}}" />
-        <t-icon name="swap-left" size="24rpx" class="icon-left" color="{{sort == 'Desc' ? '#ff6c00' : ''}}" />
-      </view>
+      <text class="sort-name">鎺掑簭</text>
+      <!-- <view class="sort-icon"> -->
+      <t-icon name="swap-left" size="28rpx" class="icon-right" color="{{sort == 'Asc' ? '#ff6c00' : ''}}" />
+      <t-icon name="swap-left" size="28rpx" class="icon-left" color="{{sort == 'Desc' ? '#ff6c00' : ''}}" />
+      <!-- </view> -->
     </view>
   </view>
-  <t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['涓嬫媺鍒锋柊', '鏉炬墜鍒锋柊', '姝e湪鍒锋柊', '鍒锋柊瀹屾垚']}}" bind:refresh="onRefresh">
+  <t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['涓嬫媺鍒锋柊', '鏉炬墜鍒锋柊', '姝e湪鍒锋柊', '鍒锋柊瀹屾垚']}}" bind:refresh="onRefresh" class="down-refresh">
     <scroll-view scroll-y="{{true}}" class="list-container" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom">
       <view class="assort-title">
         <view class="title-box"></view>
         <view class="title-name">{{assortCheck.name}}</view>
       </view>
-      <view class="book-list">
-        <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}">
-          <view class="book-img">
-            <t-image src="{{item.icon}}" width="105" height="145" aria-label="{item.name{}}" />
+      <view class="page-content">
+        <view class="book-list" wx:if="{{!loaidng}}">
+          <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}">
+            <view class="book-img">
+              <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" aria-label="{item.name{}}" mode="widthFix" />
+            </view>
+            <view class="book-name book-color">{{ item.name}}</view>
+            <view class="book-author book-color">{{item.author}}</view>
           </view>
-          <view class="book-name book-color">{{ item.name}}</view>
-          <view class="book-author book-color">{{item.author}}</view>
+          <view wx:if="{{noData}}" class="noData">
+            <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+          </view>
+        </view>
+        <!-- loading -->
+        <view class="loading-box" wx:if="{{loaidng}}">
+          <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{loaidng}}" wx:if="{{loaidng}}" />
         </view>
       </view>
       <view class="bottom-box">

--
Gitblit v1.9.1