From e060ad2b2da9884e00b36796548eacc6a2b9a5d3 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 29 三月 2024 09:44:30 +0800
Subject: [PATCH] 图书详情,列表页bug修改

---
 pages/home/home.wxml |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/pages/home/home.wxml b/pages/home/home.wxml
index ff43634..4170fe9 100644
--- a/pages/home/home.wxml
+++ b/pages/home/home.wxml
@@ -13,7 +13,7 @@
         </t-search>
       </view>
       <view class="swiper-wrap">
-        <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" bind:click="navToActivityDetail" />
+        <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" height="380rpx" bind:click="navToActivityDetail" />
       </view>
     </view>
     <view class="home-page-menu">
@@ -69,12 +69,12 @@
         <view class="listBox1">
           <view wx:if="{{courseList.length>0}}">
             <view wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox">
-              <view class="listItem flex" data-book="{{item}}" bindtap="goCourseDetail">
-                <view class="specialSubject-img">
+              <view class="listItem flex">
+                <view class="specialSubject-img" data-book="{{item}}" bindtap="goCourseDetail">
                   <image src="{{item.icon}}" mode="aspectFill" class="img" />
                 </view>
                 <view class="body-info">
-                  <view class="name">{{item.name}}</view>
+                  <view class="name" data-book="{{item}}" bindtap="goCourseDetail">{{item.name}}</view>
                   <view class="flex jc-sb">
                     <text class="author">{{item.courseLeader}}</text>
                     <text class="classHours">{{item.classHours}}璇炬椂</text>
@@ -158,13 +158,13 @@
         <view class="listBox3">
           <view wx:if="{{textbookList.length > 0}}">
             <view wx:for="{{textbookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="textbooksItemBox">
-              <view class="listItem flex" bind:tap="goTextBookDetail" data-book="{{item}}">
-                <view class="specialSubject-img">
+              <view class="listItem flex">
+                <view class="specialSubject-img" bind:tap="goTextBookDetail" data-book="{{item}}">
                   <image src="{{item.icon}}" mode="aspectFit" class="img" />
                 </view>
                 <view class="body-info">
-                  <view class="name">{{item.name}}</view>
-                  <view class="introduction">{{item.description}}</view>
+                  <view class="name" bind:tap="goTextBookDetail" data-book="{{item}}">{{item.name}}</view>
+                  <view class="introduction" bind:tap="goTextBookDetail" data-book="{{item}}">{{item.description}}</view>
                   <view class="author">{{item.author}}</view>
                   <view class="priceBox flex jc-sb">
                     <text class="price" wx:if="{{item.price == 0}}">鍏嶈垂</text>
@@ -186,15 +186,17 @@
         </view>
         <view class="rankingList">
           <scroll-view class="srcolbox" scroll-x scroll-with-animation='true'>
-            <view wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox">
-              <view class="listItem" bind:tap="goDetail" data-book="{{item}}">
-                <view class="specialSubject-img">
-                  <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">
-                  <view class="name">{{item.name}}</view>
-                  <!-- <view class="author">{{item.author}}</view> -->
+            <view class="booksListBox">
+              <view wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox">
+                <view class="listItem" bind:tap="goDetail" data-book="{{item}}">
+                  <view class="specialSubject-img">
+                    <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">
+                    <view class="name">{{item.name}}</view>
+                    <!-- <view class="author">{{item.author}}</view> -->
+                  </view>
                 </view>
               </view>
             </view>

--
Gitblit v1.9.1