From b10f56cafd2767ef89988877528ba8bff32f8f41 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 01 三月 2024 09:53:25 +0800
Subject: [PATCH] feat(洒大山): 说的是

---
 pages/home/home.wxss |  295 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 273 insertions(+), 22 deletions(-)

diff --git a/pages/home/home.wxss b/pages/home/home.wxss
index bf3e88f..fa02cf0 100644
--- a/pages/home/home.wxss
+++ b/pages/home/home.wxss
@@ -3,22 +3,55 @@
   padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
 }
 
-.home-page-header {
-  position: relative;
-}
-
-.home-page-header .search {
-  position: absolute;
-  top: 20rpx;
-  left: 0;
+.background {
   width: 100%;
-  z-index: 99;
+  position: fixed;
+  top: 0;
+  left: 0;
+  height: 80rpx;
+  z-index: 3;
+  text-align: center;
+  padding-top: 110rpx;
+  color: #fff;
+  font-size: 36rpx;
 }
 
-.home-page-header .t-search__input-container {
-  border-radius: 15rpx !important;
-  margin: 0 24rpx;
-  height: 64rpx !important;
+.white {
+  background: #fff;
+  color: #333;
+}
+
+.background .text {
+  height: 100%;
+}
+
+.home-page-header,
+.home-page-menu,
+.home-page-container {
+  position: relative;
+  padding: 0 24rpx;
+}
+
+.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 {
@@ -26,16 +59,25 @@
   color: rgb(116, 116, 116) !important;
 }
 
-.home-page-header .swiper-wrap .t-swiper-host {
-  border-radius: 0;
+.home-page-header .swiper-wrap {
+  margin-top: 30rpx;
+  margin-bottom: 10rpx;
 }
 
-.home-page-header .t-image__swiper {
-  width: 100%;
-  height: 300rpx;
+.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;
 }
@@ -45,13 +87,14 @@
   display: flex;
   justify-content: space-between;
   align-items: center;
-  padding: 20rpx 5rpx;
+  margin: 20rpx 5rpx;
   box-sizing: border-box;
+  border-bottom: 2rpx solid #fadfbc;
 }
 
 .tabCardPublic .icon {
-  width: 246rpx;
-  height: 72rpx;
+  width: 156rpx;
+  height: 48rpx;
 }
 
 .tabCardPublic .icon .t-image {
@@ -61,5 +104,213 @@
 
 .tabCardPublic .more {
   font-size: 24rpx;
-  color: #999;
+  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;
+}
+
+.body-info .name {
+  font-size: 32rpx;
+  height: 88rpx;
+  color: #333333;
+  font-weight: bold;
+  line-height: 44rpx;
+  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;
+}
+
+.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;
+}
+
+.listBox1,
+.listBox2 {
+  padding: 50rpx 0;
+}
+
+.listBox1 .listItemBox {
+  height: 220rpx;
+  margin-bottom: 30rpx;
+}
+
+.listBox1 .specialSubject-img {
+  width: 400rpx;
+  height: 218rpx;
+}
+
+.listBox1 .addCartImg,
+.listBox3 .addCartImg {
+  width: 30rpx;
+  height: 30rpx;
+}
+
+.listBox1 .priceBox {
+  margin-top: 14rpx;
+}
+
+.listBox2 {
+  flex-flow: row wrap;
+}
+
+.listBox2 .flex {
+  flex-flow: row wrap;
+}
+
+.listBox2 .booksListItemBox {
+  width: calc(100%/3 - 30rpx);
+  margin-bottom: 30rpx;
+  margin-right: 45rpx;
+}
+
+.listBox2 :nth-child(3),
+.listBox2 :nth-child(6) {
+  margin-right: 0;
+}
+
+.listBox2 .specialSubject-img {
+  height: 300rpx;
+  width: 100%;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.listBox2 .body-info {
+  padding: 20rpx 0;
+}
+
+.listBox2 .author {
+  height: 30rpx;
+  color: #333333;
+  font-weight: bold;
+  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 .textbooksItemBox {
+  margin-bottom: 30rpx;
+}
+
+.listBox3 .textbooksItemBox .specialSubject-img {
+  width: 190rpx;
+  height: 260rpx;
+  box-shadow: 0px 0px 20rpx 2px #f1f1f1;
+}
+
+.listBox3 .body-info {
+  width: calc(100% - 190rpx);
+}
+
+.listBox3 .name {
+  font-size: 32rpx;
+  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;
 }
\ No newline at end of file

--
Gitblit v1.9.1