From 262376e603e0a8f03f935fcdff969b1f3140f25b Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 5 Oct 2026 19:13:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E9=80=89=E4=B8=AD=E9=AB=98=E4=BA=AE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=B9=B6=E4=B8=BA=E5=87=AD=E6=8D=AE=E5=88=97=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=B2=BE=E8=87=B4=E7=BC=A9=E7=95=A5=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修复侧边栏导航选中高亮丢失:在 MainLayout 的 getSelectedKey 路由映射中补齐 /platform-rock 与 /platform-products,确保进入页面时左侧「商品管理」父菜单自动展开,「Rock发货与库存风控」高亮激活,并增加品牌蓝内嵌发光细条指示; 2. 凭证列新增商品微光缩略图:在 Rock 管理表格的「发货结果图片」列左侧加入 44x44 的圆角立绘小缩略图,支持悬浮微光放大动效与点击一键弹出深海蓝发货凭据大图预览。 --- frontend/src/index.css | 1 + frontend/src/layouts/MainLayout.tsx | 2 + frontend/src/pages/PlatformRock.tsx | 100 ++++++++++++++++++++-------- 3 files changed, 76 insertions(+), 27 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 182b3e4..dcc9d58 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -362,6 +362,7 @@ a:hover { color: #2563eb !important; background: #eff6ff !important; font-weight: 700; + box-shadow: inset 3px 0 0 #2563eb; } .app-sidebar--collapsed .app-sidebar__brand { diff --git a/frontend/src/layouts/MainLayout.tsx b/frontend/src/layouts/MainLayout.tsx index 961b482..3d5cfaa 100644 --- a/frontend/src/layouts/MainLayout.tsx +++ b/frontend/src/layouts/MainLayout.tsx @@ -169,6 +169,8 @@ const merchantSections: SidebarSection[] = [ function getSelectedKey(pathname: string, search: string) { if (pathname === '/') return 'dashboard' if (pathname.startsWith('/merchant-products')) return 'merchant-products' + if (pathname.startsWith('/platform-products')) return 'platform-products' + if (pathname.startsWith('/platform-rock')) return 'platform-rock' if (pathname.startsWith('/merchant-orders')) return 'fulfillment-orders' if (pathname.startsWith('/merchant-wallet')) return 'merchant-wallet' if (pathname.startsWith('/merchant-recharge')) return 'merchant-recharge' diff --git a/frontend/src/pages/PlatformRock.tsx b/frontend/src/pages/PlatformRock.tsx index f612d77..395aa0a 100644 --- a/frontend/src/pages/PlatformRock.tsx +++ b/frontend/src/pages/PlatformRock.tsx @@ -407,45 +407,91 @@ export default function PlatformRock() { { title: '发货结果图片', key: 'voucher', - width: 200, + width: 240, render: (_, record) => { if (record.status !== 'redeemed' && !record.upstream_fulfill_id) { return - } const isCopying = copyingVoucherId === record.id + const isRockBlue = record.target_skin?.includes('蓝') + const sku = isRockBlue ? 'rock_blue_sportswear' : 'rock_black_tshirt' + const imgSrc = `/images/products/${sku}.webp` + return ( - - - - + {record.target_skin + + + + {/* 操作按钮与商品徽章 */} + + + +