chore: 钱包邀请页面美化

This commit is contained in:
xiaojunnuo
2026-05-26 23:45:44 +08:00
parent 41254d10b7
commit 969b6e3288
6 changed files with 204 additions and 48 deletions
@@ -19,25 +19,37 @@
</div> </div>
<div class="invite-link-panel"> <div class="invite-link-panel">
<div class="invite-info-row"> <div class="invite-info-row invite-highlight-row">
<span class="info-label">邀请码</span> <div class="info-icon">
<fs-copyable v-model="inviteInfo.inviteCode" /> <fs-icon icon="ion:ticket-outline" />
</div>
<span class="info-label">邀请码</span>
<div class="info-content">
<fs-copyable v-model="inviteInfo.inviteCode" />
</div>
</div> </div>
<div class="invite-info-row"> <div class="invite-info-row invite-highlight-row">
<span class="info-label">邀请链接</span> <div class="info-icon">
<fs-copyable v-model="inviteInfo.inviteLink" /> <fs-icon icon="ion:link-outline" />
</div>
<span class="info-label">邀请链接</span>
<div class="info-content">
<fs-copyable v-model="inviteInfo.inviteLink" />
</div>
</div> </div>
<div class="invite-info-row"> <div class="invite-info-row invite-highlight-row level-highlight-row" @click="levelDialogOpen = true">
<span class="info-label">我的等级</span> <div class="info-icon level-info-icon">
<a-button type="link" class="level-button" @click="levelDialogOpen = true"> <fs-icon v-if="inviteInfo.currentLevel" :icon="levelIcon(inviteInfo.currentLevel)" />
<span v-if="inviteInfo.currentLevel" class="level-medal"> <fs-icon v-else icon="ion:ribbon-outline" />
<fs-icon :icon="levelIcon(inviteInfo.currentLevel)" /> </div>
</span> <span class="info-label">我的等级</span>
<span>{{ inviteInfo.currentLevel?.name || "未设置" }}</span> <div class="info-content level-info-content">
<span class="level-name-text">{{ inviteInfo.currentLevel?.name || "未设置" }}</span>
<span v-if="inviteInfo.currentLevel" class="current-level-rate">{{ inviteInfo.currentLevel.commissionRate }}%</span> <span v-if="inviteInfo.currentLevel" class="current-level-rate">{{ inviteInfo.currentLevel.commissionRate }}%</span>
</a-button> </div>
<fs-icon class="level-open-icon" icon="ion:chevron-forward-outline" />
</div> </div>
</div> </div>
@@ -320,14 +332,27 @@ onActivated(async () => {
.summary-card, .summary-card,
.invite-link-panel { .invite-link-panel {
border: 1px solid hsl(var(--border)); border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px; border-radius: 8px;
background: hsl(var(--card)); background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82)), hsl(var(--card));
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
transition:
transform 0.18s ease,
box-shadow 0.18s ease,
border-color 0.18s ease;
}
.summary-card:hover,
.invite-link-panel:hover {
border-color: rgba(52, 120, 246, 0.34);
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
transform: translateY(-2px);
} }
.summary-card { .summary-card {
position: relative;
min-height: 112px; min-height: 112px;
overflow: hidden;
padding: 22px; padding: 22px;
} }
@@ -353,7 +378,7 @@ onActivated(async () => {
.invite-link-panel { .invite-link-panel {
flex: none; flex: none;
padding: 14px 18px; padding: 16px 18px;
margin-bottom: 18px; margin-bottom: 18px;
} }
@@ -364,24 +389,94 @@ onActivated(async () => {
gap: 10px; gap: 10px;
} }
.invite-highlight-row {
min-height: 48px;
padding: 8px 12px;
border: 1px solid rgba(52, 120, 246, 0.16);
border-radius: 8px;
background: rgba(248, 250, 252, 0.72);
transition:
border-color 0.18s ease,
background-color 0.18s ease,
box-shadow 0.18s ease;
}
.invite-highlight-row:hover {
border-color: rgba(52, 120, 246, 0.34);
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.level-highlight-row {
cursor: pointer;
}
.level-info-icon {
color: #8a5a16;
font-size: 20px;
}
.invite-info-row + .invite-info-row { .invite-info-row + .invite-info-row {
margin-top: 8px; margin-top: 8px;
} }
.info-label { .info-icon {
width: 92px; display: inline-flex;
flex: none; flex: none;
color: hsl(var(--muted-foreground)); align-items: center;
text-align: right; justify-content: center;
width: 30px;
height: 30px;
border: 1px solid rgba(52, 120, 246, 0.14);
border-radius: 8px;
background: rgba(52, 120, 246, 0.08);
color: #3478f6;
font-size: 17px;
}
.info-label {
width: 72px;
flex: none;
color: hsl(var(--foreground));
font-size: 13px;
font-weight: 600;
text-align: left;
white-space: nowrap; white-space: nowrap;
} }
.info-content {
flex: 1;
min-width: 0;
}
.current-level-rate { .current-level-rate {
margin-left: 6px; margin-left: 6px;
color: #c58a35; color: #c58a35;
font-weight: 700; font-weight: 700;
} }
.level-info-content {
display: flex;
align-items: center;
gap: 4px;
}
.level-name-text {
color: hsl(var(--foreground));
font-weight: 600;
}
.level-open-icon {
flex: none;
color: hsl(var(--muted-foreground));
font-size: 16px;
transition: transform 0.18s ease;
}
.level-highlight-row:hover .level-open-icon {
transform: translateX(2px);
}
.level-button { .level-button {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -406,9 +501,10 @@ onActivated(async () => {
flex-direction: column; flex-direction: column;
min-height: 0; min-height: 0;
padding: 0 12px 12px; padding: 0 12px 12px;
border: 1px solid hsl(var(--border)); border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px; border-radius: 8px;
background: hsl(var(--card)); background: rgba(255, 255, 255, 0.92);
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
} }
.ant-tabs-content-holder, .ant-tabs-content-holder,
@@ -446,17 +542,27 @@ onActivated(async () => {
position: relative; position: relative;
min-height: 132px; min-height: 132px;
padding: 16px; padding: 16px;
border: 1px solid hsl(var(--border)); overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px; border-radius: 8px;
background: hsl(var(--card)); background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.8)), linear-gradient(135deg, rgba(197, 138, 53, 0.14), rgba(52, 120, 246, 0.12));
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
transition: transition:
transform 0.18s ease,
box-shadow 0.18s ease,
border-color 0.2s, border-color 0.2s,
background-color 0.2s; background-color 0.2s;
} }
.level-card:hover {
border-color: rgba(52, 120, 246, 0.38);
box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
transform: translateY(-2px);
}
.level-card.active { .level-card.active {
border-color: #3478f6; border-color: #3478f6;
background: hsl(var(--primary) / 10%); background: linear-gradient(145deg, rgba(236, 244, 255, 0.92), rgba(248, 250, 252, 0.88)), hsl(var(--primary) / 10%);
} }
.level-name { .level-name {
@@ -455,8 +455,8 @@ onMounted(async () => {
.card-header { .card-header {
.header-bg-gradient { .header-bg-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: rgba(255, 255, 255, 0.04);
opacity: 0.15; opacity: 1;
} }
} }
@@ -572,8 +572,9 @@ onMounted(async () => {
.bindings-card, .bindings-card,
.passkey-card { .passkey-card {
background: #fff; background: #fff;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: hidden; overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.22);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
transition: all 0.3s ease; transition: all 0.3s ease;
margin: 5px; margin: 5px;
} }
@@ -586,13 +587,15 @@ onMounted(async () => {
.profile-card:hover, .profile-card:hover,
.bindings-card:hover, .bindings-card:hover,
.passkey-card:hover { .passkey-card:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); border-color: rgba(148, 163, 184, 0.34);
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
transform: translateY(-2px); transform: translateY(-2px);
} }
.card-header { .card-header {
position: relative; position: relative;
padding: 40px 30px; padding: 40px 30px;
background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)), hsl(var(--card));
} }
.header-bg-gradient { .header-bg-gradient {
@@ -601,8 +604,8 @@ onMounted(async () => {
left: 0; left: 0;
right: 0; right: 0;
height: 100%; height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: radial-gradient(circle at 14% 22%, rgba(52, 120, 246, 0.08), transparent 34%), radial-gradient(circle at 86% 18%, rgba(197, 138, 53, 0.08), transparent 32%);
opacity: 0.08; opacity: 1;
} }
.header-content { .header-content {
@@ -631,14 +634,14 @@ onMounted(async () => {
padding: 0; padding: 0;
color: #667eea; color: #667eea;
background: #ffffff; background: #ffffff;
border: 1px solid #e5e7eb; border: 1px solid rgba(148, 163, 184, 0.34);
border-radius: 50%; border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
} }
.user-avatar { .user-avatar {
border: 4px solid #ffffff; border: 4px solid #ffffff;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
} }
.status-indicator { .status-indicator {
@@ -678,7 +681,9 @@ onMounted(async () => {
align-items: center; align-items: center;
gap: 6px; gap: 6px;
padding: 6px 12px; padding: 6px 12px;
border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px;
background: rgba(255, 255, 255, 0.72);
font-size: 13px; font-size: 13px;
} }
@@ -125,7 +125,7 @@ loadSuiteIntro();
.suite-card-col { .suite-card-col {
width: 20% !important; width: 20% !important;
min-width: 360px !important; min-width: 354px !important;
} }
} }
} }
@@ -299,21 +299,33 @@ onActivated(async () => {
.summary-card, .summary-card,
.wallet-tabs { .wallet-tabs {
border: 1px solid hsl(var(--border)); border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px; border-radius: 8px;
background: hsl(var(--card)); background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82)), hsl(var(--card));
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
transition:
transform 0.18s ease,
box-shadow 0.18s ease,
border-color 0.18s ease;
} }
.summary-card { .summary-card {
position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 16px; gap: 16px;
min-height: 112px; min-height: 112px;
overflow: hidden;
padding: 22px; padding: 22px;
} }
.summary-card:hover {
border-color: rgba(52, 120, 246, 0.34);
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
transform: translateY(-2px);
}
.summary-card-main { .summary-card-main {
min-width: 0; min-width: 0;
} }
@@ -345,6 +357,7 @@ onActivated(async () => {
.summary-action-button { .summary-action-button {
flex: none; flex: none;
box-shadow: 0 8px 18px rgba(52, 120, 246, 0.22);
} }
.wallet-tabs { .wallet-tabs {
@@ -353,6 +366,7 @@ onActivated(async () => {
flex-direction: column; flex-direction: column;
min-height: 0; min-height: 0;
padding: 0 12px 12px; padding: 0 12px 12px;
background: rgba(255, 255, 255, 0.92);
} }
.ant-tabs-content-holder, .ant-tabs-content-holder,
@@ -102,6 +102,10 @@ onActivated(() => {
<style lang="less"> <style lang="less">
.page-sys-invite-level { .page-sys-invite-level {
.fs-crud-container {
padding-top: 14px;
}
.fs-crud-table { .fs-crud-table {
display: none; display: none;
} }
@@ -110,7 +114,7 @@ onActivated(() => {
display: grid; display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px; gap: 16px;
padding: 4px 0; padding: 4px 8px;
} }
.level-empty { .level-empty {
@@ -121,14 +125,33 @@ onActivated(() => {
position: relative; position: relative;
min-height: 156px; min-height: 156px;
padding: 16px; padding: 16px;
border: 1px solid hsl(var(--border)); overflow: hidden;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px; border-radius: 8px;
background: hsl(var(--card)); background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78)), linear-gradient(135deg, rgba(52, 120, 246, 0.14), rgba(197, 138, 53, 0.12));
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
transition: transition:
transform 0.18s ease,
box-shadow 0.18s ease,
border-color 0.2s, border-color 0.2s,
background-color 0.2s; background-color 0.2s;
} }
.level-card::before {
position: absolute;
inset: 12px;
border: 1px solid rgba(255, 255, 255, 0.68);
border-radius: 6px;
content: "";
pointer-events: none;
}
.level-card:hover {
border-color: rgba(52, 120, 246, 0.42);
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
transform: translateY(-3px);
}
.level-card.disabled { .level-card.disabled {
opacity: 0.66; opacity: 0.66;
} }
@@ -146,6 +169,15 @@ onActivated(() => {
justify-content: center; justify-content: center;
width: 26px; width: 26px;
height: 26px; height: 26px;
border: 1px solid rgba(148, 163, 184, 0.2);
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
backdrop-filter: blur(8px);
}
.ant-btn:hover {
background: #fff;
transform: translateY(-1px);
} }
.fs-icon { .fs-icon {
@@ -174,6 +206,7 @@ onActivated(() => {
height: 22px; height: 22px;
color: #8a5a16; color: #8a5a16;
font-size: 20px; font-size: 20px;
filter: drop-shadow(0 4px 8px rgba(197, 138, 53, 0.22));
} }
.level-rate-label { .level-rate-label {
@@ -186,9 +219,9 @@ onActivated(() => {
.level-rate { .level-rate {
margin-top: 2px; margin-top: 2px;
color: #c58a35; color: #c58a35;
font-size: 24px; font-size: 28px;
font-weight: 700; font-weight: 700;
line-height: 30px; line-height: 34px;
text-align: center; text-align: center;
} }
@@ -137,7 +137,5 @@ export class MainConfiguration {
}); });
logger.info('当前环境:', this.app.getEnv()); // prod logger.info('当前环境:', this.app.getEnv()); // prod
} }
} }