Authored by 郭成尧

折扣筛选

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-30 16:20:03
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-03 18:41:32
* @Last Modified time: 2016-06-03 18:43:34
*/
'use strict';
... ... @@ -116,8 +116,7 @@ exports.getOutletsChannelData = (params) => {
// 限时嗨购
if (result[2].code === 200) {
channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data);
channelData.nearOver.name = '限时嗨购';
channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data, '限时嗨购');
}
// 商品列表
... ...
... ... @@ -46,7 +46,7 @@ exports.processProductList = (list, options) => {
if (product.marketPrice === product.salesPrice) {
product.marketPrice = false;
} else if (product.marketPrice && product.salesPrice) {
product.discount = (product.salesPrice / product.marketPrice).toFixed(2) * 10;
product.discount = (product.salesPrice / product.marketPrice * 10).toFixed(1);
}
// 判别默认的商品是否将默认的图片URL赋值到skn
... ...