index.wxss 2.3 KB
/**index.wxss**/

page {
  background: #f0f0f0;
}

.top_box {
  background: #fff;
  padding: 20rpx 30rpx;
}

.search_box {
  width: 100%;
  height: 59rpx;
  background: rgba(255, 255, 255, 1);
  border: 1rpx solid #a0a0a0;
  border-radius: 12rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  color: #000;
}

.icon-sousuo {
  font-size: 32rpx;
  color: #ff5922;
  margin-right: 10rpx;
}

.banner_box {
  margin-top: 16rpx;
  position: relative;
}

.swiper_box {
  width: 100%;
  height: 320rpx;
  position: relative;
}

.swiper_box image {
  width: 100%;
  height: 320rpx;
}

.banner_label {
  width: 100%;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  font-size: 28rpx;
  color: #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.icon-laba {
  font-size: 34rpx;
  margin-right: 10rpx;
}

.swiper_content {
  position: relative;
}

.dot_box {
  position: absolute;
  bottom: 15rpx;
  left: 0;
  display: flex;
  align-items: center;
}

.dot_item {
  width: 11rpx;
  height: 11rpx;
  border: 1rpx solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  margin-left: 20rpx;
}

.dot_active {
  width: 11rpx;
  height: 11rpx;
  background: rgba(255, 255, 255, 1);
  border-radius: 50%;
}

.classify_box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 40rpx 0 20rpx 0;
}

.classify_item {
  font-size: 26rpx;
  text-align: center;
}

.classify_item image {
  width: 60rpx;
  height: 60rpx;
}

.content_box {
  background: #fff;
  padding: 30rpx;
  margin-top: 16rpx;
}

.title {
  font-size: 30rpx;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.list_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.item_list {
  width: 30%;
  margin-bottom: 20rpx;
}

.item_list image {
  width: 205rpx;
  height: 212rpx;
}

.list_content {
  font-size: 24rpx;
  color: #000;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list_price {
  font-size: 24rpx;
  font-weight: bold;
  color: #ff5922;
}
.img_box{
  position: fixed;
  top: 50%;
  left: 45rpx;
  transform: translateY(-50%);
}
.img_box image{
  width: 94rpx;
  height: 114rpx;
}