From 78068d49c20a8b90db902d955f558af507eb8b96 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 11 四月 2024 16:06:12 +0800 Subject: [PATCH] 各页面添加骨架屏 --- pages/bookExhibitionList/index.wxml | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/pages/bookExhibitionList/index.wxml b/pages/bookExhibitionList/index.wxml index 7402a14..98383a3 100644 --- a/pages/bookExhibitionList/index.wxml +++ b/pages/bookExhibitionList/index.wxml @@ -13,24 +13,22 @@ </view> <view class="example-search"> <t-search model:value="{{value}}" placeholder="璇疯緭鍏ヤ功灞曞悕绉�" bind:submit="onSearchSubmit" /> + </view> + </view> </view> <view class="outsideMenuBox"> <view class="menuBox"> - <t-dropdown-menu class="classification"> + <t-dropdown-menu> <t-dropdown-item options="{{product.options}}" value="{{product.value}}" bindchange="onChange" /> - <t-dropdown-item class="{{keynoteDisabled ? 'disableds' : ' '}}" disabled="{{keynoteDisabled}}" label=" 閲嶇偣椤圭洰" options="{{multipleSelect.options}}" value="{{multipleSelect.value}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" show-overlay="{{true}}"> - - - + <t-dropdown-item multiple="{{false}}" class="{{keynoteDisabled ? 'disableds' : ' '}}" disabled="{{keynoteDisabled}}" label=" 閲嶇偣椤圭洰" options="{{multipleSelect.options}}" value="{{multipleSelect.value}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" show-overlay="{{true}}"> </t-dropdown-item> + <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> + </t-dropdown-menu> - - - - <view class="outsideSortBox"> + <!-- <view class="outsideSortBox"> <view class="sortBox" bind:tap="onSwapRight"> <text>鎺掑簭</text> <view class="iconBox"> @@ -38,7 +36,7 @@ <t-icon class="swapLeft" name="swap-right" size="35rpx" color="{{nameSort == 'Desc' ? '#ff6c00' : ''}}" /> </view> </view> - </view> + </view> --> </view> </view> </view> @@ -52,16 +50,24 @@ <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> </view> </view> - <view class="outside"> - <view wx:if="{{!bookExhibitionList.length }}" class="noData"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> - </view> - <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" bindtap="onBookExhibitionDetails" data-item="{{item}}"> - <view class="imageBox"> - <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFill" /> - <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFill" /> + + <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> + <view class="outside"> + <view wx:if="{{!bookExhibitionList.length }}" class="noData"> + <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> </view> - <view class="textBox" title="{{item.subtitleName}}"> <text>{{item.subtitleName}}</text></view> + <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" bindtap="onBookExhibitionDetails" data-item="{{item}}"> + <view class="imageBox"> + <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> + <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> + </view> + <view class="textBox" title="{{item.subtitleName}}"> <text>{{item.subtitleName}}</text></view> + </view> </view> - </view> + <view class="bottom-box" wx:if="{{bookExhibitionList.length }}"> + <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> + <text wx:if="{{isMore == false}}">娌℃湁鏇村浜�</text> + </view> + </scroll-view> + </view> \ No newline at end of file -- Gitblit v1.9.1