fix:修复列表商品原价展示异常

This commit is contained in:
wangsongsole 2022-10-08 10:51:02 +08:00
parent 3283a61375
commit 240d1bb651
1 changed files with 6 additions and 2 deletions

View File

@ -148,14 +148,18 @@
:class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''">
{{item.type==1?item.entity.product_name:item.entity.batch_goods_name}}</font>
<div class="details">
<p class="sign"></p>
<p class="price">{{item.coupon_price}}</p>
<template v-if="item.origin_price!==item.coupon_price">
<p class="sign"></p>
<p class="price">{{item.coupon_price}}</p>
<p class="coupon">券后价</p>
<p class="original-price">
原价¥{{item.origin_price}}
</p>
</template>
<p v-else style="margin-top:0.05rem">
<span class="sign"></span>
<span class="price">{{item.origin_price}}</span>
</p>
</div>
</div>
</div>