goods.wxss 2.97 KB
/* components/Goods/Goods.wxss */
.text-hide{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.Goods{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 16rpx 20rpx 0;
  box-sizing: border-box;
}
 .Goods .left, .Goods .right {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}

 .Goods .name {
  color: #2D2D2E;
  margin: 16rpx 0 ;
}

.left .item-box, .right .item-box{
  margin-bottom: 20rpx;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
}

.left .item-box{
  margin-right: 11rpx;
}

.right .item-box{
  margin-left: 11rpx;
}

.item-box .preview{
  width: 100%;
  height: 344rpx;
}

.item-box-content{
  padding: 20rpx;
}

.item-box-title{
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 28rpx;
  color: #0A0D14;
}

.item-box-title .item-box-title-image{
  flex: 0 0 48rpx;
  height: 32rpx;
  margin-right: 12rpx;
  margin-top: 5rpx;
}

.item-box-title .item-box-title-text{
  font-size: 28rpx;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-box-time{
  font-weight: 500;
  font-size: 10px;
  color: #858A94;
  margin-top: 12rpx;
  vertical-align: middle;
}
.item-box-time .text{
  display: flex;
  align-items: center;
}
.item-box-price{
  margin-top: 12rpx;
  display: flex;
  align-items: center;
  margin-top: 14rpx;
  font-size: 20rpx;
}

.item-box-price .now{
  font-size: 40rpx;
  color: var(--btnColor);
  font-weight: 600;
}

.item-box-price .now .unit{
  font-size: 24rpx;
}

.item-box-price .now .price-last{
  font-size: 24rpx;
}

.item-box-price .old{
  color: #3F444D;
  text-decoration: line-through;
  margin-left: 8rpx;
  margin-bottom: -10rpx;
}

.item-box-bubble .item-box-bubble-view{
  position: relative;
  background: #FFF5F3;
  height: 40rpx;
  line-height: 40rpx;
  padding-left: 12rpx;
  border-radius: 0 8rpx 8rpx 8rpx;
  margin-top: 14rpx;
  font-size: 20rpx;
  color: #FF6038;
}
.item-box-bubble .item-box-bubble-view::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: -16rpx;
  right: -16rpx;
  left: 0;
  border-right: 16rpx solid transparent;
  border-bottom: 16rpx solid #FFF5F3;
}

.item-box-bubble .item-box-bubble-text{
  margin-right: 16rpx;
}

.item-box-goods-label{
  display: flex;
  align-items: center;
  margin-top: 8rpx;
  position: relative;
}

.coupon-logotype, .free-shipping{
  font-size: 16rpx;
  height: 22rpx;
  border: 2rpx solid #FF6038;
  border-radius: 4rpx;
  color: #FF590E;
}

.coupon-logotype{
  position: relative;
}

.coupon-logotype .coupon-logo{
  color: #fff;
  width: 26rpx;
  height: 26rpx;
  position: absolute;
  left: -2rpx;
  top: -2rpx;
  margin: 0;
  display: inline-block;
  text-align: center;
  border-radius: 4rpx;
  font-size: 16rpx;
  line-height: 24rpx;
  background: #FF6038;
}

.coupon-logotype .coupon-name{
  margin-left: 30rpx;
  padding-right: 4rpx;
}

.free-shipping{
  margin-left: 8rpx;
  padding: 0 8rpx;
}