fix: 优化秒杀展示

master
misworga831 2024-01-25 17:50:55 +08:00
parent 8cfc420085
commit 0840740e2c
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
}}</span>
</span>
</div>
<div class="goods-show-detail">
<div class="goods-show-detail" style="margin-bottom: 20px">
<span>{{ item.goodsName }}</span>
</div>
<div class="goods-seckill-btn" :class="{
@ -56,12 +56,12 @@
<span>已售{{
(item.quantity && item.quantity > 0
? Math.ceil(
(item.salesNum / (item.quantity + item.salesNum)) * 100
(item.salesNum / (item.quantity)) * 100
)
: 100) + "%"
}}</span><Progress hide-info stroke-color="#df0021" style="width: 110px" class="ml_10" :percent="item.quantity && item.quantity > 0
? Math.ceil(
(item.salesNum / (item.quantity + item.salesNum)) * 100
(item.salesNum / (item.quantity)) * 100
)
: 100
" />