...
|
...
|
@@ -60,12 +60,11 @@ exports.processProductList = (list, options) => { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
// 折扣
|
|
|
product.discount = (product.salesPrice / product.marketPrice * 10).toFixed(1);
|
|
|
|
|
|
// 市场价和售价一样,则不显示市场价
|
|
|
// 市场价和售价一样,则不显示市场价, 不显示折扣信息
|
|
|
if (product.marketPrice === product.salesPrice) {
|
|
|
delete product.marketPrice;
|
|
|
} else {
|
|
|
product.discount = (product.salesPrice / product.marketPrice * 10).toFixed(1);
|
|
|
}
|
|
|
|
|
|
// 判别默认的商品是否将默认的图片URL赋值到skn
|
...
|
...
|
|