From aff8d054df4a638f399dc8f15d98c19b9c9aa785 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 29 四月 2025 10:11:25 +0800 Subject: [PATCH] 扫码视频播放 --- packagePersonal/pages/myCollection/index.wxml | 78 ++++++++++++++++++++------------------ 1 files changed, 41 insertions(+), 37 deletions(-) diff --git a/packagePersonal/pages/myCollection/index.wxml b/packagePersonal/pages/myCollection/index.wxml index 8636000..ff16abe 100644 --- a/packagePersonal/pages/myCollection/index.wxml +++ b/packagePersonal/pages/myCollection/index.wxml @@ -1,29 +1,31 @@ <view class="container"> - <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabBookClick"> - <t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.label}}" value="{{index}}"> - <view class="pageInfo"> - <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" /> + <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabBookClick" wx:if="{{!skeletonLoding}}"> + <t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.label}}" value="{{index}}" /> + </t-tabs> + <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 && !skeletonLoding}}"> + <view class="listBox"> + <view class="{{activeName == 'Favoriteclass' ? 'class--tem' : 'content-item'}}" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> + <view class="icon" data-book="{{item}}" bindtap="goBookDetails"> + <image src="{{item.icon}}" mode="aspectFit" class="img" wx:if="{{item.icon}}" /> + <image src="/static/images/default-book-img.png" mode="aspectFit" class="img" wx:else /> + </view> + <view class="body-info" data-book="{{item}}" bindtap="goBookDetails"> + <view class="name">{{item.name}}</view> + <view class="author">{{item.author}}</view> + </view> + <view class="currentBtn" data-info="{{item}}" bindtap="setCoolect"> + <image src="/static/images/personal/quxiaoshoucang.png" mode="aspectFit" class="img" /> </view> </view> - <view class="list" wx:if="{{list.length > 0}}"> - <view wx:if="{{activeName == 'FavoriteBookCity'}}" class="listBox"> - <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> - <view class="icon" data-book="{{item}}" bindtap="goBookDetails"> - <t-image src="{{item.icon}}" mode="" class="img" /> - </view> - <view class="body-info" data-book="{{item}}" bindtap="goBookDetails"> - <view class="name">{{item.name}}</view> - <view class="author">{{item.author}}</view> - </view> - <view class="currentBtn" data-info="{{item}}" bindtap="setCoolect"> - <t-image src="/static/images/personal/quxiaoshoucang.png" mode="heightFix" class="img" /> - </view> - </view> - </view> - <!-- <view wx:if="{{activeName == 'Favoriteclass'}}"> + </view> + <!-- <view wx:if="{{activeName == 'Favoriteclass'}}"> <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> <view class="item-con"> <view class="titleBox"> @@ -32,19 +34,21 @@ </view> </view> </view> --> - </view> - <view wx:if="{{list.length == 0}}" class="empyt"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> - </view> - <view class="bottom-loading" wx:if="{{bottomLoading}}"> - <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." class="wrapper" /> - </view> - <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> - <text>娌℃湁鏇村浜�</text> - </view> - </scroll-view> </view> - </t-tab-panel> - </t-tabs> + <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" /> + </view> + <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> + <text>娌℃湁鏇村浜�</text> + </view> + </scroll-view> + </view> + <t-back-top theme="round" wx:if="{{isBackTop}}" text="椤堕儴" bind:to-top="onToTop"></t-back-top> -</view> \ No newline at end of file +</view> +<import src="index.skeleton.wxml" /> +<template is="skeleton" wx:if="{{skeletonLoding}}" /> \ No newline at end of file -- Gitblit v1.9.1