From b273028fde3178d2643312c66d943b12f2c1bfad Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 09:26:06 +0800
Subject: [PATCH] 图书分类、图书列表、图书详情·页测试bug修改

---
 pages/home/home.wxss |   51 +++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 14 deletions(-)

diff --git a/pages/home/home.wxss b/pages/home/home.wxss
index 8be0612..67cd4ed 100644
--- a/pages/home/home.wxss
+++ b/pages/home/home.wxss
@@ -3,12 +3,19 @@
   padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
 }
 
+.container {
+  width: 100vw;
+  position: relative;
+  max-height: calc(100vh - env(safe-area-inset-bottom));
+}
+
 .background {
   width: 100%;
   position: fixed;
   top: 0;
   left: 0;
   height: 80rpx;
+  line-height: 80rpx;
   z-index: 3;
   text-align: center;
   padding-top: 110rpx;
@@ -80,6 +87,7 @@
   margin-top: 20rpx;
   display: block;
   padding: 0 24rpx;
+  padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
 }
 
 .tabCardPublic {
@@ -144,11 +152,11 @@
 }
 
 .body-info .name {
-  font-size: 32rpx;
-  height: 88rpx;
+  font-size: 30rpx;
+  height: 80rpx;
   color: #333333;
   font-weight: bold;
-  line-height: 44rpx;
+  line-height: 40rpx;
   display: -webkit-box;
   margin-bottom: 10rpx;
   -webkit-box-orient: vertical;
@@ -166,6 +174,17 @@
   font-size: 26rpx;
   display: flex;
   justify-content: space-between;
+  display: -webkit-box;
+  /* 浣跨敤寮规�х洅瀛愬竷灞�妯″瀷 */
+  -webkit-line-clamp: 1;
+  /* 鎺у埗鏂囨湰鐨勮鏁� */
+  -webkit-box-orient: vertical;
+  /* 璁剧疆鐩掑瓙鐨勫瓙鍏冪礌鎺掑垪鏂瑰悜 */
+  overflow: hidden;
+  /* 瓒呭嚭閮ㄥ垎闅愯棌 */
+  text-overflow: ellipsis;
+  /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */
+  white-space: normal;
 }
 
 .body-info .price {
@@ -234,7 +253,7 @@
 }
 
 .listBox2 .booksListItemBox {
-  width: calc(100%/3 - 30rpx);
+  width: calc(100%/3 - 32rpx);
   margin-bottom: 30rpx;
   margin-right: 45rpx;
 }
@@ -255,9 +274,8 @@
 }
 
 .listBox2 .author {
-  height: 30rpx;
+  height: 28rpx;
   color: #333333;
-  font-weight: bold;
   line-height: 30rpx;
   display: -webkit-box;
   margin-bottom: 10rpx;
@@ -291,7 +309,7 @@
 }
 
 .listBox3 .name {
-  font-size: 32rpx;
+  font-size: 30rpx;
   height: 44rpx;
   color: #333333;
   font-weight: bold;
@@ -330,7 +348,7 @@
 
 .srcolbox {
   width: 100%;
-  height: 480rpx;
+  height: 420rpx;
   white-space: nowrap;
 }
 
@@ -350,15 +368,20 @@
   padding: 20rpx 0;
 }
 
-.rankingList .author {
-  height: 30rpx;
+.rankingList .name {
+  height: 80rpx;
+  width: 188rpx;
   color: #333333;
-  font-weight: bold;
-  line-height: 30rpx;
+  line-height: 40rpx;
   display: -webkit-box;
-  margin-bottom: 10rpx;
+  /* 浣跨敤寮规�х洅瀛愬竷灞�妯″瀷 */
+  -webkit-line-clamp: 2;
+  /* 鎺у埗鏂囨湰鐨勮鏁� */
   -webkit-box-orient: vertical;
-  -webkit-line-clamp: 1;
+  /* 璁剧疆鐩掑瓙鐨勫瓙鍏冪礌鎺掑垪鏂瑰悜 */
   overflow: hidden;
+  /* 瓒呭嚭閮ㄥ垎闅愯棌 */
   text-overflow: ellipsis;
+  /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */
+  white-space: normal;
 }
\ No newline at end of file

--
Gitblit v1.9.1