From 2f9305515c7264637164c9e03c2840f4219ca1e3 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 05 七月 2024 11:46:01 +0800 Subject: [PATCH] kong, --- packagePersonal/pages/sampleBooks/index.wxml | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packagePersonal/pages/sampleBooks/index.wxml b/packagePersonal/pages/sampleBooks/index.wxml index 2369db3..ea7d31a 100644 --- a/packagePersonal/pages/sampleBooks/index.wxml +++ b/packagePersonal/pages/sampleBooks/index.wxml @@ -1,5 +1,5 @@ <view class="container"> - <view class="page-header"> + <view class="page-header" wx:if="{{!skeletonLoding}}"> <view class="tabOne"> <t-tabs t-class="t-tabs" value="{{active}}" split="{{false}}" bind:change="tabClick"> <t-tab-panel label="绾歌川鏍蜂功" value="0" /> @@ -12,14 +12,14 @@ </t-tabs> </view> </view> - <view class="pageInfo"> + <view class="pageInfo" wx:if="{{!skeletonLoding}}"> <scroll-view class="scroll content" bind:scroll="onPageScroll" model:scroll-top="{{setScrollValue}}" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" 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="list" wx:if="{{list.length > 0}}"> + <view class="list" wx:if="{{list.length > 0 && !skeletonLoding}}"> <view class="content-item" wx:for="{{list}}" wx:for-item="items" wx:for-index="index" wx:key="index"> <view class="codeInfoBox"> <view class="top"> @@ -35,14 +35,14 @@ <text wx:if="{{items.state =='Reject'}}">鍘熷洜锛歿{items.feedBack.reason}}</text> <view wx:if="{{active == '0' && items.state =='Normal'}}" class="mailInfo"> <text class="mailNum">蹇�掑崟鍙凤細{{items.feedBack && items.feedBack.mailNum ? items.feedBack.mailNum : '-'}}</text> - <text>蹇�掑叕鍙革細{{items.feedBack.mailName ? items.feedBack.mailName : '-'}}</text> + <text class="mailName">蹇�掑叕鍙革細{{items.feedBack.mailName ? items.feedBack.mailName : '-'}}</text> </view> </view> </view> <view class="listBox"> <scroll-view class="srcolbox" scroll-x scroll-with-animation='true'> <view class="order-centent"> - <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="onOrderDetail" data-info="{{itemes}}"> + <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="goBookDetails" data-book="{{itemes}}"> <view class="leftCon"> <!-- 鑾峰彇鍥剧墖 --> <image class="purchasedIcon" wx:if="{{itemes.icon}}" src="{{itemes.icon}}" mode="aspectFit" /> @@ -58,8 +58,9 @@ </view> </view> </view> - <view wx:if="{{list.length == 0}}" class="empyt"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + <view wx:if="{{list.length == 0 && !skeletonLoding}}" class="empyt"> + <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> + <empty /> </view> <view class="bottom-loading" wx:if="{{bottomLoading}}"> <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." class="wrapper" /> @@ -67,7 +68,13 @@ <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> <text>娌℃湁鏇村浜�</text> </view> + <view class="body-loading" wx:if="{{skeletonLoding}}"> + <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." class="wrapper" /> + </view> </scroll-view> </view> </view> -<t-back-top theme="round" wx:if="{{isBackTop}}" text="椤堕儴" bind:to-top="onToTop"></t-back-top> \ No newline at end of file +<t-back-top theme="round" wx:if="{{isBackTop}}" text="椤堕儴" bind:to-top="onToTop"></t-back-top> + +<import src="index.skeleton.wxml" /> +<template is="skeleton" wx:if="{{skeletonLoding}}" /> \ No newline at end of file -- Gitblit v1.9.1