From bd00247c73e38c378d368977d306604d2c9e9149 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 17 四月 2024 18:24:27 +0800 Subject: [PATCH] 代码合并 --- pages/study/index.wxml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/study/index.wxml b/pages/study/index.wxml index 7b6bce7..30c5a1c 100644 --- a/pages/study/index.wxml +++ b/pages/study/index.wxml @@ -29,8 +29,8 @@ <view wx:if="{{active == '0'}}" 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}}" /> - <t-image src="/static/images/default-book-img.png" width="105" height="145" aria-label="{{item.product.name}}" wx:else /> + <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" /> </view> <view class="body-info" data-book="{{item}}" bindtap="goBookDetails"> <view class="name">{{item.product.name}}</view> -- Gitblit v1.9.1