diff --git a/MicUploadPage.jsx b/MicUploadPage.jsx index 370ad75..92d670b 100644 --- a/MicUploadPage.jsx +++ b/MicUploadPage.jsx @@ -496,16 +496,31 @@ export function MicUploadPage({ products = [], productCategories = [] }) { onChange={(e) => setSearch(e.target.value)} style={{ padding: '6px 8px', fontSize: 13 }} /> - +
+ {filteredProducts.length === 0 && ( +
没有匹配的产品
+ )} + {filteredProducts.map((p) => { + const selected = selectedProductId === p.id; + return ( +
setSelectedProductId(p.id)} + style={{ + display: 'flex', justifyContent: 'space-between', alignItems: 'center', + padding: '6px 8px', fontSize: 13, cursor: 'pointer', + background: selected ? 'var(--brand-soft, #fde7d0)' : 'transparent', + borderBottom: '1px solid var(--line, #eee)', + }} + > + {p.brand ? `[${p.brand}] ` : ''}{p.name} + + {selected ? '✓' : '+'} + +
+ ); + })} +
)}