litian
2024-03-26 10db09788d74b441a2efd85f5d4614e944b07bb3
pages/home/home.wxss
@@ -1,14 +1,10 @@
page {
  box-sizing: border-box;
  padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
}
.background {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 80rpx;
  line-height: 80rpx;
  z-index: 3;
  text-align: center;
  padding-top: 110rpx;
@@ -33,7 +29,7 @@
}
.home-page-header {
  padding-top: 230rpx;
  padding-top: 180rpx;
}
.home-page-header .bg {
@@ -68,6 +64,27 @@
  margin: 0;
}
.t-grid-item__image {
  width: 60rpx !important;
  height: 56rpx !important;
  position: relative;
}
.t-grid-item__image:not(:empty).t-grid-item__image--small .t-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: auto !important;
}
.flex {
  display: flex;
}
@@ -80,6 +97,7 @@
  margin-top: 20rpx;
  display: block;
  padding: 0 24rpx;
  margin-bottom: 11vh;
}
.tabCardPublic {
@@ -93,13 +111,30 @@
}
.tabCardPublic .icon {
  width: 156rpx;
  width: 192rpx;
  height: 48rpx;
  position: relative;
}
.tabCardPublic .icon .t-image {
  width: 100%;
  height: 100%
.iconOne .icon {
  width: 156rpx;
}
.iconTwo .icon {
  width: 164rpx;
}
.tabCardPublic .icon .iconImage {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.tabCardPublic .more {
@@ -139,13 +174,13 @@
}
.body-info {
  padding: 20rpx;
  padding: 16rpx;
  font-size: 28rpx;
}
.body-info .name {
  font-size: 30rpx;
  height: 88rpx;
  height: 80rpx;
  color: #333333;
  font-weight: bold;
  line-height: 40rpx;
@@ -166,6 +201,18 @@
  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;
  flex: 1;
}
.body-info .price {
@@ -173,14 +220,17 @@
  color: #ff6d00;
}
.t-tabs .t-tabs__item {
  padding: 0 24rpx !important;
}
.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; */
  background-size: 40% 64%;
  background-position: right;
  background-image: url(http://182.92.203.7:3007/jsek/website/image/click-icon.png);
}
.t-tabs .t-tabs__track {
@@ -195,19 +245,22 @@
  border: none !important;
}
.t-tabs__item--evenly {
  flex: 1 0 auto !important;
}
.listBox1,
.listBox2 {
  padding: 30rpx 0;
}
.listBox1 .listItemBox {
  height: 210rpx;
  margin-bottom: 30rpx;
}
.listBox1 .specialSubject-img {
  width: 480rpx;
  height: 210rpx;
  width: 336rpx;
  height: 205rpx;
  flex: 1;
}
@@ -217,8 +270,8 @@
.listBox1 .addCartImg,
.listBox3 .addCartImg {
  width: 30rpx;
  height: 30rpx;
  width: 32rpx;
  height: 32rpx;
}
.listBox1 .priceBox {
@@ -234,7 +287,7 @@
}
.listBox2 .booksListItemBox {
  width: calc(100%/3 - 30rpx);
  width: calc(100%/3 - 32rpx);
  margin-bottom: 30rpx;
  margin-right: 45rpx;
}
@@ -257,7 +310,6 @@
.listBox2 .author {
  height: 28rpx;
  color: #333333;
  font-weight: bold;
  line-height: 30rpx;
  display: -webkit-box;
  margin-bottom: 10rpx;
@@ -265,6 +317,10 @@
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.classHours {
  font-size: 26rpx;
}
.listBox2 .empyt {
@@ -288,6 +344,7 @@
.listBox3 .body-info {
  width: calc(100% - 190rpx);
  padding: 10rpx;
}
.listBox3 .name {
@@ -295,9 +352,9 @@
  height: 44rpx;
  color: #333333;
  font-weight: bold;
  line-height: 44rpx;
  line-height: 40rpx;
  display: -webkit-box;
  margin-bottom: 10rpx;
  margin-bottom: 12rpx;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
@@ -305,10 +362,10 @@
}
.listBox3 .introduction {
  height: 70rpx;
  color: #B4B6BD;
  line-height: 36rpx;
  display: -webkit-box;
  margin-bottom: 10rpx;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
@@ -317,7 +374,7 @@
.listBox3 .author {
  line-height: 40rpx;
  margin-bottom: 30rpx;
  margin: 16rpx 0;
}
.readList {
@@ -330,12 +387,15 @@
.srcolbox {
  width: 100%;
  height: 480rpx;
  height: 400rpx;
  white-space: nowrap;
}
.booksListBox {
  display: flex;
}
.srcolbox .booksListItemBox {
  display: inline-block;
  width: 188rpx;
  margin-right: 30rpx;
}
@@ -350,15 +410,24 @@
  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;
}
.t-loading__circular {
  color: #ff6d00 !important;
}