Authored by 郭成尧

'不显示折扣信息'

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