From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 23 十二月 2024 14:58:49 +0800 Subject: [PATCH] 111 --- packageBookService/pages/bookServices/list/index.wxml | 86 +++++++++++++++++------------------------- 1 files changed, 35 insertions(+), 51 deletions(-) diff --git a/packageBookService/pages/bookServices/list/index.wxml b/packageBookService/pages/bookServices/list/index.wxml index 95db35c..74f893d 100644 --- a/packageBookService/pages/bookServices/list/index.wxml +++ b/packageBookService/pages/bookServices/list/index.wxml @@ -1,19 +1,26 @@ <!-- 鍥句功鏈嶅姟-鍒楄〃 --> -<page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}"> + +<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: 70%; height: {{navBarHeight}}px;"> - <view> - <t-icon - name="chevron-left" - size="30" - data-name="{{item}}" - bind:click="goBack" + <view class="nacigationBar" style="width: 72%; height: {{navBarHeight}}px;"> + <view class="back-icon"> + <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> + <image + src="/static/images/digitalTextbooks/chevron-left.png" + bind:tap="goBack" + mode="aspectFit" /> </view> <t-search model:value="{{searchValue}}" shape="round" - placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" + placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��/椤圭洰璐熻矗浜�" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" @@ -23,7 +30,7 @@ <view class="bookServices-list"> <view class="list-header"> <view class="header-scroll"> - <t-dropdown-menu style="width: 1000rpx"> + <t-dropdown-menu style="width: 1200rpx"> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" @@ -39,9 +46,9 @@ options="{{secondList.options}}" optionsColumns="2" multiple - value="{{secondList.value}}" + defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" - bind:change="onChangeSecond" + bind:reset="resetSecond" /> <t-dropdown-item label="閲嶇偣椤圭洰" @@ -63,36 +70,22 @@ 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" bind:tap="sortClick"> - <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 class="header-sort"> + <t-dropdown-menu> + + </t-dropdown-menu> + </view> --> </view> - <!-- <t-pull-down-refresh - value="{{enable}}" - loadingProps="{{loadingProps}}" - loadingTexts="{{['涓嬫媺鍒锋柊', '鏉炬墜鍒锋柊', '姝e湪鍒锋柊', '鍒锋柊瀹屾垚']}}" - bind:refresh="onRefresh" - class="down-refresh" - > - </t-pull-down-refresh> --> <scroll-view scroll-y="{{true}}" + scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" @@ -101,7 +94,6 @@ bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" - bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" > <view slot="refresher" class="refresh-container"> @@ -114,7 +106,7 @@ /> </view> </view> - <view class="assort-title"> + <view class="assort-title" id="assort-title"> <view class="title-box"></view> <view class="title-name">{{assortCheck.name}}</view> </view> @@ -138,26 +130,18 @@ <view class="book-author book-color">{{item.author}}</view> </view> <view wx:if="{{noData}}" class="noData"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> + <empty /> </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"> + <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> -- Gitblit v1.9.1