From b7b1c9b320861e501cbfc985f044188165898b72 Mon Sep 17 00:00:00 2001 From: yml Date: Mon, 30 Nov 2026 19:37:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(listings):=20=E7=A7=BB=E9=99=A4=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=AE=E8=82=A4=E5=B1=95=E5=8F=B0=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E8=BE=85=E5=8A=A9=E5=B0=8F=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listings/views/ListingDetailView.css | 41 ------------------- .../listings/views/ListingDetailView.vue | 1 - .../views/MobileListingDetailView.css | 41 ------------------- .../views/MobileListingDetailView.vue | 1 - frontend/src/shared/utils/listingDisplay.ts | 17 +++----- 5 files changed, 5 insertions(+), 96 deletions(-) diff --git a/frontend/src/features/listings/views/ListingDetailView.css b/frontend/src/features/listings/views/ListingDetailView.css index 4f2bf887..e1b6fedf 100644 --- a/frontend/src/features/listings/views/ListingDetailView.css +++ b/frontend/src/features/listings/views/ListingDetailView.css @@ -828,16 +828,6 @@ color: var(--brand-ink); } -.skin-tier-tag { - padding: 2px 7px; - border-radius: var(--detail-radius-chip); - font-size: 10.5px; - font-weight: 700; - background: rgba(255, 255, 255, 0.78); - color: #475569; - border: 1px solid rgba(148, 163, 184, 0.25); -} - .skin-group-count { padding: 2px 9px; border-radius: 999px; @@ -901,58 +891,27 @@ .skin-cabinet-melee .skin-group-accent { background: #9333ea; } -.skin-cabinet-melee .skin-tier-tag { - color: #6b21a8; - border-color: #e9d5ff; - background: #faf5ff; -} .skin-cabinet-operatorRed .skin-group-accent { background: #e11d48; } -.skin-cabinet-operatorRed .skin-tier-tag { - color: #9f1239; - border-color: #fecdd3; - background: #fff1f2; -} .skin-cabinet-operatorGold .skin-group-accent, .skin-cabinet-weaponGold .skin-group-accent { background: #d97706; } -.skin-cabinet-operatorGold .skin-tier-tag, -.skin-cabinet-weaponGold .skin-tier-tag { - color: #92400e; - border-color: #fde68a; - background: #fffbeb; -} .skin-cabinet-weapon .skin-group-accent { background: #059669; } -.skin-cabinet-weapon .skin-tier-tag { - color: #065f46; - border-color: #a7f3d0; - background: #ecfdf5; -} .skin-cabinet-operator .skin-group-accent { background: #2563eb; } -.skin-cabinet-operator .skin-tier-tag { - color: #1e40af; - border-color: #bfdbfe; - background: #eff6ff; -} .skin-cabinet-other .skin-group-accent { background: #64748b; } -.skin-cabinet-other .skin-tier-tag { - color: #334155; - border-color: #cbd5e1; - background: var(--detail-surface); -} /* 铭牌与速览徽标品级着色 */ .skin-type-melee { diff --git a/frontend/src/features/listings/views/ListingDetailView.vue b/frontend/src/features/listings/views/ListingDetailView.vue index 2a663120..d3c05f69 100644 --- a/frontend/src/features/listings/views/ListingDetailView.vue +++ b/frontend/src/features/listings/views/ListingDetailView.vue @@ -670,7 +670,6 @@ function goBack() {
{{ group.title }} - {{ group.tierLabel }}
{{ group.options.length }} 款 diff --git a/frontend/src/features/listings/views/MobileListingDetailView.css b/frontend/src/features/listings/views/MobileListingDetailView.css index c7fb82e0..00b9cff6 100644 --- a/frontend/src/features/listings/views/MobileListingDetailView.css +++ b/frontend/src/features/listings/views/MobileListingDetailView.css @@ -780,16 +780,6 @@ color: var(--brand-ink); } -.skin-tier-tag { - padding: 1px 6px; - border-radius: var(--detail-radius-chip); - font-size: 10px; - font-weight: 700; - background: rgba(255, 255, 255, 0.8); - color: #475569; - border: 1px solid rgba(148, 163, 184, 0.24); -} - .skin-group-count { padding: 1px 7px; border-radius: 999px; @@ -845,58 +835,27 @@ .skin-cabinet-melee .skin-group-accent { background: #9333ea; } -.skin-cabinet-melee .skin-tier-tag { - color: #6b21a8; - border-color: #e9d5ff; - background: #faf5ff; -} .skin-cabinet-operatorRed .skin-group-accent { background: #e11d48; } -.skin-cabinet-operatorRed .skin-tier-tag { - color: #9f1239; - border-color: #fecdd3; - background: #fff1f2; -} .skin-cabinet-operatorGold .skin-group-accent, .skin-cabinet-weaponGold .skin-group-accent { background: #d97706; } -.skin-cabinet-operatorGold .skin-tier-tag, -.skin-cabinet-weaponGold .skin-tier-tag { - color: #92400e; - border-color: #fde68a; - background: #fffbeb; -} .skin-cabinet-weapon .skin-group-accent { background: #059669; } -.skin-cabinet-weapon .skin-tier-tag { - color: #065f46; - border-color: #a7f3d0; - background: #ecfdf5; -} .skin-cabinet-operator .skin-group-accent { background: #2563eb; } -.skin-cabinet-operator .skin-tier-tag { - color: #1e40af; - border-color: #bfdbfe; - background: #eff6ff; -} .skin-cabinet-other .skin-group-accent { background: #64748b; } -.skin-cabinet-other .skin-tier-tag { - color: #334155; - border-color: #cbd5e1; - background: var(--detail-surface); -} /* 皮肤各品级铭牌颜色 */ .skin-type-melee { diff --git a/frontend/src/features/listings/views/MobileListingDetailView.vue b/frontend/src/features/listings/views/MobileListingDetailView.vue index a73f05d2..309d1243 100644 --- a/frontend/src/features/listings/views/MobileListingDetailView.vue +++ b/frontend/src/features/listings/views/MobileListingDetailView.vue @@ -665,7 +665,6 @@ function goBack() {
{{ group.title }} - {{ group.tierLabel }}
{{ group.options.length }} 款 diff --git a/frontend/src/shared/utils/listingDisplay.ts b/frontend/src/shared/utils/listingDisplay.ts index 800c5c79..1414eabe 100644 --- a/frontend/src/shared/utils/listingDisplay.ts +++ b/frontend/src/shared/utils/listingDisplay.ts @@ -34,7 +34,6 @@ export type DetailSkinType = export interface DetailSkinGroup extends ListingDisplaySkinGroup { type: DetailSkinType badge: string - tierLabel: string isWide?: boolean } @@ -295,40 +294,36 @@ export function getListingSkinGroups(item: PublicListingItem): ListingDisplaySki const DETAIL_SKIN_META: Record< string, - { title: string; type: DetailSkinType; badge: string; tierLabel: string; order: number } + { title: string; type: DetailSkinType; badge: string; order: number } > = { - melee: { title: '近战皮肤', type: 'melee', badge: '近战', tierLabel: '典藏近战', order: 1 }, + melee: { title: '近战皮肤', type: 'melee', badge: '近战', order: 1 }, operatorRed: { title: '干员红皮', type: 'operatorRed', badge: '红皮', - tierLabel: '臻红限定', order: 2, }, operatorGold: { title: '干员金皮', type: 'operatorGold', badge: '金皮', - tierLabel: '耀金品质', order: 3, }, weaponGold: { title: '武器金皮', type: 'weaponGold', badge: '武金', - tierLabel: '鎏金涂装', order: 4, }, - weapon: { title: '武器皮肤', type: 'weapon', badge: '武器', tierLabel: '精工涂装', order: 5 }, + weapon: { title: '武器皮肤', type: 'weapon', badge: '武器', order: 5 }, operator: { title: '干员皮肤', type: 'operator', badge: '干员', - tierLabel: '战术外观', order: 6, }, - other: { title: '其他皮肤', type: 'other', badge: '精选', tierLabel: '精选外观', order: 7 }, - imported: { title: '其他皮肤', type: 'other', badge: '精选', tierLabel: '精选外观', order: 8 }, + other: { title: '其他皮肤', type: 'other', badge: '精选', order: 7 }, + imported: { title: '其他皮肤', type: 'other', badge: '精选', order: 8 }, } export function getDetailSkinGroups(item: PublicListingItem): DetailSkinGroup[] { @@ -341,7 +336,6 @@ export function getDetailSkinGroups(item: PublicListingItem): DetailSkinGroup[] title: key, type: 'other' as DetailSkinType, badge: '精选', - tierLabel: '精选外观', order: 99 + index, } const seen = new Set() @@ -360,7 +354,6 @@ export function getDetailSkinGroups(item: PublicListingItem): DetailSkinGroup[] type: meta.type, title: meta.title, badge: meta.badge, - tierLabel: meta.tierLabel, order: meta.order, options, isWide: options.length >= 4,