feat(player): 统一移动端主题样式并优化多页面视觉一致性
将玩家端组件与核心页面全面切换为统一主题变量,优化卡片、按钮、弹窗、列表和盘口相关模块的视觉表现,并补充多语言文案以匹配新的交互与布局风格。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -142,21 +142,21 @@ const balanceAmountClass = computed(() => {
|
||||
</div>
|
||||
|
||||
<div class="bank-card-balance">
|
||||
<span class="bank-card-label">当前余额</span>
|
||||
<span class="bank-card-label">{{ t('wallet.balance') }}</span>
|
||||
<p class="bank-card-number balance-amount" :class="balanceAmountClass">{{ balanceDisplay }}</p>
|
||||
</div>
|
||||
|
||||
<div class="bank-card-footer">
|
||||
<div class="bank-card-field">
|
||||
<span class="bank-card-label">持卡人</span>
|
||||
<span class="bank-card-label">{{ t('wallet.card_holder') }}</span>
|
||||
<span class="bank-card-holder">{{ profileRaw?.username }}</span>
|
||||
</div>
|
||||
<div class="bank-card-field bank-card-field--center">
|
||||
<span class="bank-card-label">累计返水</span>
|
||||
<span class="bank-card-label">{{ t('cashback.total_received') }}</span>
|
||||
<span class="bank-card-stat">{{ formatMoney(cashbackTotal, locale) }}</span>
|
||||
</div>
|
||||
<div class="bank-card-field bank-card-field--right">
|
||||
<span class="bank-card-label">未结算</span>
|
||||
<span class="bank-card-label">{{ t('wallet.unsettled') }}</span>
|
||||
<span class="bank-card-stat">{{ formatMoney(profileRaw?.wallet?.frozenBalance, locale) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -288,7 +288,7 @@ const balanceAmountClass = computed(() => {
|
||||
}
|
||||
|
||||
.error-text {
|
||||
color: #6B7280;
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -296,16 +296,16 @@ const balanceAmountClass = computed(() => {
|
||||
.retry-btn {
|
||||
padding: 8px 24px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #003D6B;
|
||||
border: 1px solid var(--primary);
|
||||
background: transparent;
|
||||
color: #005B9F;
|
||||
color: var(--primary-light);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.retry-btn:active {
|
||||
background: rgba(0, 61, 107, 0.08);
|
||||
background: rgba(244, 162, 97, 0.15);
|
||||
}
|
||||
|
||||
.wallet-banner {
|
||||
@@ -315,7 +315,7 @@ const balanceAmountClass = computed(() => {
|
||||
aspect-ratio: 1.75 / 1;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.wallet-banner::after {
|
||||
@@ -346,9 +346,9 @@ const balanceAmountClass = computed(() => {
|
||||
pointer-events: none;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
#003D6B 0%,
|
||||
#005B9F 50%,
|
||||
#003D6B 100%
|
||||
#0F2027 0%,
|
||||
#F4A261 50%,
|
||||
#203A43 100%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -523,74 +523,84 @@ const balanceAmountClass = computed(() => {
|
||||
.quick-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-template-areas:
|
||||
"a a b b"
|
||||
"c c d d";
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.qa-item:nth-child(1) { grid-area: a; }
|
||||
.qa-item:nth-child(2) { grid-area: b; }
|
||||
.qa-item:nth-child(3) { grid-area: c; }
|
||||
.qa-item:nth-child(4) { grid-area: d; }
|
||||
|
||||
.qa-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 14px 4px 12px;
|
||||
border-radius: 10px;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #CBD5E1;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
|
||||
gap: 10px;
|
||||
padding: 12px 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s, box-shadow 0.15s;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.qa-item:active {
|
||||
transform: scale(0.96);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.qa-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.qa-icon--wallet {
|
||||
background: rgba(0, 61, 107, 0.1);
|
||||
color: #003D6B;
|
||||
background: rgba(244, 162, 97, 0.15);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.qa-icon--recharge {
|
||||
background: rgba(5, 150, 105, 0.1);
|
||||
color: #059669;
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.qa-icon--cashback {
|
||||
background: rgba(248, 151, 31, 0.1);
|
||||
color: #E8870A;
|
||||
background: rgba(255, 179, 0, 0.15);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.qa-icon--history {
|
||||
background: rgba(99, 102, 241, 0.1);
|
||||
color: #6366F1;
|
||||
background: rgba(244, 162, 97, 0.15);
|
||||
color: #F4A261;
|
||||
}
|
||||
|
||||
.qa-label {
|
||||
font-size: 11px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #1A1A2E;
|
||||
text-align: center;
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.settings-group {
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #E5E7EB;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -604,11 +614,11 @@ const balanceAmountClass = computed(() => {
|
||||
min-height: 42px;
|
||||
padding: 0 14px;
|
||||
background: none;
|
||||
color: #1A1A2E;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #E5E7EB;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.settings-cell:last-child {
|
||||
@@ -616,7 +626,7 @@ const balanceAmountClass = computed(() => {
|
||||
}
|
||||
|
||||
.settings-cell:active {
|
||||
background: #F5F7FA;
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.settings-cell--stack {
|
||||
@@ -639,7 +649,7 @@ const balanceAmountClass = computed(() => {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex-shrink: 0;
|
||||
color: #6B7280;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.cell-head {
|
||||
@@ -649,11 +659,11 @@ const balanceAmountClass = computed(() => {
|
||||
}
|
||||
|
||||
.cell-label {
|
||||
color: #1A1A2E;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.cell-chevron {
|
||||
color: #6B7280;
|
||||
color: var(--text-muted);
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
font-weight: 300;
|
||||
@@ -672,7 +682,7 @@ const balanceAmountClass = computed(() => {
|
||||
|
||||
.rules-cell .rules-body {
|
||||
padding: 0 14px 12px;
|
||||
border-bottom: 1px solid #E5E7EB;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.lang-segment {
|
||||
@@ -687,19 +697,23 @@ const balanceAmountClass = computed(() => {
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
min-height: 30px;
|
||||
min-width: 0;
|
||||
padding: 0 5px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #E5E7EB;
|
||||
background: #FFFFFF;
|
||||
color: #6B7280;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-card);
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.lang-opt.active {
|
||||
border-color: #003D6B;
|
||||
color: #003D6B;
|
||||
background: rgba(0, 61, 107, 0.06);
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
background: rgba(244, 162, 97, 0.12);
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
@@ -708,21 +722,21 @@ const balanceAmountClass = computed(() => {
|
||||
min-height: 40px;
|
||||
padding: 0 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #DC2626;
|
||||
background: #FFFFFF;
|
||||
color: #DC2626;
|
||||
border: 1px solid var(--danger);
|
||||
background: var(--bg-card);
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.logout-btn:active {
|
||||
background: rgba(220, 38, 38, 0.06);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
|
||||
.rules-body {
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
color: #6B7280;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.rules-body p {
|
||||
|
||||
Reference in New Issue
Block a user