Commit 905e024b authored by Xuguangxing's avatar Xuguangxing

fix: 处理活动未开始由于虚假信息造成的进度条已经消耗、团已开的问题

parent b6b9ea76
......@@ -15,7 +15,9 @@
:show-pivot="false"
:percentage="handleProgressByStatus(goodsItem)"
/>
<div class="group-item-already">已拼{{ goodsItem.groupBuySuccessCount }}</div>
<div class="group-item-already">
已拼{{ topicCfg.hasStart ? goodsItem.groupBuySuccessCount : 0 }}
</div>
<div class="group-item-price">成团价 ¥ <sup class="group-item-sup">0</sup></div>
<div class="group-item-delprice">售价¥{{ goodsItem.activityPrice }}</div>
<!-- 立即开团 -->
......@@ -78,6 +80,10 @@ export default {
},
methods: {
handleProgressByStatus(item) {
if (!this.topicCfg.hasStart) {
// 用于处理活动未开始,虚假数据造成的进度条错误
return 100;
}
if (!item) return 0;
let percentage = 0;
// saleCount / activitySkuTotalCount
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment