From d2141abe17a7c6576f72a45304ab5e8453cce2e6 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期三, 18 十二月 2024 10:57:22 +0800 Subject: [PATCH] 1 --- pages/home/home.wxss | 86 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 72 insertions(+), 14 deletions(-) diff --git a/pages/home/home.wxss b/pages/home/home.wxss index 6dcae7a..675b791 100644 --- a/pages/home/home.wxss +++ b/pages/home/home.wxss @@ -1,15 +1,16 @@ +@import "./home.skeleton.wxss"; + .background { width: 100%; position: fixed; top: 0; left: 0; height: 80rpx; - line-height: 80rpx; + line-height: 88rpx; z-index: 3; text-align: center; - padding-top: 110rpx; color: #fff; - font-size: 36rpx; + font-size: 34rpx; } .white { @@ -29,10 +30,10 @@ } .home-page-header { - padding-top: 230rpx; + padding-top: 180rpx; } -.home-page-header .bg { +.bg { height: 680rpx; position: absolute; top: 0; @@ -40,14 +41,28 @@ z-index: -1; } -.home-page-header .bg .image { +.bg .image { height: 100%; +} + +.home-page-header .search { + display: flex; + align-items: center; } .home-page-header .search .t-search__input-container { height: 96rpx; background: #fff !important; font-size: 28rpx !important; + flex: 1; + width: 85vw; + margin-left: 20rpx; +} + +.home-page-header .search .icon { + width: 40rpx; + height: 40rpx; + } .home-page-header .t-search__input { @@ -58,7 +73,45 @@ .home-page-header .swiper-wrap { margin-top: 30rpx; margin-bottom: 10rpx; + height: 380rpx; + width: 100%; + border-radius: 18rpx; + overflow: hidden; + display: flex; + align-items: center; + justify-content: center; + background: #f6f6f6; } + +.swiper { + height: 380rpx; + width: 100%; +} + +.swiper-item { + width: 100%; + height: 100%; +} + +.swiperItem { + position: relative; + height: 380rpx; + width: 100%; +} + +.swiper .img { + max-width: 100% !important; + /* max-height: 100% !important; */ + width: auto !important; + /* height: auto !important; */ + position: absolute !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + margin: auto !important; +} + .home-page-menu .t-grid--card { margin: 0; @@ -97,7 +150,7 @@ margin-top: 20rpx; display: block; padding: 0 24rpx; - padding-bottom: 10vh; + margin-bottom: 11vh; } .tabCardPublic { @@ -212,6 +265,7 @@ text-overflow: ellipsis; /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */ white-space: normal; + flex: 1; } .body-info .price { @@ -227,9 +281,9 @@ color: #ff6d00; font-size: 30rpx; background-repeat: no-repeat; - background-size: 34% 64%; + background-size: 40%; background-position: right; - background-image: url(http://182.92.203.7:3007/jsek/website/image/click-icon.png); + background-image: url(https://jsek.bnuic.com/home/image/click-icon.png); } .t-tabs .t-tabs__track { @@ -261,6 +315,7 @@ width: 336rpx; height: 205rpx; flex: 1; + margin: 0 auto; } .listBox1 .body-info { @@ -343,6 +398,7 @@ .listBox3 .body-info { width: calc(100% - 190rpx); + padding: 10rpx; } .listBox3 .name { @@ -352,7 +408,7 @@ font-weight: bold; line-height: 40rpx; display: -webkit-box; - margin-bottom: 10rpx; + margin-bottom: 12rpx; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; @@ -364,7 +420,6 @@ color: #B4B6BD; line-height: 36rpx; display: -webkit-box; - margin-bottom: 14rpx; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; @@ -373,7 +428,7 @@ .listBox3 .author { line-height: 40rpx; - margin-bottom: 20rpx; + margin: 16rpx 0; } .readList { @@ -386,12 +441,15 @@ .srcolbox { width: 100%; - height: 420rpx; + height: 400rpx; white-space: nowrap; } +.booksListBox { + display: flex; +} + .srcolbox .booksListItemBox { - display: inline-block; width: 188rpx; margin-right: 30rpx; } -- Gitblit v1.9.1