Goods.wxss 1.14 KB
/* components/Goods/Goods.wxss */
.Goods{
  width: 100%;
  border-radius: 8rpx;
}
 .Goods .preview {
  border-radius: 8rpx;
  overflow: hidden;
  height: 252rpx;
}

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

 .Goods .info {
  color: #B1B1B3;
  font-size: 20rpx;
  display: flex;
  align-items: center;
}

 .Goods .info .icon {
  width: 24rpx;
  height: 24rpx;
  margin-right: 2rpx;
}
.Goods .info .icon .text{
  width: calc(100% - 26rpx);
}
 .Goods .price {
  display: flex;
  align-items: center;
  margin-top: 14rpx;
  font-size: 20rpx;
}

 .Goods .price .now {
  display: flex;
  align-items: baseline;
  color: var(--btnColor);
  font-size: 34rpx;
  line-height: 34rpx;
  font-weight: 500;
  letter-spacing: -0.5rpx;
}
.Goods .price .now.true{
  font-size: 40rpx;
  line-height: 40rpx;
}
 .Goods .price .now .unit {
  font-size: 20rpx;
  margin: 0 4rpx;
}
.Goods .price .now.true .unit{
  font-size: 24rpx;
}
.Goods .price .now .up{
  transform: translateY(-2rpx);
}
.Goods .price .old {
  color: #C9CACC;
  text-decoration: line-through;
  margin-left: auto;
}

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}