EP-WachatApp/eaterplanet_ecommerce/moduleB/components/presale-goodsone.wxss

177 lines
2.9 KiB
Plaintext
Raw Normal View History

2023-03-24 11:24:28 +08:00
.spu-content {
width: 350rpx;
height: 600rpx;
border-radius: 20rpx;
background: #fff;
box-sizing: border-box;
padding: 30rpx 25rpx;
box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
position: relative;
margin-bottom: 10rpx;
}
.spu-img {
width: 300rpx;
height: 300rpx;
border-radius: 10rpx;
}
.spu-content .spu-title {
font-size: 28rpx;
line-height: 36rpx;
height: 36rpx;
color: #444;
margin-bottom: 16rpx;
font-weight: 500;
position: relative;
margin-top: 16rpx;
}
.spu-content .spu-title .span {
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.spu-content .spu-price {
display: flex;
align-items: flex-end;
font-size: 20rpx;
margin-top: 30rpx;
}
.spu-content .spu-price .sale-price {
font-family: DIN;
color: #ff758c;
margin-right: 8rpx;
}
.spu-content .spu-price .sale-price .span {
font-size: 40rpx;
line-height: 40rpx;
margin-left: 4rpx;
font-weight: 500;
font-weight: bold;
}
.spu-content .spu-price .market-price {
font-family: DIN;
text-decoration: line-through;
color: #999;
}
.spu-content .add-cart, .spu-content .add-cart-disabled {
width: 100rpx;
height: 50rpx;
padding: 0;
margin: 0;
position: absolute;
right: 20rpx;
bottom: 30rpx;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(90deg, #ff5041 0%, #ff695c 100%);
color: #fff;
border-radius: 25rpx;
font-size: 24rpx;
font-weight: bold;
}
.spu-content .add-cart-disabled {
background: #ccc;
}
.spu-content .pin-tag {
display: inline-block;
font-size: 24rpx;
padding: 6rpx 10rpx;
margin-right: 10rpx;
border: 0.1rpx solid #ff5344;
line-height: 1;
vertical-align: middle;
color: #ff5344;
border-radius: 8rpx;
font-weight: bold;
}
.spu-play {
position: absolute;
left: 50%;
top: 95rpx;
width: 100rpx;
height: 100rpx;
margin-left: -50rpx;
}
.spu-play .img {
width: 100%;
height: 100%;
}
.mask {
background: rgba(255, 255, 255, 0.5);
width: 300rpx;
height: 300rpx;
position: absolute;
left: 25rpx;
top: 30rpx;
}
.act-end {
position: absolute;
height: 60rpx;
border-radius: 10rpx;
background: rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 60rpx;
left: 50%;
top: 140rpx;
padding: 0 12rpx;
transform: translateX(-50%);
}
/* 标签 */
.spu-content .item-tag {
position: absolute;
left: 25rpx;
top: 35rpx;
width: 54rpx;
height: 62rpx;
z-index: 1;
color: #fff;
text-align: center;
}
.item-tag-bg {
position: absolute;
left: 0;
top: 0;
width: 54rpx;
height: 62rpx;
z-index: 0;
}
.spu-content .item-tag .tag-name {
position: relative;
padding-top: 6rpx;
font-size: 20rpx;
line-height: 1;
font-weight: 600;
z-index: 1;
}
.spu-content .item-tag .tag-name.two-word {
font-size: 22rpx;
padding-top: 14rpx;
}
.desc {
font-size: 21rpx;
color: #999;
height: 56rpx;
}