...
|
...
|
@@ -43,6 +43,11 @@ exports.processProductList = (list, options) => { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
//如果库存为0,显示已抢完
|
|
|
if (product.storageNum === 0){
|
|
|
product.noStorage = true;
|
|
|
}
|
|
|
|
|
|
// 市场价和售价一样,则不显示市场价
|
|
|
if (product.marketPrice === product.salesPrice) {
|
|
|
product.marketPrice = false;
|
...
|
...
|
@@ -103,7 +108,7 @@ exports.processProductList = (list, options) => { |
|
|
|
|
|
pruductList.push(product);
|
|
|
});
|
|
|
|
|
|
console.log(pruductList);
|
|
|
return pruductList;
|
|
|
};
|
|
|
|
...
|
...
|
|