Activity.wxss 2.27 KB
.item {
  border-radius: 8rpx;
  width: 314rpx;
  /* min-height: 520rpx; */
  margin-bottom: 32rpx;
  position: relative;
  overflow: hidden;
  transition: all .5s;
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.item .img {
  width: 100%;
  height: 324rpx;
}

.item .info {
  padding: 20rpx 22rpx 24rpx 24rpx;
  background: #F7F8FA;
}


.item .title {
  width: 100%;
  box-sizing: border-box;
  font-size: 28rpx;
  color: #282829;
  line-height: 40rpx;
  max-height: 80rpx;
  word-break: break-all;
}

.text-two-line {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.item .price-box {
  margin-top: 20rpx;
  width: 100%;
  height: 64rpx;
  position: relative;
  border-radius: 8rpx;
  overflow: hidden;
  background: #FCECD1;
  font-weight: 500;
}

.item .price-box .price {
  position: absolute;
  width: calc(100% - 76rpx);
  height: 100%;
  left: 0;
  top: 0;
  clip-path: polygon(0% 0%, 100% 0, 90% 50%, 100% 100%, 0% 100%);
  background-image: linear-gradient(270deg, #F8532F 10%, #F13A37 100%);
  border-radius: 8rpx 2rpx 2rpx 2rpx 8rpx;
  display: flex;
  align-items: center;
}

.item .price-box .price .num {
  color: #fff;
  font-size: 32rpx;
  box-sizing: border-box;
  padding-left: 20rpx;
  display: flex;
  align-items: baseline;
}

.item .price-box .price .num .unit {
  font-size: 20rpx;
  margin-right: 4rpx;
}

.item .price-box .price .num .up {
  transform: translateY(-2rpx);
}

.item .price-box .text {
  width: 76rpx;
  height: 100%;
  font-size: 28rpx;
  color: #F23D36;
  margin-left: auto;
}

.time-box {
  border-radius: 20rpx;
  background-image: linear-gradient(180deg, #F13A37 50%, #F8532F 100%);
  padding: 2rpx;
  overflow: hidden;
  margin-top: 16rpx;
  animation: show-activity-time .5s forwards;
}

.activity-time {
  display: flex;
  align-items: center;
  font-size: 20rpx;
  color: #F44335;
  padding: 4rpx 11rpx;
  background-color: #F7F8FA;
  border-radius: 19rpx;
  overflow: hidden;

}
.activity-time .icon{
  width: 26rpx;
  height: 24rpx;
  margin-right: 7rpx;
  flex-shrink: 0;
}

@keyframes show-activity-time {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.activity-time .time {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}