From 366de5b4636679392a1e3d2984fc23bd5eaa5ac3 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 27 八月 2024 17:48:03 +0800
Subject: [PATCH] wenti

---
 packageBookService/pages/bookServices/list/index.wxml |   86 +++++++++++++++++++++++++------------------
 1 files changed, 50 insertions(+), 36 deletions(-)

diff --git a/packageBookService/pages/bookServices/list/index.wxml b/packageBookService/pages/bookServices/list/index.wxml
index c06275a..63d120f 100644
--- a/packageBookService/pages/bookServices/list/index.wxml
+++ b/packageBookService/pages/bookServices/list/index.wxml
@@ -1,49 +1,63 @@
 <!-- 鍥句功鏈嶅姟-鍒楄〃 -->
-<view style="width: 100%; height: {{barHeight}}px;"></view>
-<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
-  <view>
-    <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
-  </view>
-  <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" />
-</view>
 
-<view class="bookServices-list">
-  <view class="list-header">
-    <scroll-view scroll-x="{{true}}" class="header-scroll">
-      <t-dropdown-menu>
-        <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 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>
+<import src="index.skeleton.wxml" />
+<template is="skeleton" wx:if="{{loading}}" />
+
+<page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}" wx:if="{{!loading}}">
+  <view style="width: 100%; height: {{barHeight}}px;"></view>
+  <view class="nacigationBar" style="width: 72%; height: {{navBarHeight}}px;">
+    <view>
+      <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
     </view>
+    <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��/椤圭洰璐熻矗浜�" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" />
   </view>
-  <t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['涓嬫媺鍒锋柊', '鏉炬墜鍒锋柊', '姝e湪鍒锋柊', '鍒锋柊瀹屾垚']}}" bind:refresh="onRefresh">
-    <scroll-view scroll-y="{{true}}" class="list-container" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom">
-      <view class="assort-title">
+
+  <view class="bookServices-list">
+    <view class="list-header">
+      <view class="header-scroll">
+        <t-dropdown-menu style="width: 1200rpx">
+          <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" />
+          <t-dropdown-item disabled="{{disabledSecondList}}" label="浜岀骇" bind:open="openDropdown" bind:close="closeDropdown" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="resetSecond" />
+          <t-dropdown-item label="閲嶇偣椤圭洰" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" />
+          <t-dropdown-item label="鏂板舰鎬佹暀鏉�" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" />
+          <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" />
+        </t-dropdown-menu>
+      </view>
+      <!-- <view class="header-sort">
+        <t-dropdown-menu>
+
+        </t-dropdown-menu>
+      </view> -->
+    </view>
+    <scroll-view scroll-y="{{true}}" scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindscrolltolower="onReachBottom">
+      <view slot="refresher" class="refresh-container">
+        <view class="loading">
+          <t-loading theme="circular" size="40rpx" text="姝e湪鍒锋柊..." class="wrapper" />
+        </view>
+      </view>
+      <view class="assort-title" id="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="aspectFit" />
+            </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="鏆傛棤鏁版嵁" /> -->
+            <empty />
+          </view>
         </view>
       </view>
-      <view class="bottom-box">
-        <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" />
+      <view class="bottom-box" wx:if="{{bookList.length}}">
+        <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" loading="{{isMore}}" />
         <text wx:if="{{isMore == false}}">娌℃湁鏇村浜�</text>
       </view>
     </scroll-view>
-  </t-pull-down-refresh>
-</view>
\ No newline at end of file
+  </view>
+</page-meta>
\ No newline at end of file

--
Gitblit v1.9.1