From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- pages/study/index.wxml | 21 +++++++-------------- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/pages/study/index.wxml b/pages/study/index.wxml index 2754b07..ca85916 100644 --- a/pages/study/index.wxml +++ b/pages/study/index.wxml @@ -13,7 +13,7 @@ </view> <view class="tabOne" wx:if="{{!skeletonLoding}}"> <t-tabs t-class="t-tabs" value="{{active}}" split="{{false}}" bind:change="tabClick"> - <t-tab-panel label="{{titleBook}}" value="0" class="{{active == '2' ? 'oneBorder' : ''}}" /> + <t-tab-panel label="{{titleBook}}" value="0" /> <t-tab-panel label="{{titleCourse}}" value="1" /> <t-tab-panel label="{{titleTextBook}}" value="2" /> </t-tabs> @@ -26,11 +26,13 @@ </view> </view> <view class="list" wx:if="{{list.length > 0}}"> - <view wx:if="{{active == '0'}}" class="listBox"> + <view class="listBox"> <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> <view class="book-img" bind:tap="goBookDetails" data-book="{{item}}"> - <t-image src="{{item.product.icon}}" width="105" height="145" aria-label="{{item.product.name}}" wx:if="{{item.product.icon}}" mode="aspectFit" /> - <t-image src="/static/images/default-book-img.png" width="105" height="145" aria-label="{{item.product.name}}" wx:else mode="aspectFit" /> + <t-image src="{{item.product.icon}}" width="{{active == '1' ? 150 : 105}}" height="{{active == '1' ? 90 : 145}}" aria-label="{{item.product.name}}" wx:if="{{item.product.icon}}" mode="aspectFit" /> + <t-image src="https://jsek.bnuic.com/home/image/courseIcon.png" width="150" height="90" aria-label="{{item.product.name}}" mode="aspectFit" wx:if="{{!item.product.icon && active == '1'}}"/> + <t-image src="/static/images/default-book-img.png" width="105" height="145" aria-label="{{item.product.name}}" mode="aspectFit" wx:if="{{!item.product.icon && active == '0'}}"/> + <t-image src="https://jsek.bnuic.com/home/image/textBookIcon.png" width="105" height="145" aria-label="{{item.product.name}}" mode="aspectFit" wx:if="{{!item.product.icon && active == '2'}}"/> </view> <view class="body-info" data-book="{{item}}" bindtap="goBookDetails"> <view class="name">{{item.product.name}}</view> @@ -38,18 +40,9 @@ </view> </view> </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"> - <view class="item-title">{{item.name}}</view> - </view> - </view> - </view> - </view> --> </view> <view wx:if="{{list.length == 0}}" 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" /> -- Gitblit v1.9.1