Posts.wxss 2.26 KB
/* components/Posts/Posts.wxss */
@import "/style/common.wxss";

.posts-box {
  width: 332rpx;
  height: 466rpx;
  background: #FFFFFF;
  border-radius: 10rpx;
  border: 1rpx solid #EFF0F2;
  margin-bottom: 24rpx;
  box-sizing: border-box;
}

.title {
  padding: 16rpx 8rpx;
  display: flex;
  box-sizing: border-box;
  height: 94rpx;
}

.title .icon {
  width: 72rpx;
  height: 72rpx;
  border-radius: 100%;
  overflow: hidden;
  margin-right: 16rpx;
}

.live .icon {
  display: none;
}

.title .text {
  width: calc(100% - 88rpx);
}

.live .text {
  width: 100%;
}

.title .name {
  font-size: 32rpx;
  font-weight: 500;
}

.title .tips {
  color: #B1B1B3;
  font-size: 20rpx;
}

.live .tips {
  color: #DE4B43;
}

.preview {
  position: relative;
  border-radius: 4rpx;
  border: 2rpx solid #FFFFFF;
  height: 186rpx;
  overflow: hidden;
}

.large {
  height: 344rpx;
}

.preview .video {
  width: 100%;
  height: 100%;
}

.preview .icon {
  width: 98rpx;
  height: 98rpx;
}

.posts-box .goods {
  margin-top: 38rpx;
  height: 120rpx;
  background: #F7F8FA;
  border-radius: var(--borderRadius);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 16rpx;
}

.posts-box .goods .icon {
  width: 88rpx;
  height: 88rpx;
  margin-right: 16rpx;
  border-radius: var(--borderRadius);
  overflow: hidden;
}

.posts-box .goods .text {
  width: calc(100% - 104rpx);
}

.posts-box .goods .text .name {
  color: #2D2D2E;
  font-weight: 500;
  font-size: 24rpx;
  margin-bottom: var(--borderRadius);
}

.posts-box .goods .text .price {
  display: flex;
  align-items: center;
  font-size: 24rpx;
}

.posts-box .goods .text .price .now {
  color: var(--btnColor);
  display: flex;
  align-items: baseline;

}

.posts-box .goods .text .price .now .unit {
  font-size: 18rpx;
}

.posts-box .goods .text .price .old {
  font-size: 22rpx;
  color: #C9CACC;
  margin-left: 6rpx;
}

.posts-box .live-info {
  padding: 10rpx 8rpx;

}

.posts-box .live-info .name {
  color: #3B3B3D;
  font-weight: 500;
}

.posts-box .live-info .zb {
  font-size: 24rpx;
}

.posts-box .live-info .btn {
  margin: 20rpx 20rpx 0 auto;
  width: 128rpx;
  height: 50rpx;
  font-size: 24rpx;
  color: #fff;
  box-shadow: 0 4rpx 12rpx 4rpx rgba(241, 60, 61, 0.1);
  border-radius: 25rpx;
  background-color: var(--themeColor);
}