...
|
...
|
@@ -181,10 +181,10 @@ exports.processProductList = (list, options) => { |
|
|
product.tags.is_advance = product.is_advance === 'Y'; // 再到着
|
|
|
|
|
|
// 打折与即将售完组合显示打折
|
|
|
/*if (product.is_soon_sold_out && product.tags.is_discount) {
|
|
|
/* if (product.is_soon_sold_out && product.tags.is_discount) {
|
|
|
product.tags.is_few = false;
|
|
|
} else*/
|
|
|
if(product.tags.is_new) {
|
|
|
if (product.tags.is_new) {
|
|
|
product.tags.is_sale = false;
|
|
|
}
|
|
|
if (product.tags.is_sale &&
|
...
|
...
|
@@ -197,8 +197,9 @@ exports.processProductList = (list, options) => { |
|
|
}
|
|
|
}
|
|
|
|
|
|
if(options.query && _.isString(product.product_name)) {
|
|
|
if (options.query && _.isString(product.product_name)) {
|
|
|
let qreg = new RegExp(options.query, 'ig');
|
|
|
|
|
|
product.product_name = product.product_name.replace(qreg, '<span style="color:#c00;">$&</span>');
|
|
|
}
|
|
|
|
...
|
...
|
|