From fd214d06eb8cb35725117beb41b23b9ac13bddac Mon Sep 17 00:00:00 2001 From: becomer Date: Wed, 21 Oct 2026 17:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=BC=9A=E5=91=98=E5=8D=A1?= =?UTF-8?q?=E7=9A=84=20is-vip=20/=20is-free=20=E7=A9=BA=E5=A3=B3=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交把两种身份的卡片样式合并为同一套后, :class="isVip ? 'is-vip' : 'is-free'" 已无任何样式差异, 三个选择器(.member-card / .is-vip / .is-free)指向同一份声明, 属于纯冗余。 改动: - 模板移除该动态 class - 浅色样式块精简为单个 .member-card 选择器 - 暗色块同理,只保留 html.dark .member-card 已重新截图确认渲染与清理前完全一致,删除的确为死代码。 npm run build 与 vue-tsc 均通过。 --- frondend/src/views/profile/ProfileView.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/frondend/src/views/profile/ProfileView.vue b/frondend/src/views/profile/ProfileView.vue index fb36d63..5e01d75 100644 --- a/frondend/src/views/profile/ProfileView.vue +++ b/frondend/src/views/profile/ProfileView.vue @@ -473,7 +473,7 @@ async function handleRedeemInvite() { 中线(切入比例 50%,与中线差值 0px)。头图的 pb 只影响上方留白, 不影响对齐(pb-14/pb-16 实测均对齐),故保留 pb-16。 -->
-
+
@@ -1010,9 +1010,7 @@ async function handleRedeemInvite() { /* 会员卡:统一为 VIP 专属黑金色(普通用户与 VIP 同一套质感, 区别只在文案与角标;固定色,亮暗主题下表现一致) */ -.member-card, -.member-card.is-vip, -.member-card.is-free { +.member-card { background: linear-gradient(135deg, #2b2418 0%, #1b1710 60%, #2d2516 100%); border: 1px solid rgb(246 196 69 / 0.35); } @@ -1147,11 +1145,8 @@ async function handleRedeemInvite() {