css
litian
2024-09-25 b471803c1a9e4c1452a98a8b3631bde66641b910
pages/home/home.wxss
@@ -1,33 +1,68 @@
page {
  box-sizing: border-box;
  padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
@import "./home.skeleton.wxss";
.background {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 80rpx;
  line-height: 88rpx;
  z-index: 3;
  text-align: center;
  color: #fff;
  font-size: 34rpx;
}
.t-tabs.t-tabs--top .t-tabs__scroll {
  border-bottom: none !important;
.white {
  background: #fff;
  color: #333;
}
.home-page-header {
  background: linear-gradient(#fff, #f5f5f5);
.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: 180rpx;
}
.bg {
  height: 680rpx;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.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 {
@@ -36,77 +71,417 @@
}
.home-page-header .swiper-wrap {
  margin-top: 20rpx;
}
.home-page-header .t-image__swiper {
  margin-top: 30rpx;
  margin-bottom: 10rpx;
  height: 380rpx;
  width: 100%;
  height: 300rpx;
  /* border-radius: 10rpx; */
  border-radius: 18rpx;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
}
.home-page-container .t-tabs {
  background: #f5f5f5 !important;
.swiper {
  height: 380rpx;
  width: 100%;
}
.home-page-container .t-tabs .t-tabs-nav {
  background-color: transparent;
  line-height: 80rpx;
.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;
}
.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;
}
.jc-sb {
  justify-content: space-between
}
.home-page-container {
  margin-top: 20rpx;
  display: block;
  padding: 0 24rpx;
  margin-bottom: 11vh;
}
.tabCardPublic {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20rpx 5rpx;
  box-sizing: border-box;
  border-bottom: 2rpx solid #fadfbc;
}
.tabCardPublic .icon {
  width: 192rpx;
  height: 48rpx;
  position: relative;
}
.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 {
  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: 16rpx;
  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;
  flex: 1;
}
.body-info .price {
  font-size: 26rpx;
  color: #ff6d00;
}
.t-tabs .t-tabs__item {
  padding: 0 24rpx !important;
}
.t-tabs .t-tabs__item--active {
  color: #ff6d00;
  font-size: 30rpx;
  background-repeat: no-repeat;
  background-size: 40%;
  background-position: right;
  background-image: url(https://jsek.bnuic.com/home/image/click-icon.png);
}
.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;
.t-tabs__item--evenly {
  flex: 1 0 auto !important;
}
.home-page-container .tab .order-nav-item.active {
  color: #fa550f !important;
.listBox1,
.listBox2 {
  padding: 30rpx 0;
}
.home-page-container .tab .bottom-line {
  border-radius: 4rpx;
.listBox1 .listItemBox {
  margin-bottom: 30rpx;
}
.home-page-container .tab .order-nav-item.active .bottom-line {
  background-color: #fa550f !important;
.listBox1 .specialSubject-img {
  width: 336rpx;
  height: 205rpx;
  flex: 1;
  margin: 0 auto;
}
.home-page-container .tabs-external__item {
  /* color: #666 !important; */
  font-size: 28rpx;
.listBox1 .body-info {
  flex: 1;
}
.home-page-container .tabs-external__active {
  color: #333333 !important;
  font-size: 32rpx;
.listBox1 .addCartImg,
.listBox3 .addCartImg {
  width: 32rpx;
  height: 32rpx;
}
.home-page-container .tabs-external__track {
  /* background-color: #fa4126 !important; */
  height: 6rpx !important;
  border-radius: 4rpx !important;
  width: 48rpx !important;
.listBox1 .priceBox {
  margin-top: 10rpx;
}
.t-tabs.t-tabs--top .t-tabs__item,
.t-tabs.t-tabs--bottom .t-tabs__item {
  height: 86rpx !important;
.listBox2 {
  flex-flow: row wrap;
}
.home-page-container .goods-list-container {
  background: #f5f5f5 !important;
  margin-top: 16rpx;
.listBox2 .flex {
  flex-flow: row wrap;
}
.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 .booksListItemBox {
  width: calc(100%/3 - 32rpx);
  margin-bottom: 30rpx;
  margin-right: 45rpx;
}
.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;
}
.classHours {
  font-size: 26rpx;
}
.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);
  padding: 10rpx;
}
.listBox3 .name {
  font-size: 30rpx;
  height: 44rpx;
  color: #333333;
  font-weight: bold;
  line-height: 40rpx;
  display: -webkit-box;
  margin-bottom: 12rpx;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listBox3 .introduction {
  height: 70rpx;
  color: #B4B6BD;
  line-height: 36rpx;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listBox3 .author {
  line-height: 40rpx;
  margin: 16rpx 0;
}
.readList {
  overflow: auto;
}
.rankingList .listItem {
  padding: 20rpx 0;
}
.srcolbox {
  width: 100%;
  height: 400rpx;
  white-space: nowrap;
}
.booksListBox {
  display: flex;
}
.srcolbox .booksListItemBox {
  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;
}
.t-loading__circular {
  color: #ff6d00 !important;
}