litian
2024-04-01 74139f2bc6bdc8147dd570ac1d774245f67e4f9f
pages/home/home.wxss
@@ -1,14 +1,3 @@
page {
  box-sizing: border-box;
  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;
@@ -40,7 +29,7 @@
}
.home-page-header {
  padding-top: 230rpx;
  padding-top: 180rpx;
}
.home-page-header .bg {
@@ -69,11 +58,65 @@
.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%;
}
.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;
}
.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;
@@ -87,7 +130,7 @@
  margin-top: 20rpx;
  display: block;
  padding: 0 24rpx;
  padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
  margin-bottom: 11vh;
}
.tabCardPublic {
@@ -101,13 +144,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 {
@@ -147,7 +207,7 @@
}
.body-info {
  padding: 20rpx;
  padding: 16rpx;
  font-size: 28rpx;
}
@@ -185,6 +245,7 @@
  text-overflow: ellipsis;
  /* 超出部分显示省略号 */
  white-space: normal;
  flex: 1;
}
.body-info .price {
@@ -192,14 +253,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://jsysf.bnuic.com/website/image/click-icon.png);
}
.t-tabs .t-tabs__track {
@@ -214,19 +278,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;
}
@@ -236,8 +303,8 @@
.listBox1 .addCartImg,
.listBox3 .addCartImg {
  width: 30rpx;
  height: 30rpx;
  width: 32rpx;
  height: 32rpx;
}
.listBox1 .priceBox {
@@ -285,6 +352,10 @@
  text-overflow: ellipsis;
}
.classHours {
  font-size: 26rpx;
}
.listBox2 .empyt {
  padding: 20rpx;
  box-sizing: border-box;
@@ -306,6 +377,7 @@
.listBox3 .body-info {
  width: calc(100% - 190rpx);
  padding: 10rpx;
}
.listBox3 .name {
@@ -313,9 +385,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;
@@ -323,10 +395,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;
@@ -335,7 +407,7 @@
.listBox3 .author {
  line-height: 40rpx;
  margin-bottom: 30rpx;
  margin: 16rpx 0;
}
.readList {
@@ -348,12 +420,15 @@
.srcolbox {
  width: 100%;
  height: 420rpx;
  height: 400rpx;
  white-space: nowrap;
}
.booksListBox {
  display: flex;
}
.srcolbox .booksListItemBox {
  display: inline-block;
  width: 188rpx;
  margin-right: 30rpx;
}
@@ -384,4 +459,8 @@
  text-overflow: ellipsis;
  /* 超出部分显示省略号 */
  white-space: normal;
}
.t-loading__circular {
  color: #ff6d00 !important;
}