Authored by 郭成尧

折扣信息处理

... ... @@ -275,7 +275,7 @@ exports.handleOutletstrendGoodData = (origin) => {
dest.title = '潮品推荐';
dest.goods = productProcess.processProductList(origin.product_list);
_.forEach(dest.goods, (value, key) => {
dest.goods[key].discount = (value.sales_price / value.market_price).toFixed(2) * 10;
dest.goods[key].discount = (value.salesPrice / value.marketPrice).toFixed(2) * 10;
});
return dest;
... ...