Commit 389f976e authored by Xuguangxing's avatar Xuguangxing

fix

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