From 0555dd7dc2edc553030b7a6d03d6a1cda4b1e336 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 20 三月 2024 15:41:58 +0800
Subject: [PATCH] 111

---
 pages/home/home.wxss |  391 +++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 333 insertions(+), 58 deletions(-)

diff --git a/pages/home/home.wxss b/pages/home/home.wxss
index bc25a36..67cd4ed 100644
--- a/pages/home/home.wxss
+++ b/pages/home/home.wxss
@@ -3,31 +3,62 @@
   padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
 }
 
-.t-tabs.t-tabs--top .t-tabs__scroll {
-  border-bottom: none !important;
+.container {
+  width: 100vw;
+  position: relative;
+  max-height: calc(100vh - env(safe-area-inset-bottom));
 }
 
-.home-page-header {
-  background: linear-gradient(#fff, #f5f5f5);
+.background {
+  width: 100%;
+  position: fixed;
+  top: 0;
+  left: 0;
+  height: 80rpx;
+  line-height: 80rpx;
+  z-index: 3;
+  text-align: center;
+  padding-top: 110rpx;
+  color: #fff;
+  font-size: 36rpx;
 }
 
+.white {
+  background: #fff;
+  color: #333;
+}
+
+.background .text {
+  height: 100%;
+}
+
+.home-page-header,
+.home-page-menu,
 .home-page-container {
-  background: #f5f5f5;
-}
-
-
-.home-page-header {
-  display: block;
-}
-
-.home-page-container {
-  display: block;
+  position: relative;
   padding: 0 24rpx;
 }
 
-.home-page-header .t-search__input-container {
-  border-radius: 32rpx !important;
-  height: 64rpx !important;
+.home-page-header {
+  padding-top: 230rpx;
+}
+
+.home-page-header .bg {
+  height: 680rpx;
+  position: absolute;
+  top: 0;
+  left: 0;
+  z-index: -1;
+}
+
+.home-page-header .bg .image {
+  height: 100%;
+}
+
+.home-page-header .search .t-search__input-container {
+  height: 96rpx;
+  background: #fff !important;
+  font-size: 28rpx !important;
 }
 
 .home-page-header .t-search__input {
@@ -36,77 +67,321 @@
 }
 
 .home-page-header .swiper-wrap {
+  margin-top: 30rpx;
+  margin-bottom: 10rpx;
+}
+
+.home-page-menu .t-grid--card {
+  margin: 0;
+}
+
+.flex {
+  display: flex;
+}
+
+.jc-sb {
+  justify-content: space-between
+}
+
+.home-page-container {
   margin-top: 20rpx;
+  display: block;
+  padding: 0 24rpx;
+  padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
 }
 
-.home-page-header .t-image__swiper {
+.tabCardPublic {
   width: 100%;
-  height: 300rpx;
-  /* border-radius: 10rpx; */
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  margin: 20rpx 5rpx;
+  box-sizing: border-box;
+  border-bottom: 2rpx solid #fadfbc;
 }
 
-.home-page-container .t-tabs {
-  background: #f5f5f5 !important;
+.tabCardPublic .icon {
+  width: 156rpx;
+  height: 48rpx;
 }
 
-.home-page-container .t-tabs .t-tabs-nav {
-  background-color: transparent;
-  line-height: 80rpx;
+.tabCardPublic .icon .t-image {
+  width: 100%;
+  height: 100%
+}
+
+.tabCardPublic .more {
+  font-size: 24rpx;
+  color: #ff6d00;
+}
+
+.listBox {
+  padding: 20rpx 0;
+  display: flex;
+  flex-flow: row wrap;
+  justify-content: space-between;
+}
+
+.listBox .listItemBox {
+  width: 49%;
+  margin-bottom: 30rpx;
+}
+
+.listItemBox .listItem {
+  background: #fff;
+  box-sizing: border-box;
+  border-radius: 5px;
+  overflow: hidden;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.listBox .specialSubject-img {
+  width: 100%;
+  height: 120rpx;
+}
+
+.specialSubject-img image {
+  width: 100%;
+  height: 100%;
+  object-fit: contain;
+}
+
+.body-info {
+  padding: 20rpx;
   font-size: 28rpx;
-  color: #333;
 }
 
-.home-page-container .t-tabs .t-tabs-scroll {
+.body-info .name {
+  font-size: 30rpx;
+  height: 80rpx;
+  color: #333333;
+  font-weight: bold;
+  line-height: 40rpx;
+  display: -webkit-box;
+  margin-bottom: 10rpx;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.body-info .time {
+  font-size: 26rpx;
+  margin-bottom: 10rpx;
+}
+
+.body-info .author {
+  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 {
+  font-size: 26rpx;
+  color: #ff6d00;
+}
+
+.t-tabs .t-tabs__item--active {
+  color: #ff6d00;
+  font-size: 30rpx;
+  /* background-image: url('/static/images/home/click-icon@2x.png'); */
+  background-repeat: no-repeat;
+  background-size: cover;
+  /* 纭繚鑳屾櫙鍥惧儚涓嶄細琚媺浼� */
+  /* background-position: right; */
+}
+
+.t-tabs .t-tabs__track {
+  display: none;
+}
+
+.t-tabs .t-tabs--top .t-tabs__scroll {
+  border-bottom: none !important;
+}
+
+.t-tabs .t-tabs-scroll {
   border: none !important;
 }
 
-/* 鍗婁釜瀛� */
-.home-page-container .tab.order-nav .order-nav-item.scroll-width {
-  min-width: 165rpx;
+.listBox1,
+.listBox2 {
+  padding: 30rpx 0;
 }
 
-.home-page-container .tab .order-nav-item.active {
-  color: #fa550f !important;
+.listBox1 .listItemBox {
+  height: 210rpx;
+  margin-bottom: 30rpx;
 }
 
-.home-page-container .tab .bottom-line {
-  border-radius: 4rpx;
+.listBox1 .specialSubject-img {
+  width: 480rpx;
+  height: 210rpx;
+  flex: 1;
 }
 
-.home-page-container .tab .order-nav-item.active .bottom-line {
-  background-color: #fa550f !important;
+.listBox1 .body-info {
+  flex: 1;
 }
 
-.home-page-container .tabs-external__item {
-  /* color: #666 !important; */
-  font-size: 28rpx;
+.listBox1 .addCartImg,
+.listBox3 .addCartImg {
+  width: 30rpx;
+  height: 30rpx;
 }
 
-.home-page-container .tabs-external__active {
-  color: #333333 !important;
-  font-size: 32rpx;
+.listBox1 .priceBox {
+  margin-top: 10rpx;
 }
 
-.home-page-container .tabs-external__track {
-  /* background-color: #fa4126 !important; */
-  height: 6rpx !important;
-  border-radius: 4rpx !important;
-  width: 48rpx !important;
+.listBox2 {
+  flex-flow: row wrap;
 }
 
-.t-tabs.t-tabs--top .t-tabs__item,
-.t-tabs.t-tabs--bottom .t-tabs__item {
-  height: 86rpx !important;
+.listBox2 .flex {
+  flex-flow: row wrap;
 }
 
-.home-page-container .goods-list-container {
-  background: #f5f5f5 !important;
-  margin-top: 16rpx;
+.listBox2 .booksListItemBox {
+  width: calc(100%/3 - 32rpx);
+  margin-bottom: 30rpx;
+  margin-right: 45rpx;
 }
 
-.home-page-tabs {
-  --td-tab-nav-bg-color: transparent;
-  --td-tab-border-color: transparent;
-  --td-tab-item-color: #666;
-  --td-tab-track-color: red;
+.listBox2 :nth-child(3),
+.listBox2 :nth-child(6) {
+  margin-right: 0;
+}
+
+.listBox2 .specialSubject-img {
+  height: 280rpx;
+  width: 100%;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.listBox2 .body-info {
+  padding: 20rpx 0;
+}
+
+.listBox2 .author {
+  height: 28rpx;
+  color: #333333;
+  line-height: 30rpx;
+  display: -webkit-box;
+  margin-bottom: 10rpx;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 1;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.listBox2 .empyt {
+  padding: 20rpx;
+  box-sizing: border-box;
+}
+
+.listBox3 {
+  padding: 10rpx 0;
+}
+
+.listBox3 .textbooksItemBox {
+  margin-bottom: 30rpx;
+}
+
+.listBox3 .textbooksItemBox .specialSubject-img {
+  width: 190rpx;
+  height: 250rpx;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.listBox3 .body-info {
+  width: calc(100% - 190rpx);
+}
+
+.listBox3 .name {
+  font-size: 30rpx;
+  height: 44rpx;
+  color: #333333;
+  font-weight: bold;
+  line-height: 44rpx;
+  display: -webkit-box;
+  margin-bottom: 10rpx;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 1;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.listBox3 .introduction {
+  color: #B4B6BD;
+  line-height: 36rpx;
+  display: -webkit-box;
+  margin-bottom: 10rpx;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.listBox3 .author {
+  line-height: 40rpx;
+  margin-bottom: 30rpx;
+}
+
+.readList {
+  overflow: auto;
+}
+
+.rankingList .listItem {
+  padding: 20rpx 0;
+}
+
+.srcolbox {
+  width: 100%;
+  height: 420rpx;
+  white-space: nowrap;
+}
+
+.srcolbox .booksListItemBox {
+  display: inline-block;
+  width: 188rpx;
+  margin-right: 30rpx;
+}
+
+.rankingList .specialSubject-img {
+  height: 254rpx;
+  width: 100%;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.rankingList .body-info {
+  padding: 20rpx 0;
+}
+
+.rankingList .name {
+  height: 80rpx;
+  width: 188rpx;
+  color: #333333;
+  line-height: 40rpx;
+  display: -webkit-box;
+  /* 浣跨敤寮规�х洅瀛愬竷灞�妯″瀷 */
+  -webkit-line-clamp: 2;
+  /* 鎺у埗鏂囨湰鐨勮鏁� */
+  -webkit-box-orient: vertical;
+  /* 璁剧疆鐩掑瓙鐨勫瓙鍏冪礌鎺掑垪鏂瑰悜 */
+  overflow: hidden;
+  /* 瓒呭嚭閮ㄥ垎闅愯棌 */
+  text-overflow: ellipsis;
+  /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */
+  white-space: normal;
 }
\ No newline at end of file

--
Gitblit v1.9.1