Authored by 郭成尧

折扣信息处理

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