...
|
...
|
@@ -18,7 +18,6 @@ const procProductImg = (product, gender) => { |
|
|
return product.cover1 || product.cover2 || product.imagesUrl || '';
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 商品搜索商品数据处理
|
|
|
*/
|
...
|
...
|
@@ -46,6 +45,8 @@ 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;
|
|
|
}
|
|
|
|
|
|
// 判别默认的商品是否将默认的图片URL赋值到skn
|
...
|
...
|
|