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 + + + + {/* 操作按钮与商品徽章 */} + + + +