提交代码

This commit is contained in:
zpc 2025-04-13 13:39:38 +08:00
parent ca83914747
commit 50037d98bb

View File

@ -11,9 +11,11 @@
<view class="num center" v-if="item.stock != null">{{ item.surplus_stock }}/{{ item.stock }}</view>
<!-- 预售标签 -->
<view v-if="item.goods_type == 2" class="presale-tag"></view>
<view v-if="item.doubling != null && item.doubling > 1" class="multiple-tag" >x{{
item.doubling }}</view>
<view v-if="item.doubling != null && item.doubling > 1" class="multiple-tag">x{{
item.doubling }}</view>
<view v-if="item.goods_type == 4" class="baoxiang-tag"></view>
<view v-if="item.lingzhu != null && item.lingzhu == 1" class="lingzhu-tag"></view>
<!-- lingzhu -->
<!-- 售罄遮罩 -->
<view class="sold-out-mask center" v-if="item.surplus_stock != null && item.surplus_stock <= 0">
<text>售罄</text>
@ -233,6 +235,21 @@ export default {
width: 68rpx;
}
.lingzhu-tag {
position: absolute;
left: 15rpx;
top: 15rpx;
z-index: 5;
font-weight: 400;
font-size: 24rpx;
color: #333;
border-radius: 30rpx;
background-image: url($iconurl + "lingzhu.png");
background-size: 100% 100%;
height: 32rpx;
width: 68rpx;
}
.multiple-tag {
position: absolute;
z-index: 5;
@ -247,9 +264,9 @@ export default {
width: 48rpx;
height: 32rpx;
border-radius: 25rpx;
bottom:15rpx;
bottom: 15rpx;
left: 15rpx;
font-size:24rpx;
font-size: 24rpx;
line-height: 32rpx;
}