|
|
|
@ -961,9 +961,11 @@ Page({ |
|
|
|
filtered = filtered.filter(item => { |
|
|
|
const nameMatch = (item.name || '').toLowerCase().includes(keyword); |
|
|
|
const productNameMatch = (item.productName || '').toLowerCase().includes(keyword); |
|
|
|
const specMatch = (item.spec || '').toLowerCase().includes(keyword); |
|
|
|
const specMatch = (item.specification || item.spec || '').toLowerCase().includes(keyword); |
|
|
|
const regionMatch = (item.region || '').toLowerCase().includes(keyword); |
|
|
|
const match = item.isAd || nameMatch || productNameMatch || specMatch || regionMatch; |
|
|
|
const grossWeightMatch = (item.grossWeight || '').toLowerCase().includes(keyword); |
|
|
|
const yolkMatch = (item.yolk || '').toLowerCase().includes(keyword); |
|
|
|
const match = item.isAd || nameMatch || productNameMatch || specMatch || regionMatch || grossWeightMatch || yolkMatch; |
|
|
|
|
|
|
|
if (!match && originalLength <= 5) { // 只为小数据集打印详细信息
|
|
|
|
console.log('商品未匹配:', item.name, '| name:', item.name, '| productName:', item.productName, '| spec:', item.spec, '| region:', item.region); |
|
|
|
|