Commit 389f976e authored by Xuguangxing's avatar Xuguangxing

fix

parent 17d88aab
...@@ -215,7 +215,8 @@ export default { ...@@ -215,7 +215,8 @@ export default {
this.groupId = +res.groupBuyInfo.groupId || ''; this.groupId = +res.groupBuyInfo.groupId || '';
} }
if (res.saleCount && res.activitySkuTotalCount) { if (res.saleCount && res.activitySkuTotalCount) {
const percentage = +res.goodsCount / +res.activitySkuTotalCount; const percentage =
(+res.activitySkuTotalCount - +res.saleCount) / +res.activitySkuTotalCount;
if (isNaN(percentage)) { if (isNaN(percentage)) {
this.stockPercentage = 0; this.stockPercentage = 0;
} else { } else {
......
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