diff --git a/App.jsx b/App.jsx index 26f93e0..93e6e9e 100644 --- a/App.jsx +++ b/App.jsx @@ -1,7 +1,7 @@ import React, { useState, useEffect, useMemo, useRef } from 'react'; import { Search, Plus, X, Mail, Edit2, Trash2, Check, Clock, - Settings as SettingsIcon, Copy, ChevronRight, Upload, Eye, + Settings as SettingsIcon, Copy, ChevronRight, Upload, Eye, EyeOff, Building2, Globe, Phone, Save, RefreshCw, LayoutDashboard, Users, Package, Layers, Zap, Tag, Inbox, Paperclip, Menu, LogOut, GripVertical, BookOpen, FileText, FolderTree, Lock, Sparkles, Printer, Image as ImageIcon, @@ -2184,6 +2184,9 @@ const Styles = () => ( .web-thumb.tall img { object-fit: cover; object-position: top; } .web-thumb-add { width: 88px; height: 88px; border: 1px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--ink-soft); cursor: pointer; } .web-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 11px; font-weight: 500; color: #1d7a3e; background: #dcf1e2; padding: 2px 8px; border-radius: 99px; } + .brand-vis { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; font-weight: 500; } + .brand-vis button { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; font-size: 11px; padding: 1px 8px; cursor: pointer; color: var(--ink-soft); } + .brand-vis button.on { background: var(--ink); color: #fff; } .tpl-badge.bad { color: #b42318 !important; background: #fde4e1 !important; font-weight: 600; } .tpl-warn { font-size: 12.5px; color: #b42318; background: #fef1ef; border: 1px solid #f5b5ac; border-radius: 8px; padding: 9px 12px; line-height: 1.6; } .tpl-warn-link { background: none; border: 0; padding: 0; color: #b42318; text-decoration: underline; cursor: pointer; font: inherit; } @@ -9055,13 +9058,14 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage,
- 品牌 + 品牌 onManage('brand')}>品牌管理
+ {draft.hideBrand && 已隐藏:导出的技术参数表和网站参数表里不显示品牌}
@@ -9833,7 +9837,8 @@ function ProductDetail({ product: p, onEdit, onDelete, onCopy, copying, categori
} label="分类" value={categoryBreadcrumb(p, categories)} /> - } label="品牌" value={p.brand || '—'} /> + } label={<>品牌{onPatch &&