From af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 29 七月 2024 15:24:30 +0800
Subject: [PATCH] 图书详情页添加对云学习目录整体购买的判断

---
 pages/study/index.wxml |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pages/study/index.wxml b/pages/study/index.wxml
index 7b6bce7..085299b 100644
--- a/pages/study/index.wxml
+++ b/pages/study/index.wxml
@@ -6,7 +6,7 @@
         <view class="result"><text class="num">{{learningDuration}}</text></view>
       </view>
       <view class="box-item">
-        <view>涓婁竴娆$櫥闄嗘椂闂�</view>
+        <view>涓婁竴娆$櫥褰曟椂闂�</view>
         <view class="result">{{lastLoginTime}}</view>
       </view>
     </view>
@@ -29,14 +29,17 @@
         <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>
               <!-- <view class="author">{{item.product.author}}</view> -->
             </view>
           </view>
+        </view>
+        <view wx:else class="empyt">
+          <empty />
         </view>
         <!-- <view wx:if="{{activeName == 'Favoriteclass'}}">
               <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
@@ -49,7 +52,8 @@
             </view> -->
       </view>
       <view wx:if="{{list.length == 0}}" class="empyt">
-        <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+        <!-- <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