feat(player/admin/api): 玩家端暗色极简主题重构与盘口单串关修复

## 管理端 / API(Bug 修复)
- matches.service:getAdminMatchDetail 返回 markets 时补充 allowSingle、allowParlay 字段
- MatchMarketsPanel:mapMarkets 从接口读取单关/串关开关,不再硬编码为 true
- match-form.ts:AdminMarket 类型补充 allowSingle、allowParlay

## 玩家端 — 全局主题(styles.css / index.html / site.webmanifest)
- 海军暗色 + 白色强调 token,卡片高光渐变(--gradient-card)
- 下拉/弹窗实底不透明(--dropdown-bg: #0A2540)
- 统一 sub-toolbar、status-ribbon、filter-tab 等全局样式
- theme-color 同步为 #001A33

## 玩家端 — 布局与壳层
- MainLayout:详情子页去顶栏/公告,sub-toolbar 全宽铺底
- WalletBalanceCard(新):个人页钱包卡片(反水 + 未结算)
- walletStats.ts(新):钱包统计逻辑抽取

## 玩家端 — 赛事 / 投注
- MatchDetailView:顶栏 8px 顶距、卡片全宽(--detail-gutter-x: 0)
- 盘口状态标签(暂停/已关闭)、去掉 MarketTypeTile 右侧箭头
- VsBadge(新):纯文字 VS,删除 vs.png
- isMarketLocked:仅关单关但允许串关时仍可点击,支持串关流程
- BetSlipDrawer:仅串关盘口禁用单关提交并提示 slip_parlay_only_hint
- betSlip:SlipItem 增加 allowSingle 字段
- MatchBetCard / LeagueAccordionItem:45° 待开赛角标,去掉展开左侧白边
- OutrightEventSection:去掉展开时左侧白色选中条
- FootballView:加大左右边距、筛选栏去 sticky、选中态增强
- BannerCarousel:恢复原始全宽轮播

## 玩家端 — 钱包 / 个人 / 认证 / 其他页面
- WalletView:移除顶部钱包卡片,保留账单列表
- ProfileView:保留 WalletBalanceCard
- 充值/账单/注单/登录注册等页面配色与间距统一
- 公告标签、余额面板、语言切换、区号选择等弹层改为实底

## 国际化
- zh-CN / en-US / ms-MY:新增 slip_parlay_only_hint(仅串关盘口提示)

## 资产
- 更新 banner.svg、empty-matches.svg 配色
- 删除 vs.png

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-17 11:00:25 +08:00
parent f34fe54489
commit d3ca8498fb
64 changed files with 2466 additions and 2084 deletions

View File

@@ -142,9 +142,9 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
</div>
<!-- back bar -->
<div class="top-bar">
<header class="top-bar sub-toolbar">
<button class="back-btn" @click="router.back()"> {{ t('history.back') }}</button>
</div>
</header>
<div v-if="loading" class="state">
<GoldSpinner :size="36" />
@@ -275,7 +275,7 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.back-btn {
background: none;
border: none;
color: var(--primary-light, #d4af37);
color: var(--primary-light);
font-size: 15px;
font-weight: 700;
padding: 4px 0 8px;
@@ -288,14 +288,14 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.state {
text-align: center;
padding: 60px 20px;
color: #666;
color: var(--text-muted);
font-size: 14px;
font-weight: 600;
}
/* ── hero ── */
.hero {
border-radius: 14px;
border-radius: var(--radius);
padding: 20px 20px 18px;
display: flex;
flex-direction: column;
@@ -305,48 +305,60 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
text-align: center;
}
.hero.won { background: linear-gradient(135deg, rgba(61,184,101,0.15), rgba(61,184,101,0.06)); border: 1px solid rgba(61,184,101,0.25); }
.hero.lost { background: linear-gradient(135deg, rgba(224,80,80,0.12), rgba(224,80,80,0.05)); border: 1px solid rgba(224,80,80,0.2); }
.hero.pending { background: linear-gradient(135deg, rgba(232,200,74,0.1), rgba(232,200,74,0.04)); border: 1px solid rgba(232,200,74,0.2); }
.hero.push { background: #181818; border: 1px solid #2a2a2a; }
.hero.won {
background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0.06));
border: 1px solid rgba(46, 204, 113, 0.35);
}
.hero.lost {
background: linear-gradient(135deg, var(--surface-accent), rgba(255, 255, 255, 0.06));
border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero.pending {
background: var(--gradient-card);
border: 1px solid var(--border-gold-soft);
}
.hero.push {
background: var(--bg-card);
border: 1px solid var(--border);
}
.hero-status {
font-size: 11px;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
opacity: 0.7;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: none;
opacity: 0.85;
}
.hero.won .hero-status { color: #3db865; }
.hero.lost .hero-status { color: #e05050; }
.hero.pending .hero-status { color: #e8c84a; }
.hero.push .hero-status { color: #888; }
.hero.won .hero-status { color: var(--success); }
.hero.lost .hero-status { color: var(--primary); }
.hero.pending .hero-status { color: var(--primary-light); }
.hero.push .hero-status { color: var(--text-muted); }
.hero-return {
font-size: 36px;
font-weight: 900;
font-size: 32px;
font-weight: 700;
letter-spacing: -0.01em;
line-height: 1.1;
}
.hero.won .hero-return { color: #3db865; text-shadow: 0 0 24px rgba(61,184,101,0.3); }
.hero.lost .hero-return { color: #e05050; }
.hero.pending .hero-return { color: #e8c84a; }
.hero.push .hero-return { color: #777; }
.hero.won .hero-return { color: var(--success); text-shadow: none; }
.hero.lost .hero-return { color: var(--primary); }
.hero.pending .hero-return { color: var(--primary-light); }
.hero.push .hero-return { color: var(--text-muted); }
.hero-return-label {
font-size: 10.5px;
color: #555;
color: var(--text-muted);
font-weight: 600;
letter-spacing: 0.04em;
}
/* ── sections ── */
.section {
background: #141414;
border: 1px solid #222;
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--space-card) 16px;
margin-bottom: var(--space-section);
}
.section-head {
@@ -358,21 +370,21 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.league-tag {
font-size: 11px;
color: #888;
color: var(--text-muted);
font-weight: 700;
}
.placed-time {
font-size: 11px;
color: #555;
color: var(--neutral);
font-weight: 600;
}
.match-name {
font-size: 17px;
font-weight: 900;
color: #f0f0f0;
line-height: 1.3;
font-size: 16px;
font-weight: 700;
color: var(--text);
line-height: 1.35;
margin-bottom: 10px;
}
@@ -398,18 +410,18 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.row-label {
font-size: 11px;
color: #666;
color: var(--text-muted);
font-weight: 600;
}
.row-val {
font-size: 13px;
font-weight: 700;
color: #c8c8c8;
color: var(--text);
}
.row-val.pick {
color: #d4af37;
color: var(--primary);
}
.score-chips {
@@ -421,44 +433,44 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
display: flex;
align-items: center;
gap: 5px;
background: #1e1e1e;
border: 1px solid #2a2a2a;
background: var(--bg-body);
border: 1px solid var(--border);
border-radius: 7px;
padding: 5px 10px;
}
.score-period {
font-size: 10px;
color: #666;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--text-muted);
font-weight: 600;
letter-spacing: 0.02em;
text-transform: none;
}
.score-value {
font-size: 16px;
font-weight: 900;
color: #e8e8e8;
font-size: 15px;
font-weight: 700;
color: var(--text);
}
.score-value.muted {
color: #666;
color: var(--neutral);
font-size: 13px;
}
.no-score {
font-size: 11.5px;
color: #555;
color: var(--neutral);
font-style: italic;
}
/* section title */
.section-title {
font-size: 10.5px;
color: #555;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 11px;
color: var(--text-muted);
font-weight: 600;
letter-spacing: 0.02em;
text-transform: none;
margin-bottom: 10px;
}
@@ -474,14 +486,14 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
justify-content: space-between;
align-items: flex-start;
gap: 10px;
background: #1a1a1a;
border: 1px solid #252525;
background: var(--bg-body);
border: 1px solid var(--border);
border-radius: 9px;
padding: 10px 12px;
}
.leg-row.won { border-color: rgba(61,184,101,0.2); }
.leg-row.lost { border-color: rgba(224,80,80,0.18); }
.leg-row.won { border-color: rgba(46, 204, 113, 0.35); }
.leg-row.lost { border-color: rgba(255, 255, 255, 0.35); }
.leg-left {
display: flex;
@@ -496,8 +508,8 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
width: 20px;
height: 20px;
border-radius: 50%;
background: #2a2a2a;
color: #666;
background: var(--bg-card);
color: var(--text-muted);
font-size: 10px;
font-weight: 800;
display: flex;
@@ -506,8 +518,8 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
margin-top: 1px;
}
.leg-num.won { background: rgba(61,184,101,0.18); color: #3db865; }
.leg-num.lost { background: rgba(224,80,80,0.18); color: #e05050; }
.leg-num.won { background: rgba(46, 204, 113, 0.18); color: var(--success); }
.leg-num.lost { background: rgba(255, 255, 255, 0.18); color: var(--primary); }
.leg-body {
display: flex;
@@ -519,12 +531,12 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.leg-match {
font-size: 12.5px;
font-weight: 800;
color: #d0d0d0;
color: var(--text);
}
.leg-pick-line {
font-size: 11.5px;
color: #888;
color: var(--text-muted);
font-weight: 600;
}
@@ -537,11 +549,11 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.leg-scores span {
font-size: 11px;
font-weight: 700;
color: #c8c8c8;
color: var(--text);
}
.leg-scores .muted-score {
color: #555;
color: var(--neutral);
}
.leg-right {
@@ -554,23 +566,23 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
.leg-odds-val {
font-size: 15px;
font-weight: 900;
color: #b8a04a;
font-weight: 700;
color: var(--text);
}
.leg-result-badge {
font-size: 9px;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 2px 6px;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: none;
padding: 2px 8px;
border-radius: 10px;
}
.leg-result-badge.won { color: #3db865; background: rgba(61,184,101,0.12); }
.leg-result-badge.lost { color: #e05050; background: rgba(224,80,80,0.1); }
.leg-result-badge.push { color: #888; background: #222; }
.leg-result-badge.pending { color: #666; background: #1e1e1e; }
.leg-result-badge.won { color: var(--success); background: rgba(46, 204, 113, 0.12); }
.leg-result-badge.lost { color: var(--primary); background: rgba(255, 255, 255, 0.1); }
.leg-result-badge.push { color: var(--text-muted); background: var(--bg-card); }
.leg-result-badge.pending { color: var(--neutral); background: var(--bg-body); }
/* summary */
.summary-rows {
@@ -584,9 +596,9 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #1c1c1c;
border-bottom: 1px solid var(--border);
font-size: 13px;
color: #b0b0b0;
color: var(--text-muted);
font-weight: 600;
}
@@ -595,29 +607,29 @@ const matchPhaseText = computed(() => matchPhaseLabel(t, matchPhase.value));
}
.sum-row.muted {
color: #444;
color: var(--neutral);
font-size: 11px;
}
.odds-val {
color: #b8a04a;
font-weight: 800;
color: var(--text);
font-weight: 700;
}
.amt-won {
color: #3db865;
font-weight: 900;
color: var(--success);
font-weight: 700;
font-size: 15px;
}
.amt-pending {
color: #e8c84a;
font-weight: 900;
color: var(--text-muted);
font-weight: 700;
}
.amt-lost {
color: #e05050;
font-weight: 900;
color: var(--primary);
font-weight: 700;
font-size: 15px;
}

View File

@@ -117,11 +117,11 @@ const pullIndicatorStyle = () => ({
<template>
<div class="cashback-page">
<div class="top-bar">
<header class="top-bar sub-toolbar">
<button type="button" class="back-btn" @click="router.back()">
&#x2039; {{ t('history.back') }}
</button>
</div>
</header>
<div class="pull-indicator" :style="pullIndicatorStyle()">
<GoldSpinner v-if="spinning" :size="28" :progress="progress" :active="spinning" />
@@ -202,7 +202,7 @@ const pullIndicatorStyle = () => ({
.back-btn {
background: none;
border: none;
color: var(--primary-light, #d4af37);
color: var(--primary-light);
font-size: 15px;
font-weight: 700;
padding: 4px 0 8px;
@@ -243,18 +243,18 @@ const pullIndicatorStyle = () => ({
gap: 4px;
padding: 18px 16px 16px;
margin-bottom: 14px;
border-radius: var(--radius, 12px);
background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(26, 26, 26, 0.92));
border: 1px solid rgba(212, 175, 55, 0.28);
border-radius: var(--radius);
background: var(--gradient-card);
border: 1px solid var(--border-gold-soft);
text-align: center;
}
.hero-amount {
font-size: 28px;
font-weight: 800;
color: #f0b90b;
color: var(--primary-light);
line-height: 1.2;
text-shadow: 0 0 20px rgba(240, 185, 11, 0.2);
text-shadow: 0 0 20px var(--surface-accent);
}
.hero-sub {
@@ -265,7 +265,7 @@ const pullIndicatorStyle = () => ({
.section-title {
font-size: 10.5px;
color: #555;
color: var(--text-muted);
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
@@ -290,15 +290,15 @@ const pullIndicatorStyle = () => ({
}
.record-row--highlight {
background: rgba(212, 175, 55, 0.08);
box-shadow: inset 3px 0 0 #d4af37;
background: rgba(255, 255, 255, 0.1);
box-shadow: inset 3px 0 0 var(--primary);
}
.ledger-hint {
margin: 0 0 12px;
font-size: 12px;
line-height: 1.5;
color: #666;
color: var(--text-muted);
}
.row-main {
@@ -331,9 +331,9 @@ const pullIndicatorStyle = () => ({
flex-shrink: 0;
font-size: 12px;
font-weight: 700;
color: #f0b90b;
background: rgba(240, 185, 11, 0.1);
border: 1px solid rgba(240, 185, 11, 0.22);
color: var(--primary-light);
background: var(--surface-accent);
border: 1px solid var(--border-gold-soft);
border-radius: 999px;
padding: 3px 10px;
}
@@ -354,9 +354,9 @@ const pullIndicatorStyle = () => ({
gap: 8px;
margin-top: 8px;
padding-top: 8px;
border-top: 1px dashed rgba(255, 255, 255, 0.06);
border-top: 1px dashed var(--border);
font-size: 11px;
color: #666;
color: var(--neutral);
}
.row-batch {
@@ -387,7 +387,7 @@ const pullIndicatorStyle = () => ({
margin: 0;
font-size: 13px;
line-height: 1.5;
color: #666;
color: var(--neutral);
}
.sentinel {
@@ -403,7 +403,7 @@ const pullIndicatorStyle = () => ({
.end-hint {
text-align: center;
font-size: 12px;
color: #555;
color: var(--neutral);
font-weight: 600;
padding: 16px 0 4px;
letter-spacing: 0.03em;

View File

@@ -247,7 +247,7 @@ function goMatch(id: string) {
<button
type="button"
class="main-tab"
:class="{ active: mainTab === 'matches', 'tab-gold-active': mainTab === 'matches' }"
:class="{ active: mainTab === 'matches' }"
@click="selectMainTab('matches')"
>
<span class="tab-icon"></span>
@@ -256,7 +256,7 @@ function goMatch(id: string) {
<button
type="button"
class="main-tab"
:class="{ active: mainTab === 'outright', 'tab-gold-active': mainTab === 'outright' }"
:class="{ active: mainTab === 'outright' }"
@click="selectMainTab('outright')"
>
<span class="tab-icon">🏆</span>
@@ -382,7 +382,6 @@ function goMatch(id: string) {
}
.bet-page {
margin: 0 -16px;
padding-bottom: 8px;
background: var(--bg-body);
}
@@ -407,8 +406,13 @@ function goMatch(id: string) {
.main-tabs {
display: flex;
gap: 8px;
padding: 0 12px 12px;
gap: 2px;
margin: 0 0 var(--space-section);
padding: 3px;
background: var(--gradient-card-soft);
border: 1px solid rgba(255, 255, 255, 0.11);
border-radius: var(--radius-sm);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.main-tab {
@@ -417,23 +421,23 @@ function goMatch(id: string) {
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 8px;
border-radius: var(--radius-sm);
background: var(--bg-card);
border: 1px solid var(--border);
padding: 9px 8px;
border-radius: calc(var(--radius-sm) - 3px);
background: transparent;
border: none;
color: var(--text-muted);
font-size: 13px;
font-weight: 600;
font-weight: 500;
position: relative;
box-shadow: var(--shadow);
transition: background 0.2s, border-color 0.2s, color 0.2s;
box-shadow: none;
transition: background 0.18s, color 0.18s;
}
.main-tab.active {
font-weight: 700;
background: rgba(244, 162, 97, 0.1);
border-color: var(--primary);
color: var(--primary-light);
font-weight: 600;
background: var(--bg-elevated);
color: var(--text);
box-shadow: inset 0 0 0 1px var(--border);
}
.tab-icon {
@@ -446,7 +450,19 @@ function goMatch(id: string) {
align-items: center;
justify-content: flex-start;
gap: 8px;
padding: 0 12px 12px;
padding: 0 0 var(--space-section);
background: var(--bg-body);
}
.time-tab.active,
.status-toggle-btn.active {
color: var(--text);
background: var(--surface-active);
font-weight: 600;
}
.time-tab.active {
box-shadow: inset 0 0 0 1px var(--border-gold);
}
.phase-filter {
@@ -469,9 +485,9 @@ function goMatch(id: string) {
align-items: center;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
border-radius: var(--radius-sm);
padding: 2px;
height: 24px;
height: 28px;
box-sizing: border-box;
flex-shrink: 0;
}
@@ -484,9 +500,9 @@ function goMatch(id: string) {
color: var(--text-muted);
background: transparent;
border: none;
border-radius: 4px;
border-radius: calc(var(--radius-sm) - 2px);
cursor: pointer;
transition: all 0.2s ease;
transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
@@ -494,30 +510,24 @@ function goMatch(id: string) {
flex-shrink: 0;
}
.time-tab.active {
color: var(--primary-light);
background: rgba(244, 162, 97, 0.15);
font-weight: 600;
}
.right-filters .divider {
width: 1px;
height: 12px;
height: 14px;
background: var(--border);
}
.status-toggle-btn {
padding: 0 8px;
height: 24px;
padding: 0 10px;
height: 28px;
box-sizing: border-box;
font-size: 11px;
font-weight: 500;
color: var(--text-muted);
background: var(--bg-card);
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s ease;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
@@ -526,10 +536,8 @@ function goMatch(id: string) {
}
.status-toggle-btn.active {
color: var(--primary-light);
background: rgba(244, 162, 97, 0.15);
border-color: var(--primary);
font-weight: 600;
border-color: var(--border-gold);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* League Dropdown Selector */
@@ -545,16 +553,17 @@ function goMatch(id: string) {
gap: 6px;
padding: 0 10px;
font-size: 11px;
font-weight: 500;
font-weight: 600;
color: var(--text);
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
border-radius: var(--radius-sm);
cursor: pointer;
height: 24px;
height: 28px;
box-sizing: border-box;
width: 100%;
max-width: 100%;
transition: border-color 0.2s ease, background 0.2s ease;
}
.dropdown-text {
@@ -592,23 +601,25 @@ function goMatch(id: string) {
max-width: 240px;
max-height: 200px;
overflow-y: auto;
background: #0f1217;
border: 1px solid #2a3240;
border-radius: 8px;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
background: var(--dropdown-bg);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
box-shadow: var(--shadow);
padding: 6px 0;
}
.dropdown-item {
padding: 8px 14px;
font-size: 13px;
color: #e5e7eb;
color: var(--text-muted);
cursor: pointer;
transition: background 0.2s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-bottom: 1px solid #1f2937;
border-bottom: 1px solid var(--border);
}
.dropdown-item:last-child {
@@ -617,17 +628,17 @@ function goMatch(id: string) {
.dropdown-item:hover,
.dropdown-item:active {
background: #1b2330;
background: rgba(255, 255, 255, 0.08);
}
.dropdown-item.active {
color: #f4d06f;
background: #242f42;
font-weight: 700;
color: var(--text);
background: rgba(255, 255, 255, 0.08);
font-weight: 600;
}
.league-list {
padding: 4px 12px 0;
padding: 4px 0 0;
}
.state,

View File

@@ -111,7 +111,7 @@ function goLogin() {
<PhoneCountrySelect v-model="countryIso" />
<input
v-model="phone"
class="field-input"
class="field-input ps-gold-input"
type="tel"
required
autocomplete="tel-national"
@@ -125,7 +125,7 @@ function goLogin() {
<div class="inline-row">
<input
v-model="smsCode"
class="field-input"
class="field-input ps-gold-input"
inputmode="numeric"
maxlength="6"
autocomplete="one-time-code"
@@ -146,7 +146,7 @@ function goLogin() {
<label>{{ t('auth.password') }}</label>
<input
v-model="password"
class="field-input"
class="field-input ps-gold-input"
type="password"
required
autocomplete="new-password"
@@ -159,7 +159,7 @@ function goLogin() {
<label>{{ t('auth.confirm_password') }}</label>
<input
v-model="confirmPassword"
class="field-input"
class="field-input ps-gold-input"
type="password"
required
autocomplete="new-password"
@@ -197,19 +197,38 @@ function goLogin() {
align-items: center;
justify-content: flex-end;
padding: 30vh 16px calc(10vh + max(20px, env(safe-area-inset-bottom)));
background-color: var(--tertiary);
background-color: var(--bg-body);
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
.login-page::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 34, 68, 0.35) 0%,
rgba(0, 34, 68, 0.78) 52%,
rgba(0, 34, 68, 0.94) 100%
);
pointer-events: none;
z-index: 0;
}
.login-page > * {
position: relative;
z-index: 1;
}
.login-form {
width: 100%;
max-width: 320px;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
padding: 14px;
}
.form-title {
@@ -239,19 +258,19 @@ label {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #0d0d0d;
background: var(--bg-input);
color: var(--text);
font-size: 14px;
font-family: inherit;
}
.field-input::placeholder {
color: rgba(255, 255, 255, 0.32);
color: rgba(240, 230, 211, 0.4);
}
.field-input:focus {
outline: none;
border-color: #555;
border-color: var(--border-gold-soft);
}
.inline-row {
@@ -271,7 +290,7 @@ label {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #141414;
background: var(--bg-card);
color: var(--text);
font-size: 11px;
font-weight: 600;
@@ -279,6 +298,12 @@ label {
cursor: pointer;
}
.btn-secondary:not(:disabled):active {
border-color: var(--primary);
background: var(--surface-accent);
color: var(--text);
}
.btn-secondary:disabled {
opacity: 0.45;
cursor: not-allowed;

View File

@@ -3,9 +3,9 @@ import { onActivated } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import emptyMatchesImg from '../assets/images/empty-matches.svg';
import vsImg from '../assets/images/vs.png';
import cardBg from '../assets/images/card-bg.webp';
import BannerCarousel from '../components/BannerCarousel.vue';
import VsBadge from '../components/VsBadge.vue';
import { usePlayerHome } from '../composables/usePlayerHome';
import TeamEmblem from '../components/TeamEmblem.vue';
import GoldSpinner from '../components/GoldSpinner.vue';
@@ -50,11 +50,11 @@ function formatKickoff(startTime: string) {
<BannerCarousel :banners="banners" />
<h2 class="section-title">{{ t('home.hot_matches') }}</h2>
<div class="match-card-list">
<div
v-for="(match, index) in hotMatches"
:key="match.id"
class="match-card"
:class="{ 'match-card--live-anim': index < 3 }"
@click="goMatch(match.id)"
>
<div class="match-info">
@@ -68,31 +68,7 @@ function formatKickoff(startTime: string) {
:team-name="match.homeTeamName"
:logo-url="match.homeTeamLogoUrl"
/>
<div class="vs-arena">
<svg class="hz-lightning" viewBox="0 0 72 28" aria-hidden="true">
<defs>
<linearGradient :id="`hzBoltGrad-${match.id}`" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#5eb8ff" stop-opacity="0.2" />
<stop offset="35%" stop-color="#b8ecff" stop-opacity="1" />
<stop offset="50%" stop-color="#ffffff" stop-opacity="1" />
<stop offset="65%" stop-color="#ffd080" stop-opacity="1" />
<stop offset="100%" stop-color="#ff9040" stop-opacity="0.2" />
</linearGradient>
</defs>
<path
class="hz-path hz-path-main"
:stroke="`url(#hzBoltGrad-${match.id})`"
d="M1 14 H16 L20 5 L24 23 L28 9 L32 14 H40 L44 6 L48 22 L52 12 L56 14 H71"
/>
<path
class="hz-path hz-path-sub"
:stroke="`url(#hzBoltGrad-${match.id})`"
d="M3 19 H14 L18 15 L22 19 H50 L54 16 L58 19 H69"
/>
</svg>
<span class="hz-beam" aria-hidden="true" />
<img :src="vsImg" alt="" class="vs-img" />
</div>
<VsBadge size="md" />
<TeamEmblem
size="md"
:team-code="match.awayTeamCode"
@@ -101,6 +77,7 @@ function formatKickoff(startTime: string) {
/>
</div>
</div>
</div>
<div v-if="!loading && !hotMatches.length" class="empty">
<img :src="emptyMatchesImg" alt="" class="empty-icon" />
@@ -118,6 +95,17 @@ function formatKickoff(startTime: string) {
transition: height 0.15s ease;
}
.section-title {
margin-top: var(--space-section);
margin-bottom: var(--space-section);
}
.match-card-list {
display: flex;
flex-direction: column;
gap: var(--space-section);
}
.match-card {
position: relative;
isolation: isolate;
@@ -125,7 +113,7 @@ function formatKickoff(startTime: string) {
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
margin-bottom: 0;
padding: 14px 16px;
min-height: 72px;
border: 1px solid var(--border);
@@ -164,10 +152,10 @@ function formatKickoff(startTime: string) {
}
.match-teams {
font-weight: 800;
font-weight: 600;
margin-bottom: 8px;
font-size: 16px;
line-height: 1.3;
font-size: 15px;
line-height: 1.35;
}
.match-time {
@@ -184,189 +172,6 @@ function formatKickoff(startTime: string) {
max-width: 46%;
}
.vs-arena {
position: relative;
flex-shrink: 0;
width: 64px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
}
.hz-lightning {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: none;
overflow: visible;
}
.hz-path {
fill: none;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 0 4px rgba(120, 210, 255, 0.95)) drop-shadow(0 0 8px rgba(255, 180, 80, 0.55));
opacity: 0;
}
.match-card--live-anim .hz-path-main {
animation: hz-strike-main 2.6s ease-in-out infinite;
}
.match-card--live-anim .hz-path-sub {
stroke-width: 1.6;
animation: hz-strike-sub 2.6s ease-in-out infinite;
animation-delay: 0.12s;
}
.match-card--live-anim .hz-beam {
position: absolute;
left: 0;
right: 0;
top: 50%;
height: 2px;
transform: translateY(-50%);
pointer-events: none;
z-index: 1;
background: linear-gradient(
90deg,
rgba(94, 184, 255, 0) 0%,
rgba(184, 236, 255, 0.95) 28%,
#fff 50%,
rgba(255, 208, 128, 0.95) 72%,
rgba(255, 144, 64, 0) 100%
);
opacity: 0;
filter: blur(0.4px);
animation: hz-beam-flash 2.6s ease-in-out infinite;
}
.hz-beam {
display: none;
}
.vs-img {
position: relative;
z-index: 0;
width: 48px;
height: auto;
object-fit: contain;
filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.35));
}
.match-card--live-anim .vs-img {
animation: vs-glow 2.4s ease-in-out infinite;
}
@keyframes hz-strike-main {
0%,
72%,
100% {
opacity: 0;
}
74% {
opacity: 1;
}
75% {
opacity: 0.25;
}
76% {
opacity: 0.95;
}
78% {
opacity: 0;
}
}
@keyframes hz-strike-sub {
0%,
74%,
100% {
opacity: 0;
}
76% {
opacity: 0.85;
}
77% {
opacity: 0.2;
}
78% {
opacity: 0.7;
}
80% {
opacity: 0;
}
}
@keyframes hz-beam-flash {
0%,
71%,
100% {
opacity: 0;
transform: translateY(-50%) scaleX(0.6);
}
73% {
opacity: 0.85;
transform: translateY(-50%) scaleX(1);
}
75% {
opacity: 0.15;
transform: translateY(-50%) scaleX(0.95);
}
76% {
opacity: 0.75;
transform: translateY(-50%) scaleX(1);
}
78% {
opacity: 0;
transform: translateY(-50%) scaleX(1.05);
}
}
@keyframes vs-glow {
0%,
100% {
opacity: 0.82;
filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.3));
}
50% {
opacity: 1;
filter:
drop-shadow(0 0 3px rgba(255, 230, 140, 0.7))
drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}
}
@media (prefers-reduced-motion: reduce) {
.vs-img {
animation: none;
filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.35));
}
.hz-path,
.hz-beam {
animation: none;
opacity: 0;
}
}
.empty {
text-align: center;
color: var(--text-muted);

View File

@@ -90,11 +90,30 @@ function goRegister() {
<LocaleSwitcher compact />
</div>
<form @submit.prevent="submit" class="login-form ps-gold-frame">
<div class="auth-tabs">
<button
type="button"
class="auth-tab"
:class="{ active: loginMode === 'account' }"
@click="switchLoginMode('account')"
>
{{ t('auth.login_by_account') }}
</button>
<button
type="button"
class="auth-tab"
:class="{ active: loginMode === 'phone' }"
@click="switchLoginMode('phone')"
>
{{ t('auth.login_by_phone') }}
</button>
</div>
<div v-if="loginMode === 'account'" class="field">
<label>{{ t('auth.username') }}</label>
<input
v-model="account"
class="field-input"
class="field-input ps-gold-input"
required
autocomplete="username"
maxlength="32"
@@ -108,7 +127,7 @@ function goRegister() {
<PhoneCountrySelect v-model="countryIso" />
<input
v-model="phone"
class="field-input"
class="field-input ps-gold-input"
type="tel"
required
autocomplete="tel-national"
@@ -119,17 +138,13 @@ function goRegister() {
<div class="field">
<label>{{ t('auth.password') }}</label>
<input v-model="password" class="field-input" type="password" required autocomplete="current-password" />
<input v-model="password" class="field-input ps-gold-input" type="password" required autocomplete="current-password" />
</div>
<button type="button" class="btn-forgot" @click="goForgotPassword">
{{ t('auth.forgot_password') }}
</button>
<button type="button" class="btn-mode-switch" @click="switchLoginMode(loginMode === 'account' ? 'phone' : 'account')">
{{ loginMode === 'account' ? t('auth.login_by_phone') : t('auth.login_by_account') }}
</button>
<RobotVerify ref="captchaRef" />
<p v-if="resetSuccess" class="success">{{ t('auth.reset_success') }}</p>
<p v-if="error" class="error">{{ error }}</p>
@@ -164,19 +179,68 @@ function goRegister() {
align-items: center;
justify-content: flex-end;
padding: 34vh 20px calc(15vh + max(28px, env(safe-area-inset-bottom)));
background-color: var(--tertiary);
background-color: var(--bg-body);
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
.login-page::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 34, 68, 0.35) 0%,
rgba(0, 34, 68, 0.78) 52%,
rgba(0, 34, 68, 0.94) 100%
);
pointer-events: none;
z-index: 0;
}
.login-page > * {
position: relative;
z-index: 1;
}
.login-form {
width: 100%;
max-width: 320px;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
padding: 14px;
}
.auth-tabs {
display: flex;
gap: 6px;
margin-bottom: 4px;
padding: 4px;
border-radius: var(--radius-sm);
background: var(--bg-body);
border: 1px solid var(--border);
}
.auth-tab {
flex: 1;
min-height: 34px;
padding: 0 8px;
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-tab.active {
border-color: var(--primary);
color: var(--text);
background: var(--surface-accent);
}
.field {
@@ -191,7 +255,7 @@ function goRegister() {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #0d0d0d;
background: var(--bg-input);
color: var(--text);
font-size: 14px;
font-family: inherit;
@@ -199,7 +263,7 @@ function goRegister() {
.field-input:focus {
outline: none;
border-color: #555;
border-color: var(--border-gold-soft);
}
.inline-row {
@@ -220,36 +284,20 @@ label {
letter-spacing: 0.04em;
}
.btn-mode-switch {
align-self: flex-start;
margin: -2px 0 0;
padding: 0;
border: none;
background: transparent;
color: rgba(240, 216, 117, 0.75);
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.btn-forgot {
align-self: flex-end;
margin: -4px 0 0;
padding: 0;
border: none;
background: transparent;
color: rgba(255, 255, 255, 0.5);
color: var(--text-muted);
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.btn-forgot:active {
color: rgba(255, 255, 255, 0.75);
}
.btn-mode-switch:active {
color: rgba(240, 216, 117, 0.95);
color: var(--text);
}
.btn-login {
@@ -308,7 +356,7 @@ label {
.success {
margin: 0;
color: #6ee7a0;
color: var(--success);
font-size: 12px;
font-weight: 600;
line-height: 1.4;

View File

@@ -14,8 +14,8 @@ import CorrectScorePanel from '../components/match-detail/CorrectScorePanel.vue'
import { isCorrectScoreMarket, parseScoreCode } from '../utils/correctScoreLayout';
import { useOnLocaleChange } from '../composables/useOnLocaleChange';
import { usePullToRefresh } from '../composables/usePullToRefresh';
import vsImg from '../assets/images/vs.png';
import GoldSpinner from '../components/GoldSpinner.vue';
import VsBadge from '../components/VsBadge.vue';
import { matchPhaseLabel, type MatchPhase } from '../utils/matchPhase';
import { formatLocalMatchDateTime } from '@thebet365/shared';
@@ -36,6 +36,7 @@ interface Market {
lineKey?: string | null;
period: string;
lineValue?: string | number | null;
status?: string;
allowSingle?: boolean;
allowParlay?: boolean;
promoLabel?: string | null;
@@ -47,6 +48,7 @@ interface Selection {
selectionCode: string;
selectionName: string;
selectionDisplayName?: string;
status?: string;
odds: string;
oddsVersion: string;
}
@@ -191,6 +193,28 @@ function marketLabel(market: Market | null | undefined) {
return market?.marketDisplayName?.trim() || market?.marketType || '';
}
function normalizeMarketStatus(status?: string) {
return (status ?? 'OPEN').toUpperCase();
}
function isMarketOpen(market: Market) {
return normalizeMarketStatus(market.status) === 'OPEN';
}
function marketStatusLabel(status?: string) {
const normalized = normalizeMarketStatus(status);
if (normalized === 'SUSPENDED') return t('bet.market_status_suspended');
if (normalized === 'CLOSED') return t('bet.market_status_closed');
return '';
}
function isMarketLocked(market: Market) {
if (!bettingOpen.value || !isMarketOpen(market)) return true;
const singleOk = market.allowSingle !== false;
const parlayOk = market.allowParlay !== false;
return !singleOk && !parlayOk;
}
function selectionLabel(sel: Selection) {
const parsedScore = parseScoreCode(sel.selectionCode, t);
if (parsedScore) return parsedScore.display;
@@ -224,8 +248,7 @@ function isSelected(id: string) {
}
function toggleSelection(sel: Selection, market: Market) {
if (!match.value || !bettingOpen.value) return;
if (market.allowSingle === false) return;
if (!match.value || isMarketLocked(market)) return;
if (!auth.token) {
goLogin();
return;
@@ -244,6 +267,7 @@ function toggleSelection(sel: Selection, market: Market) {
market.lineValue != null && market.lineValue !== ''
? parseFloat(String(market.lineValue))
: null,
allowSingle: market.allowSingle,
allowParlay: market.allowParlay,
});
slip.openDrawer();
@@ -266,7 +290,7 @@ function onPickSelection(selId: string, marketId: string) {
<GoldSpinner v-if="spinning" :size="28" :progress="progress" :active="spinning" />
</div>
<header class="toolbar">
<header class="toolbar sub-toolbar sub-toolbar--sticky sub-toolbar--glass">
<button type="button" class="icon-btn" :aria-label="t('bet.back')" @click="router.back()"></button>
<span class="toolbar-title">{{ match?.leagueName ?? '' }}</span>
<div class="toolbar-actions">
@@ -288,7 +312,8 @@ function onPickSelection(selId: string, marketId: string) {
</div>
<template v-else-if="match">
<section class="match-hero" :class="{ 'match-hero--phase': matchPhase !== 'open' }">
<span v-if="matchPhase === 'settled'" class="status-tag status-tag--settled">{{ phaseLabel }}</span>
<span v-if="matchPhase === 'open'" class="status-ribbon">{{ t('bet.status_open') }}</span>
<span v-else-if="matchPhase === 'settled'" class="status-tag status-tag--settled">{{ phaseLabel }}</span>
<span v-else-if="matchPhase === 'closed_pending'" class="status-tag status-tag--pending">{{ phaseLabel }}</span>
<div class="hero-teams">
<!-- home -->
@@ -302,32 +327,7 @@ function onPickSelection(selId: string, marketId: string) {
<span class="hero-name">{{ match.homeTeamName }}</span>
</div>
<!-- VS arena with lightning -->
<div class="vs-arena">
<svg class="hz-lightning" viewBox="0 0 72 28" aria-hidden="true">
<defs>
<linearGradient id="hzDetailGrad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#5eb8ff" stop-opacity="0.2" />
<stop offset="35%" stop-color="#b8ecff" stop-opacity="1" />
<stop offset="50%" stop-color="#ffffff" stop-opacity="1" />
<stop offset="65%" stop-color="#ffd080" stop-opacity="1" />
<stop offset="100%" stop-color="#ff9040" stop-opacity="0.2" />
</linearGradient>
</defs>
<path
class="hz-path hz-path-main"
stroke="url(#hzDetailGrad)"
d="M1 14 H16 L20 5 L24 23 L28 9 L32 14 H40 L44 6 L48 22 L52 12 L56 14 H71"
/>
<path
class="hz-path hz-path-sub"
stroke="url(#hzDetailGrad)"
d="M3 19 H14 L18 15 L22 19 H50 L54 16 L58 19 H69"
/>
</svg>
<span class="hz-beam" aria-hidden="true" />
<img :src="vsImg" alt="" class="vs-img" />
</div>
<VsBadge size="lg" />
<!-- away -->
<div class="hero-team">
@@ -388,24 +388,30 @@ function onPickSelection(selId: string, marketId: string) {
<MarketTypeTile
:label="marketLabel(market)"
:promo-label="market.promoLabel?.trim() || ''"
:has-market="true"
:expanded="true"
:status-label="bettingOpen && !isMarketOpen(market) ? marketStatusLabel(market.status) : ''"
/>
<div class="market-panel-wrap" :class="{ locked: !bettingOpen || market.allowSingle === false }">
<div class="market-panel-wrap" :class="{ locked: isMarketLocked(market) }">
<span v-if="!bettingOpen && matchPhase === 'settled'" class="market-status-tag market-status-tag--settled">{{ phaseLabel }}</span>
<span v-else-if="!bettingOpen" class="market-status-tag market-status-tag--pending">{{ phaseLabel }}</span>
<span
v-else-if="!isMarketOpen(market)"
class="market-status-tag"
:class="normalizeMarketStatus(market.status) === 'CLOSED' ? 'market-status-tag--closed' : 'market-status-tag--suspended'"
>
{{ marketStatusLabel(market.status) }}
</span>
<CorrectScorePanel
v-if="isCorrectScoreMarket(market.marketType)"
:market-type="market.marketType"
:selections="market.selections"
:locked="!bettingOpen || market.allowSingle === false"
:locked="isMarketLocked(market)"
:is-selected="isSelected"
@pick="onPickSelection($event, market.id)"
/>
<MarketSelectionsPanel
v-else
compact
:locked="!bettingOpen || market.allowSingle === false"
:locked="isMarketLocked(market)"
:line-value="market.lineValue"
:selections="market.selections"
:is-selected="isSelected"
@@ -421,7 +427,8 @@ function onPickSelection(selId: string, marketId: string) {
<style scoped>
.detail-page {
margin: 0 -16px;
--detail-gutter-x: 0;
padding-top: var(--space-toolbar-top);
padding-bottom: 16px;
}
@@ -437,14 +444,12 @@ function onPickSelection(selId: string, marketId: string) {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 12px 8px;
gap: 8px;
position: sticky;
top: -12px;
z-index: 50;
margin-top: -12px;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(4px);
}
.detail-page > .sub-toolbar {
padding-top: 0;
margin-bottom: 8px;
}
.toolbar-title {
@@ -487,42 +492,59 @@ function onPickSelection(selId: string, marketId: string) {
.match-hero {
position: relative;
isolation: isolate;
margin: 0 0 10px;
margin: 0 calc(-1 * (var(--space-page-x) - var(--detail-gutter-x))) 12px;
padding: 14px 12px 16px;
overflow: hidden;
border-radius: var(--radius);
background: var(--gradient-card);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: var(--shadow-card);
}
.match-hero::before {
content: '';
position: absolute;
top: 0;
left: 10%;
right: 10%;
height: 1px;
background: var(--gradient-card-shine);
pointer-events: none;
z-index: 2;
}
.match-hero--phase {
opacity: 0.98;
}
/* ── hero status tag (top-right corner) ── */
/* ── hero status tag (top-left ribbon) ── */
.status-tag {
position: absolute;
top: 0;
right: 0;
left: 0;
right: auto;
z-index: 5;
font-size: 11px;
font-weight: 800;
padding: 4px 14px;
border-radius: 0 6px 0 10px;
font-size: 10px;
font-weight: 600;
padding: 4px 12px 4px 10px;
border-radius: 0 0 10px 0;
line-height: 1.3;
white-space: nowrap;
letter-spacing: 0.02em;
letter-spacing: 0;
}
.status-tag--settled {
background: linear-gradient(180deg, #2a2a3a 0%, #1a1a28 100%);
color: #8a9ab8;
border-bottom: 1px solid rgba(120, 140, 180, 0.3);
border-left: 1px solid rgba(120, 140, 180, 0.3);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 20, 40, 0.75) 100%);
color: var(--text-muted);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.status-tag--pending {
background: linear-gradient(180deg, #3a3a2a 0%, #28251a 100%);
color: #c8a84e;
border-bottom: 1px solid rgba(200, 168, 78, 0.3);
border-left: 1px solid rgba(200, 168, 78, 0.3);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(10, 53, 88, 0.6) 100%);
color: var(--text-muted);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
/* ── market panel smaller status tag ── */
@@ -548,10 +570,24 @@ function onPickSelection(selId: string, marketId: string) {
}
.market-status-tag--pending {
background: linear-gradient(180deg, #3a3a2a 0%, #28251a 100%);
color: #c8a84e;
border-bottom: 1px solid rgba(200, 168, 78, 0.3);
border-left: 1px solid rgba(200, 168, 78, 0.3);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(0, 51, 102, 0.95) 100%);
color: var(--primary-light);
border-bottom: 1px solid var(--border-gold-soft);
border-left: 1px solid var(--border-gold-soft);
}
.market-status-tag--suspended {
background: linear-gradient(180deg, rgba(240, 180, 41, 0.28) 0%, rgba(120, 80, 10, 0.92) 100%);
color: #ffe08a;
border-bottom: 1px solid rgba(240, 180, 41, 0.45);
border-left: 1px solid rgba(240, 180, 41, 0.45);
}
.market-status-tag--closed {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(40, 40, 55, 0.95) 100%);
color: var(--text-muted);
border-bottom: 1px solid rgba(120, 140, 180, 0.3);
border-left: 1px solid rgba(120, 140, 180, 0.3);
}
.market-panel-wrap {
@@ -577,20 +613,20 @@ function onPickSelection(selId: string, marketId: string) {
position: relative;
z-index: 2;
margin: 8px 0 0;
font-size: 28px;
font-weight: 900;
color: #fff;
font-size: 24px;
font-weight: 700;
color: var(--text);
text-align: center;
letter-spacing: 0.06em;
letter-spacing: 0.02em;
}
.result-stats-section {
margin: 0 10px 12px;
padding: 12px;
border: 1px solid rgba(212, 175, 55, 0.22);
border-radius: 8px;
background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
margin: 0 calc(-1 * (var(--space-page-x) - var(--detail-gutter-x))) 12px;
padding: var(--space-card);
border: 1px solid var(--border-gold-soft);
border-radius: var(--radius-sm);
background: var(--bg-card);
box-shadow: var(--shadow);
}
.result-stats-head {
@@ -605,8 +641,8 @@ function onPickSelection(selId: string, marketId: string) {
margin: 0;
font-size: 14px;
line-height: 1.2;
font-weight: 900;
color: var(--primary-light);
font-weight: 600;
color: var(--text);
}
.result-stats-head span {
@@ -633,8 +669,8 @@ function onPickSelection(selId: string, marketId: string) {
gap: 8px;
padding: 8px 10px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--bg-body);
border: 1px solid var(--border);
}
.result-stat-label {
@@ -684,138 +720,30 @@ function onPickSelection(selId: string, marketId: string) {
max-width: 100%;
}
/* VS arena — same as HomeView */
.vs-arena {
position: relative;
flex-shrink: 0;
width: 140px;
height: 126px;
display: flex;
align-items: center;
justify-content: center;
}
.hz-lightning {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: none;
overflow: visible;
}
.hz-path {
fill: none;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 0 4px rgba(120, 210, 255, 0.95)) drop-shadow(0 0 8px rgba(255, 180, 80, 0.55));
opacity: 0;
}
.hz-path-main {
animation: hz-strike-main 2.6s ease-in-out infinite;
}
.hz-path-sub {
stroke-width: 1.6;
animation: hz-strike-sub 2.6s ease-in-out infinite;
animation-delay: 0.12s;
}
.hz-beam {
position: absolute;
left: 0;
right: 0;
top: 50%;
height: 2px;
transform: translateY(-50%);
pointer-events: none;
z-index: 1;
background: linear-gradient(
90deg,
rgba(94, 184, 255, 0) 0%,
rgba(184, 236, 255, 0.95) 28%,
#fff 50%,
rgba(255, 208, 128, 0.95) 72%,
rgba(255, 144, 64, 0) 100%
);
opacity: 0;
filter: blur(0.4px);
animation: hz-beam-flash 2.6s ease-in-out infinite;
}
.vs-img {
position: relative;
z-index: 0;
width: 126px;
height: auto;
object-fit: contain;
}
@keyframes hz-strike-main {
0%, 72%, 100% { opacity: 0; }
74% { opacity: 1; }
75% { opacity: 0.25; }
76% { opacity: 0.95; }
78% { opacity: 0; }
}
@keyframes hz-strike-sub {
0%, 74%, 100% { opacity: 0; }
76% { opacity: 0.85; }
77% { opacity: 0.2; }
78% { opacity: 0.7; }
80% { opacity: 0; }
}
@keyframes hz-beam-flash {
0%, 71%, 100% { opacity: 0; transform: translateY(-50%) scaleX(0.6); }
73% { opacity: 0.85; transform: translateY(-50%) scaleX(1); }
75% { opacity: 0.15; transform: translateY(-50%) scaleX(0.95); }
76% { opacity: 0.75; transform: translateY(-50%) scaleX(1); }
78% { opacity: 0; transform: translateY(-50%) scaleX(1.05); }
}
@keyframes vs-glow {
0%, 100% {
opacity: 0.82;
filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.3));
}
50% {
opacity: 1;
filter: drop-shadow(0 0 3px rgba(255, 230, 140, 0.7)) drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}
}
@media (prefers-reduced-motion: reduce) {
.hz-path, .hz-beam { animation: none; opacity: 0; }
}
.markets-section {
padding: 0 10px 8px;
margin: 0 calc(-1 * (var(--space-page-x) - var(--detail-gutter-x)));
padding: 0 0 12px;
}
.market-list {
display: flex;
flex-direction: column;
gap: 6px;
padding: 4px 0;
gap: 10px;
padding: 6px 0;
}
.market-group {
border-radius: 8px;
border: 1px solid #252525;
background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg-card);
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.35);
box-shadow: var(--shadow);
transition: border-color 0.2s, box-shadow 0.2s;
}
.market-group.open {
border-color: rgba(212, 175, 55, 0.25);
box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08);
border-color: var(--border-gold-soft);
box-shadow: none;
}
.market-group :deep(.row) {
@@ -833,7 +761,7 @@ function onPickSelection(selId: string, marketId: string) {
padding: 9px;
border-radius: 4px;
border: 1px solid var(--border-gold-soft);
background: rgba(212, 175, 55, 0.1);
background: var(--surface-accent);
color: var(--primary-light);
font-size: 13px;
font-weight: 800;
@@ -854,14 +782,14 @@ function onPickSelection(selId: string, marketId: string) {
/* ── 我的投注 ── */
.my-bets-section {
margin: 0 calc(-1 * (var(--space-page-x) - var(--detail-gutter-x))) 12px;
padding: 0 12px;
margin-bottom: 12px;
}
.my-bets-title {
font-size: 14px;
font-weight: 700;
color: #ccc;
color: var(--text-muted);
margin: 0 0 8px;
}
@@ -872,16 +800,16 @@ function onPickSelection(selId: string, marketId: string) {
}
.my-bet-card {
background: #1c1c1c;
border: 1px solid #2e2e2e;
border-radius: 8px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 12px;
cursor: pointer;
transition: background 0.15s;
}
.my-bet-card:active {
background: #252525;
background: var(--bg-hover);
}
.bet-header {
@@ -912,7 +840,7 @@ function onPickSelection(selId: string, marketId: string) {
.bet-status-won {
background: rgba(61, 184, 101, 0.15);
color: #3db865;
color: #2ECC71;
}
.bet-status-lost {
@@ -933,7 +861,7 @@ function onPickSelection(selId: string, marketId: string) {
.bet-stake {
font-size: 11px;
color: #888;
color: var(--text-muted);
}
.bet-return {

View File

@@ -112,7 +112,7 @@ const pullIndicatorStyle = () => ({
</div>
<template v-else>
<BetStatsPanel :items="items" />
<BetStatsPanel class="stats-panel" :items="items" />
<div class="filter-tabs">
<button
@@ -128,7 +128,9 @@ const pullIndicatorStyle = () => ({
</div>
<template v-if="items.length">
<div class="bet-list">
<BetHistoryCard v-for="bet in items" :key="bet.betNo" :bet="bet" />
</div>
<div ref="sentinel" class="sentinel" />
@@ -151,6 +153,16 @@ const pullIndicatorStyle = () => ({
padding-bottom: 24px;
}
.stats-panel {
margin-bottom: 10px;
}
.bet-list {
display: flex;
flex-direction: column;
gap: var(--space-section);
}
.pull-indicator {
display: flex;
align-items: center;
@@ -161,8 +173,8 @@ const pullIndicatorStyle = () => ({
.filter-tabs {
display: flex;
gap: 6px;
margin-bottom: 12px;
gap: 8px;
margin-bottom: var(--space-section);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
@@ -172,20 +184,21 @@ const pullIndicatorStyle = () => ({
.filter-tab {
flex-shrink: 0;
padding: 7px 14px;
padding: 8px 16px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
font-weight: 600;
color: var(--text-muted);
background: #141414;
border: 1px solid #2a2a2a;
transition: all 0.2s;
background: var(--bg-card);
border: 1px solid var(--border);
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-tab.active {
color: var(--primary-light);
background: rgba(212, 175, 55, 0.1);
border-color: var(--border-gold-soft);
color: var(--text);
background: var(--surface-accent);
border-color: var(--primary);
font-weight: 700;
}
.state {
@@ -217,7 +230,7 @@ const pullIndicatorStyle = () => ({
.end-hint {
text-align: center;
font-size: 12px;
color: #555;
color: var(--text-muted);
font-weight: 600;
padding: 16px 0 4px;
letter-spacing: 0.03em;

View File

@@ -185,7 +185,7 @@ function back() {
<GoldSpinner v-if="spinning" :size="28" :progress="progress" :active="spinning" />
</div>
<header class="page-head">
<header class="page-head sub-toolbar">
<button type="button" class="back-btn" @click="back"> {{ t('profile.back') }}</button>
<h2 class="page-title">{{ t('profile.edit') }}</h2>
</header>
@@ -308,7 +308,7 @@ function back() {
<style scoped>
.edit-page {
padding: 8px 0 20px;
padding: 0 0 20px;
display: flex;
flex-direction: column;
gap: 12px;
@@ -366,7 +366,7 @@ function back() {
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(145deg, #2a2210, #141008);
background: var(--gradient-card);
}
.avatar-img {
@@ -380,14 +380,14 @@ function back() {
padding: 7px 18px;
border-radius: 999px;
border: 1px solid var(--border-gold-soft);
background: rgba(212, 175, 55, 0.08);
background: var(--surface-accent);
color: var(--primary-light);
font-size: 13px;
font-weight: 700;
}
.form-card {
padding: 16px;
padding: var(--space-card);
}
.section-title {
@@ -471,7 +471,7 @@ function back() {
border: none;
border-left: 1px solid var(--border);
border-radius: 0 6px 6px 0;
background: rgba(212, 175, 55, 0.06);
background: var(--surface-accent);
color: var(--primary-light);
font-size: 11px;
font-weight: 700;
@@ -505,7 +505,7 @@ label {
font-weight: 500;
border-radius: 6px;
border: 1px solid var(--border);
background: #0a0a0a;
background: var(--bg-input);
color: var(--text);
transition: border-color 0.2s;
}
@@ -513,19 +513,19 @@ label {
.field-input:focus {
outline: none;
border-color: var(--border-gold-soft);
box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
-webkit-text-fill-color: var(--text);
box-shadow: 0 0 0 1000px #0a0a0a inset;
box-shadow: 0 0 0 1000px var(--bg-input) inset;
border: 1px solid var(--border);
}
.field-input::placeholder {
color: #555;
color: var(--neutral);
}
.readonly {

View File

@@ -1,9 +1,8 @@
<script setup lang="ts">
import { ref, onMounted, onActivated, computed } from 'vue';
import { ref, onMounted, onActivated } from 'vue';
import { useRouter, RouterLink } from 'vue-router';
import { useI18n } from 'vue-i18n';
import api from '../api';
import { formatMoney } from '../utils/localeDisplay';
import LocaleFlag from '../components/LocaleFlag.vue';
import { useAuthStore } from '../stores/auth';
import { useAppLocale } from '../composables/useAppLocale';
@@ -11,7 +10,8 @@ import { usePlayerProfile } from '../composables/usePlayerProfile';
import GoldSpinner from '../components/GoldSpinner.vue';
import { usePullToRefresh } from '../composables/usePullToRefresh';
import { parseCashbackApiData, sumCashbackAmount } from '../utils/cashback';
import walletBg from '../assets/images/wallet-bg.webp';
import { sumCashbackFromStats } from '../utils/walletStats';
import WalletBalanceCard from '../components/WalletBalanceCard.vue';
const { t, locale } = useI18n();
const router = useRouter();
@@ -49,14 +49,7 @@ async function fetchCashbackTotal() {
// Fallback: sum wallet cashback credits when batch detail API is unavailable.
try {
const { data } = await api.get('/player/wallet/transactions/stats');
const byType = data.data?.byType ?? [];
let sum = 0;
for (const g of byType) {
if (['CASHBACK', 'CASHBACK_DEPOSIT'].includes(g.transactionType?.toUpperCase())) {
sum += Math.abs(parseFloat(g.totalAmount ?? '0'));
}
}
cashbackTotal.value = sum.toString();
cashbackTotal.value = sumCashbackFromStats(data.data).toString();
} catch {
// Keep default value
}
@@ -88,19 +81,6 @@ function logout() {
auth.logout();
router.push('/');
}
const balanceDisplay = computed(() =>
formatMoney(profileRaw.value?.wallet?.availableBalance, locale.value),
);
const balanceAmountClass = computed(() => {
const len = balanceDisplay.value.length;
if (len <= 10) return 'balance-amount--xl';
if (len <= 13) return 'balance-amount--lg';
if (len <= 16) return 'balance-amount--md';
if (len <= 19) return 'balance-amount--sm';
return 'balance-amount--xs';
});
</script>
<template>
@@ -122,49 +102,14 @@ const balanceAmountClass = computed(() => {
</div>
<template v-else>
<div class="wallet-banner">
<img class="wallet-banner-img" :src="walletBg" alt="" />
<div class="wallet-banner-scrim" aria-hidden="true" />
<WalletBalanceCard
:available-balance="profileRaw?.wallet?.availableBalance"
:cashback-total="cashbackTotal"
:frozen-balance="profileRaw?.wallet?.frozenBalance"
/>
<div class="card-overlay">
<div class="bank-card-top">
<div class="bank-card-top-left">
<img src="/logo.png" alt="TheBet365" class="brand-logo" />
<div class="bank-card-brand-text">
<span class="brand-name">THEBET365</span>
<span class="bank-card-type">MEMBER</span>
</div>
</div>
<RouterLink to="/wallet/recharge" class="recharge-btn">
<span class="recharge-icon">+</span>
<span>{{ t('recharge.title') }}</span>
</RouterLink>
</div>
<div class="bank-card-balance">
<span class="bank-card-label">当前余额</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-holder">{{ profileRaw?.username }}</span>
</div>
<div class="bank-card-field bank-card-field--center">
<span class="bank-card-label">累计返水</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-stat">{{ formatMoney(profileRaw?.wallet?.frozenBalance, locale) }}</span>
</div>
</div>
</div>
</div>
<section class="settings-group">
<RouterLink to="/wallet/detail" class="settings-cell settings-cell--gold-entry">
<section class="settings-group settings-group--wallet">
<RouterLink to="/wallet/detail" class="settings-cell settings-cell--accent-entry">
<span class="cell-main">
<svg class="cell-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
<path d="M9 5H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V9" />
@@ -175,7 +120,7 @@ const balanceAmountClass = computed(() => {
<span class="cell-chevron" aria-hidden="true"></span>
</RouterLink>
<RouterLink to="/profile/cashbacks" class="settings-cell settings-cell--gold-entry">
<RouterLink to="/profile/cashbacks" class="settings-cell settings-cell--accent-entry">
<span class="cell-main">
<svg class="cell-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
<circle cx="12" cy="12" r="8" />
@@ -186,7 +131,7 @@ const balanceAmountClass = computed(() => {
<span class="cell-chevron" aria-hidden="true"></span>
</RouterLink>
<RouterLink to="/wallet/recharge/history" class="settings-cell settings-cell--gold-entry">
<RouterLink to="/wallet/recharge/history" class="settings-cell settings-cell--accent-entry">
<span class="cell-main">
<svg class="cell-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
<path d="M12 8v8M8 12h8" />
@@ -196,7 +141,9 @@ const balanceAmountClass = computed(() => {
</span>
<span class="cell-chevron" aria-hidden="true"></span>
</RouterLink>
</section>
<section class="settings-group settings-group--profile">
<RouterLink to="/profile/edit" class="settings-cell">
<span class="cell-main">
<svg class="cell-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true">
@@ -311,238 +258,36 @@ const balanceAmountClass = computed(() => {
}
.retry-btn:active {
background: rgba(200, 168, 78, 0.15);
background: var(--surface-active);
}
.wallet-banner {
position: relative;
width: 100%;
margin-bottom: 12px;
aspect-ratio: 2 / 1;
border-radius: 16px;
overflow: hidden;
box-shadow:
0 3px 10px rgba(0, 0, 0, 0.28),
0 1px 3px rgba(0, 0, 0, 0.18);
}
.wallet-banner::after {
content: '';
position: absolute;
inset: 0;
z-index: 1;
border-radius: inherit;
box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.22);
pointer-events: none;
}
.wallet-banner-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
object-fit: cover;
object-position: center center;
transform: scale(1.12);
transform-origin: center center;
filter: brightness(0.86);
pointer-events: none;
user-select: none;
}
.wallet-banner-scrim {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 0.18) 42%,
rgba(0, 0, 0, 0.46) 100%
);
}
.card-overlay {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
flex-direction: column;
padding: 14px 16px 12px;
line-height: 1.3;
-webkit-font-smoothing: antialiased;
}
.bank-card-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-shrink: 0;
}
.bank-card-top-left {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.brand-logo {
width: 22px;
height: 22px;
flex-shrink: 0;
object-fit: contain;
}
.bank-card-brand-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.brand-name {
font-size: 11px;
font-weight: 700;
color: #fff;
letter-spacing: 0.14em;
line-height: 1;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.bank-card-type {
font-size: 8px;
font-weight: 800;
letter-spacing: 0.14em;
color: rgba(212, 175, 55, 0.65);
font-style: italic;
line-height: 1;
}
.bank-card-label {
display: block;
font-size: 9px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.82);
line-height: 1.3;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.recharge-btn {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 3px;
padding: 5px 10px;
border-radius: 14px;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(212, 175, 55, 0.35);
color: var(--primary-light);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
line-height: 1;
text-decoration: none;
backdrop-filter: blur(6px);
transition: background 0.15s ease;
}
.recharge-btn:active {
background: rgba(212, 175, 55, 0.15);
}
.recharge-icon {
font-size: 12px;
font-weight: 700;
line-height: 1;
}
.bank-card-balance {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 0;
padding: 2px 0;
gap: 5px;
}
.bank-card-number {
margin: 0;
font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
font-weight: 700;
font-style: normal;
font-variant-numeric: tabular-nums;
color: var(--primary-light);
line-height: 1.1;
letter-spacing: 0.04em;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.balance-amount {
margin: 0;
}
.balance-amount--xl { font-size: clamp(24px, 6.2vw, 30px); }
.balance-amount--lg { font-size: clamp(21px, 5.6vw, 26px); }
.balance-amount--md { font-size: clamp(18px, 4.9vw, 22px); }
.balance-amount--sm { font-size: clamp(16px, 4.2vw, 19px); }
.balance-amount--xs { font-size: clamp(14px, 3.6vw, 16px); }
.bank-card-footer {
flex-shrink: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
padding-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bank-card-field {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.bank-card-field--center { text-align: center; }
.bank-card-field--right { text-align: right; }
.bank-card-holder {
font-size: 12px;
font-weight: 700;
color: #fff;
text-transform: uppercase;
letter-spacing: 0.06em;
line-height: 1.2;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
word-break: break-all;
}
.bank-card-stat {
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: #fff;
line-height: 1.2;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.settings-group {
background: var(--bg-card);
border: 1px solid var(--border);
position: relative;
background: var(--gradient-card);
border: 1px solid rgba(255, 255, 255, 0.11);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-card-sm);
}
.settings-group::before {
content: '';
position: absolute;
top: 0;
left: 10%;
right: 10%;
height: 1px;
background: var(--gradient-card-shine);
pointer-events: none;
z-index: 1;
}
.settings-group--wallet {
margin-bottom: var(--space-section);
}
.settings-group--profile {
margin-bottom: 0;
}
.settings-cell {
@@ -566,33 +311,29 @@ const balanceAmountClass = computed(() => {
}
.settings-cell:active {
background: rgba(255, 255, 255, 0.03);
background: var(--bg-hover);
}
.settings-cell--gold-entry {
.settings-cell--accent-entry {
position: relative;
min-height: 50px;
border-color: rgba(212, 175, 55, 0.18);
border-bottom-color: rgba(212, 175, 55, 0.18);
background:
linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(20, 20, 20, 0.65) 46%, rgba(212, 175, 55, 0.04));
box-shadow:
inset 1px 0 0 rgba(212, 175, 55, 0.22),
inset 0 1px 0 rgba(255, 244, 200, 0.05);
border-color: var(--border);
background: transparent;
box-shadow: none;
}
.settings-cell--gold-entry:active {
background:
linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(20, 20, 20, 0.74) 46%, rgba(212, 175, 55, 0.06));
.settings-cell--accent-entry:active {
background: var(--surface-active);
}
.settings-cell--gold-entry .cell-label {
color: #f4dc8b;
font-weight: 800;
.settings-cell--accent-entry .cell-label {
color: var(--text);
font-weight: 600;
}
.settings-cell--gold-entry .cell-chevron {
color: rgba(240, 216, 117, 0.78);
.settings-cell--accent-entry .cell-chevron {
color: var(--text-muted);
opacity: 0.75;
}
.settings-cell--stack {
@@ -618,7 +359,7 @@ const balanceAmountClass = computed(() => {
color: var(--text-muted);
}
.settings-cell--gold-entry .cell-icon {
.settings-cell--accent-entry .cell-icon {
color: var(--primary-light);
}
@@ -668,23 +409,23 @@ const balanceAmountClass = computed(() => {
gap: 4px;
min-height: 34px;
padding: 0 6px;
border-radius: 6px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: #0a0a0a;
background: var(--bg-body);
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
}
.lang-opt.active {
border-color: var(--border-gold-soft);
color: var(--primary-light);
background: rgba(212, 175, 55, 0.1);
border-color: var(--primary);
color: var(--text);
background: var(--surface-accent);
}
.logout-btn {
width: 100%;
margin-top: 12px;
margin-top: var(--space-section);
min-height: 44px;
padding: 0 16px;
border-radius: var(--radius);

View File

@@ -226,11 +226,11 @@ function auditStepCount(order: DepositOrder) {
<template>
<div class="recharge-history-page">
<div class="page-header">
<header class="page-header sub-toolbar">
<button class="back-btn" @click="goBack"></button>
<h2>{{ t('recharge.history_title') }}</h2>
<button class="recharge-btn" @click="goRecharge">+ {{ t('recharge.title') }}</button>
</div>
</header>
<div
class="pull-indicator"
@@ -409,25 +409,26 @@ function auditStepCount(order: DepositOrder) {
</template>
<style scoped>
.recharge-history-page { padding: 0 16px 24px; }
.page-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.recharge-history-page { padding: 0 0 24px; }
.page-header { display: flex; align-items: center; justify-content: space-between; }
.page-header h2 { margin: 0; font-size: 17px; font-weight: 700; }
.back-btn { background: none; border: none; color: var(--primary-light); font-size: 24px; cursor: pointer; padding: 0 8px; }
.recharge-btn { background: none; border: none; color: var(--primary-light); font-size: 13px; cursor: pointer; font-weight: 600; }
.state { display: flex; justify-content: center; padding: 48px; }
.empty { text-align: center; color: #666; padding: 48px 16px; font-weight: 600; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 16px; font-weight: 600; }
.pull-indicator { display: flex; align-items: center; justify-content: center; overflow: hidden; transition: height 0.15s ease; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
background: linear-gradient(135deg, #1a1810 0%, #1f1b0e 40%, #16140c 100%);
border: 1px solid rgba(212, 175, 55, 0.2);
border-radius: 12px;
background: var(--gradient-card);
border: 1px solid var(--border-gold-soft);
border-radius: var(--radius);
padding: 16px;
position: relative;
overflow: hidden;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
box-shadow: var(--shadow);
}
.order-card:active {
opacity: 0.92;
@@ -437,57 +438,54 @@ function auditStepCount(order: DepositOrder) {
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.order-card.rejected {
background: #141414;
border-color: rgba(245, 108, 108, 0.22);
background: var(--bg-card);
border-color: rgba(255, 255, 255, 0.35);
}
.order-card.rejected::before {
background: linear-gradient(90deg, transparent, rgba(245, 108, 108, 0.35), transparent);
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.order-card.rejected .order-amount {
background: none;
-webkit-background-clip: unset;
background-clip: unset;
color: #bbb;
color: var(--text-muted);
}
.order-card.rejected .info-label {
color: #888;
color: var(--neutral);
}
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.method-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.method-badge.bank { background: rgba(30, 58, 95, 0.6); color: #66b1ff; }
.method-badge.usdt { background: rgba(26, 58, 42, 0.6); color: #67c23a; }
.status-badge { font-size: 12px; font-weight: 700; }
.status-pending { color: #e6a23c; }
.status-approved { color: #67c23a; }
.status-rejected { color: #f56c6c; }
.status-pending { color: var(--primary-light); }
.status-approved { color: var(--success); }
.status-rejected { color: var(--primary); }
.order-body { }
.order-amount {
font-size: 22px;
font-weight: 900;
margin-bottom: 4px;
background: linear-gradient(135deg, #f0d060, #d4a830);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
color: var(--primary-light);
}
.approved-amount { font-size: 12px; color: #67c23a; margin-bottom: 6px; font-weight: 600; }
.approved-amount { font-size: 12px; color: var(--success); margin-bottom: 6px; font-weight: 600; }
.order-info-row { margin-bottom: 8px; }
.info-label { font-size: 13px; color: rgba(212, 175, 55, 0.7); font-weight: 600; }
.info-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.order-times { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.time-row { display: flex; justify-content: space-between; align-items: center; }
.time-label { font-size: 11px; color: #888; }
.time-value { font-size: 11px; color: #aaa; font-variant-numeric: tabular-nums; }
.time-label { font-size: 11px; color: var(--text-muted); }
.time-value { font-size: 11px; color: var(--neutral); font-variant-numeric: tabular-nums; }
.order-remark {
font-size: 12px;
color: rgba(212, 175, 55, 0.8);
background: rgba(212, 175, 55, 0.06);
color: var(--text-muted);
background: var(--surface-accent);
padding: 6px 10px;
border-radius: 6px;
margin-top: 6px;
border-left: 2px solid rgba(212, 175, 55, 0.3);
border-left: 2px solid var(--border-gold-soft);
line-height: 1.45;
word-break: break-word;
}
@@ -510,11 +508,11 @@ function auditStepCount(order: DepositOrder) {
gap: 8px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid rgba(212, 175, 55, 0.12);
border-top: 1px solid var(--border);
}
.card-detail-summary {
font-size: 11px;
color: rgba(212, 175, 55, 0.65);
color: var(--text-muted);
font-weight: 600;
}
.card-detail-link {
@@ -550,7 +548,7 @@ function auditStepCount(order: DepositOrder) {
.end-hint {
text-align: center;
font-size: 12px;
color: #555;
color: var(--neutral);
font-weight: 600;
padding: 16px 0 4px;
letter-spacing: 0.03em;
@@ -560,7 +558,7 @@ function auditStepCount(order: DepositOrder) {
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0, 0, 0, 0.48);
background: rgba(0, 34, 68, 0.72);
display: flex;
align-items: flex-end;
justify-content: center;
@@ -573,12 +571,14 @@ function auditStepCount(order: DepositOrder) {
max-width: 480px;
max-height: min(88vh, 720px);
overflow-y: auto;
background: #141414;
border: 1px solid #2a2a2a;
background: var(--dropdown-bg);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border: 1px solid var(--border);
border-bottom: none;
border-radius: 14px 14px 0 0;
padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px));
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.detail-close {
@@ -590,7 +590,7 @@ function auditStepCount(order: DepositOrder) {
border: none;
border-radius: 50%;
background: transparent;
color: #777;
color: var(--text-muted);
font-size: 13px;
cursor: pointer;
line-height: 1;
@@ -600,15 +600,17 @@ function auditStepCount(order: DepositOrder) {
margin: 0 28px 12px 0;
font-size: 15px;
font-weight: 600;
color: #e8e8e8;
color: var(--text);
}
.detail-summary {
margin-bottom: 14px;
padding: 12px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid #222;
background: var(--bg-body);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border: 1px solid var(--border);
}
.detail-summary-head {
@@ -622,13 +624,13 @@ function auditStepCount(order: DepositOrder) {
font-size: 22px;
font-weight: 700;
margin-bottom: 4px;
color: var(--primary-light, #d4af37);
color: var(--primary-light);
letter-spacing: -0.02em;
}
.detail-method-name {
font-size: 12px;
color: #999;
color: var(--text-muted);
font-weight: 500;
margin-bottom: 8px;
}
@@ -643,13 +645,13 @@ function auditStepCount(order: DepositOrder) {
.detail-label {
font-size: 12px;
color: #888;
color: var(--text-muted);
flex-shrink: 0;
}
.detail-value {
font-size: 12px;
color: #ccc;
color: var(--text);
text-align: right;
word-break: break-word;
}
@@ -657,12 +659,12 @@ function auditStepCount(order: DepositOrder) {
.detail-summary .order-remark {
margin-top: 8px;
font-size: 11px;
color: #999;
color: var(--text-muted);
background: transparent;
padding: 6px 0 0;
border-radius: 0;
border: none;
border-top: 1px solid #222;
border-top: 1px solid var(--border);
line-height: 1.45;
word-break: break-word;
}
@@ -670,12 +672,12 @@ function auditStepCount(order: DepositOrder) {
.detail-summary .reject-reason {
margin-top: 8px;
font-size: 11px;
color: #b08888;
color: var(--primary-light);
background: transparent;
padding: 6px 0 0;
border-radius: 0;
border: none;
border-top: 1px solid rgba(245, 108, 108, 0.15);
border-top: 1px solid rgba(255, 255, 255, 0.25);
line-height: 1.45;
word-break: break-word;
}
@@ -688,14 +690,14 @@ function auditStepCount(order: DepositOrder) {
.detail-audit {
margin-top: 2px;
padding-top: 12px;
border-top: 1px solid #222;
border-top: 1px solid var(--border);
}
.detail-audit-title {
margin: 0 0 10px;
font-size: 12px;
font-weight: 600;
color: #888;
color: var(--text-muted);
letter-spacing: 0.02em;
}
@@ -723,7 +725,7 @@ function auditStepCount(order: DepositOrder) {
width: 5px;
height: 5px;
border-radius: 50%;
background: #555;
background: var(--neutral);
flex-shrink: 0;
}
@@ -732,7 +734,7 @@ function auditStepCount(order: DepositOrder) {
width: 1px;
min-height: 10px;
margin: 3px 0;
background: #2a2a2a;
background: var(--border);
}
.audit-step-body {
@@ -755,13 +757,13 @@ function auditStepCount(order: DepositOrder) {
.audit-step-title {
font-size: 12px;
font-weight: 600;
color: #ccc;
color: var(--text);
line-height: 1.35;
}
.audit-step-time {
font-size: 10px;
color: #666;
color: var(--neutral);
font-variant-numeric: tabular-nums;
white-space: nowrap;
flex-shrink: 0;
@@ -770,7 +772,7 @@ function auditStepCount(order: DepositOrder) {
.audit-step-actor {
margin: 2px 0 0;
font-size: 11px;
color: #999;
color: var(--text-muted);
line-height: 1.4;
}
@@ -778,14 +780,14 @@ function auditStepCount(order: DepositOrder) {
margin: 3px 0 0;
font-size: 11px;
font-weight: 500;
color: #7eb87a;
color: var(--success);
line-height: 1.4;
}
.audit-step-note {
margin: 4px 0 0;
font-size: 11px;
color: #888;
color: var(--text-muted);
line-height: 1.45;
word-break: break-word;
}
@@ -802,36 +804,36 @@ function auditStepCount(order: DepositOrder) {
}
.audit-step-box--reject {
background: transparent;
border: 1px solid rgba(245, 108, 108, 0.22);
background: var(--bg-body);
border: 1px solid rgba(255, 255, 255, 0.25);
}
.audit-step-box-label {
font-size: 10px;
font-weight: 500;
color: #c07070;
color: var(--primary-light);
letter-spacing: 0.01em;
}
.audit-step-box-text {
font-size: 11px;
color: #b08888;
color: var(--text-muted);
}
.audit-step--submitted .audit-dot {
background: #c9a227;
background: var(--primary-light);
}
.audit-step--approved .audit-dot {
background: #5fad5a;
background: var(--success);
}
.audit-step--rejected .audit-dot {
background: #d06060;
background: var(--primary);
}
.audit-step--revoked .audit-dot {
background: #777;
background: var(--neutral);
}
.audit-step--reopened .audit-dot {
background: #c9a227;
background: var(--primary-light);
}
.modal-reapply-btn {

View File

@@ -233,11 +233,11 @@ onMounted(fetchMethods);
<template>
<div class="recharge-page">
<div class="page-header">
<header class="page-header sub-toolbar">
<button class="back-btn" @click="goBack"></button>
<h2>{{ t('recharge.title') }}</h2>
<button class="history-btn" @click="goHistory">{{ t('recharge.history') }}</button>
</div>
</header>
<div v-if="loading" class="state">
<GoldSpinner :size="36" />
@@ -362,11 +362,10 @@ onMounted(fetchMethods);
</template>
<style scoped>
.recharge-page { padding: 0 12px 24px; }
.recharge-page { padding: 0 0 24px; }
.page-header {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 0 12px;
}
.page-header h2 { margin: 0; font-size: 16px; font-weight: 700; }
.back-btn { background: none; border: none; color: var(--primary-light); font-size: 22px; cursor: pointer; padding: 0 6px; }
@@ -386,18 +385,28 @@ onMounted(fetchMethods);
}
.type-tabs {
display: flex; margin-bottom: 12px;
border-radius: 6px; overflow: hidden;
border: 1px solid rgba(212, 175, 55, 0.2);
display: flex;
margin-bottom: 12px;
border-radius: var(--radius-sm);
overflow: hidden;
border: 1px solid var(--border);
background: var(--bg-body);
}
.tab {
flex: 1; padding: 8px; border: none;
background: rgba(20, 20, 20, 0.8);
color: var(--text-muted); font-weight: 700; font-size: 13px;
cursor: pointer; transition: all 0.2s;
flex: 1;
padding: 8px;
border: none;
background: var(--bg-card);
color: var(--text-muted);
font-weight: 700;
font-size: 13px;
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
.tab.active {
background: var(--primary-light); color: #000;
background: var(--surface-accent);
color: var(--text);
box-shadow: inset 0 0 0 1px var(--primary);
}
.methods-list {
@@ -405,15 +414,15 @@ onMounted(fetchMethods);
}
.method-pill {
display: flex; flex-direction: column; gap: 1px;
background: rgba(20, 20, 20, 0.8);
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px; padding: 6px 12px;
text-align: left; cursor: pointer;
transition: border-color 0.15s;
}
.method-pill.selected {
border-color: var(--primary-light);
background: rgba(212, 175, 55, 0.06);
border-color: var(--primary);
background: var(--surface-accent);
}
.pill-name { font-weight: 700; font-size: 12px; color: var(--text); }
.pill-sub { font-size: 10px; color: var(--text-muted); }
@@ -434,13 +443,13 @@ onMounted(fetchMethods);
justify-content: space-between;
overflow: hidden;
background:
radial-gradient(ellipse 80% 60% at 100% 0%, rgba(212, 175, 55, 0.22), transparent 55%),
radial-gradient(ellipse 50% 50% at 0% 100%, rgba(212, 175, 55, 0.1), transparent 50%),
linear-gradient(135deg, #2a2218 0%, #1a1610 35%, #12100c 70%, #0a0908 100%);
border: 1px solid rgba(212, 175, 55, 0.35);
radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
radial-gradient(ellipse 50% 50% at 0% 100%, var(--surface-accent), transparent 50%),
var(--gradient-card);
border: 1px solid var(--border-gold-soft);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.55),
0 2px 8px rgba(212, 175, 55, 0.12),
0 8px 24px rgba(0, 0, 0, 0.35),
0 2px 8px var(--surface-accent),
inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@@ -461,7 +470,7 @@ onMounted(fetchMethods);
.bank-card-deco {
position: absolute;
border-radius: 50%;
border: 1px solid rgba(212, 175, 55, 0.12);
border: 1px solid var(--border-gold-soft);
pointer-events: none;
}
@@ -470,7 +479,7 @@ onMounted(fetchMethods);
height: 180px;
right: -60px;
bottom: -80px;
background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
background: radial-gradient(circle, var(--surface-accent), transparent 70%);
}
.bank-card-deco--2 {
@@ -478,7 +487,7 @@ onMounted(fetchMethods);
height: 100px;
right: 40px;
bottom: 20px;
border-color: rgba(212, 175, 55, 0.08);
border-color: rgba(255, 255, 255, 0.25);
}
.bank-card-top,
@@ -531,8 +540,8 @@ onMounted(fetchMethods);
width: 30px;
height: 30px;
border-radius: 8px;
border: 1px solid rgba(212, 175, 55, 0.35);
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--border-gold-soft);
background: rgba(0, 34, 68, 0.45);
color: var(--primary-light);
display: inline-flex;
align-items: center;
@@ -548,7 +557,7 @@ onMounted(fetchMethods);
.bank-card-copy:active {
opacity: 0.65;
background: rgba(212, 175, 55, 0.12);
background: var(--surface-accent);
}
.bank-card-bottom {
@@ -587,13 +596,14 @@ onMounted(fetchMethods);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.18em;
color: rgba(212, 175, 55, 0.55);
color: var(--primary-light);
font-style: italic;
}
.method-info {
background: rgba(17, 17, 17, 0.9);
border-radius: 8px; padding: 10px 12px;
background: var(--bg-body);
border-radius: var(--radius-sm);
padding: 10px 12px;
margin-bottom: 12px;
border: 1px solid var(--border);
}
@@ -624,19 +634,20 @@ onMounted(fetchMethods);
color: var(--text-muted); margin-bottom: 4px;
}
.amount-input {
width: 100%; padding: 10px; background: #111;
width: 100%; padding: 10px; background: var(--bg-input);
border: 1px solid var(--border); border-radius: 6px;
color: #fff; font-size: 16px; font-weight: 700;
color: var(--text); font-size: 16px; font-weight: 700;
box-sizing: border-box;
}
.amount-input:focus { border-color: var(--primary-light); outline: none; }
.amount-input:focus { border-color: var(--border-gold-soft); outline: none; }
.upload-area {
border: 1px dashed rgba(212, 175, 55, 0.3);
border: 1px dashed var(--border-gold-soft);
border-radius: 6px; padding: 16px;
text-align: center; position: relative;
display: flex; align-items: center; justify-content: center;
cursor: pointer;
background: var(--bg-body);
}
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-hint { font-size: 12px; color: var(--text-muted); }
@@ -652,22 +663,22 @@ onMounted(fetchMethods);
.btn-submit {
width: 100%; padding: 12px;
background: linear-gradient(135deg, #f0d060, #d4a830);
color: #000; border: none; border-radius: 6px;
background: var(--gradient-accent);
color: #fff; border: none; border-radius: 6px;
font-size: 14px; font-weight: 800;
cursor: pointer; margin-top: 8px;
box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
box-shadow: none;
}
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.success-state { text-align: center; padding: 40px 16px; }
.success-icon { font-size: 40px; color: #67c23a; margin-bottom: 10px; }
.success-state h3 { margin: 0 0 6px; font-size: 16px; }
.success-icon { font-size: 40px; color: var(--success); margin-bottom: 10px; }
.success-state h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.order-no { font-family: monospace; color: var(--primary-light); font-size: 13px; margin: 4px 0; }
.success-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.btn-primary {
background: linear-gradient(135deg, #f0d060, #d4a830);
color: #000; border: none; border-radius: 6px;
background: var(--gradient-accent);
color: #fff; border: none; border-radius: 6px;
padding: 10px 20px; font-weight: 700; font-size: 13px; cursor: pointer;
}
</style>

View File

@@ -116,7 +116,7 @@ const fieldError = () => {
<label>{{ t('auth.username') }}</label>
<input
v-model="account"
class="field-input"
class="field-input ps-gold-input"
required
autocomplete="username"
maxlength="32"
@@ -132,7 +132,7 @@ const fieldError = () => {
<PhoneCountrySelect v-model="countryIso" />
<input
v-model="phone"
class="field-input"
class="field-input ps-gold-input"
type="tel"
required
autocomplete="tel-national"
@@ -147,7 +147,7 @@ const fieldError = () => {
<div class="inline-row">
<input
v-model="smsCode"
class="field-input"
class="field-input ps-gold-input"
inputmode="numeric"
maxlength="6"
autocomplete="one-time-code"
@@ -171,17 +171,17 @@ const fieldError = () => {
<div class="field">
<label>{{ t('auth.password') }}</label>
<input v-model="password" class="field-input" type="password" required autocomplete="new-password" minlength="8" :disabled="loading" />
<input v-model="password" class="field-input ps-gold-input" type="password" required autocomplete="new-password" minlength="8" :disabled="loading" />
</div>
<div class="field">
<label>{{ t('auth.confirm_password') }}</label>
<input v-model="confirmPassword" class="field-input" type="password" required autocomplete="new-password" minlength="8" :disabled="loading" />
<input v-model="confirmPassword" class="field-input ps-gold-input" type="password" required autocomplete="new-password" minlength="8" :disabled="loading" />
</div>
<div class="field field-optional">
<label>{{ t('auth.invite_code') }} <span class="optional-tag">{{ t('auth.optional') }}</span></label>
<input v-model="inviteCode" class="field-input" autocomplete="off" :disabled="loading" />
<input v-model="inviteCode" class="field-input ps-gold-input" autocomplete="off" :disabled="loading" />
</div>
<p v-if="fieldError()" class="error">{{ fieldError() }}</p>
@@ -227,12 +227,31 @@ const fieldError = () => {
align-items: center;
justify-content: flex-end;
padding: 30vh 16px calc(10vh + max(20px, env(safe-area-inset-bottom)));
background-color: var(--tertiary);
background-color: var(--bg-body);
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
.login-page::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 34, 68, 0.35) 0%,
rgba(0, 34, 68, 0.78) 52%,
rgba(0, 34, 68, 0.94) 100%
);
pointer-events: none;
z-index: 0;
}
.login-page > * {
position: relative;
z-index: 1;
}
.login-form {
position: relative;
width: 100%;
@@ -240,7 +259,7 @@ const fieldError = () => {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
padding: 14px;
}
.login-form.is-busy {
@@ -257,7 +276,7 @@ const fieldError = () => {
justify-content: center;
gap: 10px;
border-radius: inherit;
background: rgba(8, 8, 8, 0.72);
background: rgba(0, 34, 68, 0.82);
backdrop-filter: blur(2px);
pointer-events: all;
}
@@ -266,7 +285,7 @@ const fieldError = () => {
margin: 0;
font-size: 13px;
font-weight: 700;
color: rgba(240, 216, 117, 0.95);
color: var(--primary-light);
letter-spacing: 0.04em;
}
@@ -314,19 +333,19 @@ label {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #0d0d0d;
background: var(--bg-input);
color: var(--text);
font-size: 14px;
font-family: inherit;
}
.field-input::placeholder {
color: rgba(255, 255, 255, 0.32);
color: rgba(240, 230, 211, 0.4);
}
.field-input:focus {
outline: none;
border-color: #555;
border-color: var(--border-gold-soft);
}
.inline-row {
@@ -346,7 +365,7 @@ label {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #141414;
background: var(--bg-card);
color: var(--text);
font-size: 11px;
font-weight: 600;
@@ -354,6 +373,13 @@ label {
cursor: pointer;
}
.btn-secondary:not(:disabled).active,
.btn-secondary:active:not(:disabled) {
border-color: var(--primary);
background: var(--surface-accent);
color: var(--text);
}
.btn-secondary:disabled {
opacity: 0.45;
cursor: not-allowed;

View File

@@ -153,9 +153,9 @@ const pullIndicatorStyle = () => ({
<template>
<div class="wallet-detail-page">
<div class="top-bar">
<header class="top-bar sub-toolbar">
<button class="back-btn" type="button" @click="router.back()">&#x2039; {{ t('history.back') }}</button>
</div>
</header>
<div
class="pull-indicator"
@@ -170,7 +170,7 @@ const pullIndicatorStyle = () => ({
</div>
<template v-else>
<WalletStatsPanel :items="items" :cashback-total="cashbackTotal" />
<WalletStatsPanel class="stats-panel" :items="items" :cashback-total="cashbackTotal" />
<div class="filter-tabs">
<button
@@ -193,17 +193,15 @@ const pullIndicatorStyle = () => ({
class="tx-row"
@click="goDetail(tx)"
>
<div class="tx-main">
<div class="tx-text">
<span class="tx-type">{{ txLabel(tx) }}</span>
<span v-if="txSubtitle(tx)" class="tx-summary">{{ txSubtitle(tx) }}</span>
</div>
<div class="tx-col-left">
<span class="tx-type">{{ txLabel(tx) }}</span>
<span v-if="txSubtitle(tx)" class="tx-summary">{{ txSubtitle(tx) }}</span>
<span class="tx-time">{{ new Date(tx.createdAt).toLocaleString() }}</span>
</div>
<div class="tx-col-right">
<span :class="parseFloat(tx.amount) >= 0 ? 'pos' : 'neg'">
{{ formatMoney(tx.amount, locale) }}
</span>
</div>
<div class="tx-meta">
<span class="tx-time">{{ new Date(tx.createdAt).toLocaleString() }}</span>
<span class="tx-arrow">&#x203A;</span>
</div>
</button>
@@ -231,6 +229,10 @@ const pullIndicatorStyle = () => ({
padding-bottom: 24px;
}
.stats-panel {
margin-bottom: var(--space-section);
}
.top-bar {
margin-bottom: 4px;
}
@@ -238,9 +240,9 @@ const pullIndicatorStyle = () => ({
.back-btn {
background: none;
border: none;
color: var(--primary-light, #d4af37);
color: var(--text-muted);
font-size: 15px;
font-weight: 700;
font-weight: 500;
padding: 4px 0 8px;
cursor: pointer;
display: flex;
@@ -258,8 +260,8 @@ const pullIndicatorStyle = () => ({
.filter-tabs {
display: flex;
gap: 6px;
margin-bottom: 12px;
gap: 8px;
margin-bottom: var(--space-section);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
@@ -269,20 +271,21 @@ const pullIndicatorStyle = () => ({
.filter-tab {
flex-shrink: 0;
padding: 7px 14px;
padding: 8px 16px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
font-weight: 600;
color: var(--text-muted);
background: #141414;
border: 1px solid #2a2a2a;
transition: all 0.2s;
background: var(--bg-card);
border: 1px solid var(--border);
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-tab.active {
color: var(--primary-light);
background: rgba(212, 175, 55, 0.1);
border-color: var(--border-gold-soft);
color: var(--text);
background: var(--bg-elevated);
border-color: var(--border-strong);
font-weight: 600;
}
.state {
@@ -303,14 +306,21 @@ const pullIndicatorStyle = () => ({
.tx-list {
margin-bottom: 0;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.tx-row {
display: block;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
text-align: left;
font-size: 14px;
padding: 12px 16px;
padding: 12px 14px;
border: none;
border-bottom: 1px solid var(--border);
background: transparent;
@@ -322,21 +332,22 @@ const pullIndicatorStyle = () => ({
}
.tx-row:active {
background: rgba(255, 255, 255, 0.03);
background: var(--bg-hover);
}
.tx-main {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.tx-text {
.tx-col-left {
display: flex;
flex-direction: column;
gap: 2px;
gap: 3px;
min-width: 0;
flex: 1;
}
.tx-col-right {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.tx-summary {
@@ -348,18 +359,11 @@ const pullIndicatorStyle = () => ({
text-overflow: ellipsis;
}
.tx-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4px;
}
.tx-type { font-weight: 700; color: var(--text); }
.pos { color: var(--primary-light); font-weight: 800; font-size: 15px; }
.neg { color: var(--danger); font-weight: 700; }
.tx-time { font-size: 11px; color: var(--text-muted); }
.tx-arrow { font-size: 16px; color: #555; font-weight: 700; line-height: 1; }
.tx-type { font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.pos { color: var(--success); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.neg { color: var(--text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.tx-time { font-size: 11px; color: var(--text-dim); }
.tx-arrow { font-size: 15px; color: var(--text-dim); font-weight: 400; line-height: 1; }
.sentinel {
height: 1px;
@@ -374,7 +378,7 @@ const pullIndicatorStyle = () => ({
.end-hint {
text-align: center;
font-size: 12px;
color: #555;
color: var(--text-muted);
font-weight: 600;
padding: 16px 0 4px;
letter-spacing: 0.03em;

View File

@@ -141,9 +141,9 @@ function goCashbackDetail() {
<GoldSpinner v-if="spinning" :size="28" :progress="progress" :active="spinning" />
</div>
<div class="top-bar">
<header class="top-bar sub-toolbar">
<button class="back-btn" type="button" @click="router.back()"> {{ t('history.back') }}</button>
</div>
</header>
<div v-if="loading" class="state">
<GoldSpinner :size="36" />
@@ -238,7 +238,7 @@ function goCashbackDetail() {
.back-btn {
background: none;
border: none;
color: var(--primary-light, #d4af37);
color: var(--primary-light);
font-size: 15px;
font-weight: 700;
padding: 4px 0 8px;
@@ -251,13 +251,13 @@ function goCashbackDetail() {
.state {
text-align: center;
padding: 60px 20px;
color: #666;
color: var(--text-muted);
font-size: 14px;
font-weight: 600;
}
.hero {
border-radius: 14px;
border-radius: var(--radius);
padding: 20px;
display: flex;
flex-direction: column;
@@ -265,18 +265,18 @@ function goCashbackDetail() {
gap: 6px;
margin-bottom: 12px;
text-align: center;
background: #141414;
border: 1px solid #222;
background: var(--bg-card);
border: 1px solid var(--border);
}
.hero.pos {
border-color: rgba(212, 175, 55, 0.25);
background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
border-color: rgba(46, 204, 113, 0.35);
background: linear-gradient(135deg, rgba(46, 204, 113, 0.16), rgba(46, 204, 113, 0.05));
}
.hero.neg {
border-color: rgba(224, 80, 80, 0.2);
background: linear-gradient(135deg, rgba(224, 80, 80, 0.1), rgba(224, 80, 80, 0.03));
border-color: rgba(255, 255, 255, 0.35);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}
.hero-type {
@@ -284,13 +284,13 @@ function goCashbackDetail() {
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #888;
color: var(--text-muted);
}
.hero-summary {
font-size: 13px;
font-weight: 600;
color: #bbb;
color: var(--text);
max-width: 100%;
word-break: break-all;
}
@@ -301,27 +301,27 @@ function goCashbackDetail() {
line-height: 1.1;
}
.hero.pos .hero-amount { color: var(--primary-light); }
.hero.neg .hero-amount { color: var(--danger); }
.hero.pos .hero-amount { color: var(--success); }
.hero.neg .hero-amount { color: var(--primary); }
.hero-time {
font-size: 11px;
color: #555;
color: var(--neutral);
font-weight: 600;
}
.section {
background: #141414;
border: 1px solid #222;
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--space-card) 16px;
margin-bottom: var(--space-section);
}
.section-title {
font-size: 12px;
font-weight: 800;
color: #888;
color: var(--text-muted);
letter-spacing: 0.04em;
margin-bottom: 10px;
}
@@ -338,18 +338,18 @@ function goCashbackDetail() {
align-items: flex-start;
gap: 12px;
font-size: 13px;
color: #aaa;
color: var(--text-muted);
}
.sum-row span:last-child {
color: #f0f0f0;
color: var(--text);
font-weight: 700;
text-align: right;
word-break: break-all;
}
.pos { color: var(--primary-light) !important; }
.neg { color: var(--danger) !important; }
.pos { color: var(--success) !important; }
.neg { color: var(--primary) !important; }
.mono {
font-family: ui-monospace, monospace;
@@ -366,8 +366,8 @@ function goCashbackDetail() {
margin-top: 12px;
padding: 10px 14px;
border-radius: 10px;
border: 1px solid var(--border-gold-soft, rgba(212, 175, 55, 0.35));
background: rgba(212, 175, 55, 0.08);
border: 1px solid var(--border-gold-soft);
background: var(--surface-accent);
color: var(--primary-light);
font-size: 13px;
font-weight: 700;
@@ -377,7 +377,7 @@ function goCashbackDetail() {
.tx-id {
font-family: ui-monospace, monospace;
font-size: 12px;
color: #ccc;
color: var(--text-muted);
word-break: break-all;
line-height: 1.5;
}

View File

@@ -1,260 +1,570 @@
<script setup lang="ts">
import { ref, onActivated, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import api from '../api';
import { formatMoney, formatMoneyCompact } from '../utils/localeDisplay';
import { formatMoney } from '../utils/localeDisplay';
import { txTypeKey, txDisplayType, txSummaryLabel } from '../utils/walletTx';
import { parseCashbackApiData, sumCashbackAmount } from '../utils/cashback';
import GoldSpinner from '../components/GoldSpinner.vue';
import { usePullToRefresh } from '../composables/usePullToRefresh';
const router = useRouter();
const { t, locale } = useI18n();
type Transaction = {
transactionType: string;
displayType?: string;
summary?: string | null;
summaryKind?: 'opening_bonus' | null;
referenceType?: string | null;
amount: string;
createdAt: string;
transactionId: string;
};
const items = ref<Transaction[]>([]);
const cashbackTotal = ref<string>('0');
const loading = ref(true);
const PREVIEW_COUNT = 15;
function txLabel(tx: Transaction): string {
const key = txTypeKey(txDisplayType(tx));
if (key) {
const translated = t(key);
if (translated !== key) return translated;
}
return tx.transactionType;
}
function txSubtitle(tx: Transaction): string {
return txSummaryLabel(tx, t);
}
function goDetail(tx: Transaction) {
if (!tx.transactionId) return;
router.push(`/wallet/transactions/${tx.transactionId}`);
}
function goCashbacks() {
router.push('/wallet/cashbacks');
}
async function fetchData() {
loading.value = true;
try {
const [txRes, cbRes] = await Promise.all([
api.get('/player/wallet/transactions', { params: { page: 1 } }),
api.get('/player/cashbacks').catch(() => ({ data: { data: [] } })),
]);
const result = txRes.data.data ?? { items: [] };
const { data } = await api.get('/player/wallet/transactions', { params: { page: 1 } });
const result = data.data ?? { items: [] };
items.value = (result.items ?? []).slice(0, PREVIEW_COUNT);
const cbRows = parseCashbackApiData(cbRes.data?.data);
cashbackTotal.value = sumCashbackAmount(cbRows).toString();
} catch {
/* ignore */
} finally {
loading.value = false;
}
}
const { pullDistance, spinning, progress } = usePullToRefresh({
onRefresh: fetchData,
});
onMounted(fetchData);
onActivated(fetchData);
const pullIndicatorStyle = () => ({
height: `${pullDistance.value}px`,
opacity: Math.min(pullDistance.value / 48, 1),
});
</script>
<template>
<div class="wallet-page">
<div
class="pull-indicator"
:style="pullIndicatorStyle()"
>
<GoldSpinner v-if="spinning" :size="28" :progress="progress" :active="spinning" />
</div>
<div v-if="loading" class="state">
<GoldSpinner :size="36" />
<span class="loading-text">{{ t('bet.loading') }}</span>
</div>
<template v-else>
<div class="top-bar">
<button type="button" class="more-link secondary" @click="goCashbacks">
{{ t('wallet.view_cashbacks_detail') }} &#x203A;
<div class="wallet-links">
<button type="button" class="wallet-link" @click="goCashbacks">
{{ t('wallet.view_cashbacks') }}
</button>
<button
v-if="items.length"
type="button"
class="more-link"
class="wallet-link wallet-link--primary"
@click="router.push('/wallet/detail')"
>{{ t('wallet.view_all') }} &#x203A;</button>
>
{{ t('wallet.view_all') }}
</button>
</div>
<div v-if="items.length" class="tx-list">
<button
v-for="tx in items"
:key="tx.transactionId"
type="button"
class="tx-row"
@click="goDetail(tx)"
>
<div class="tx-main">
<div class="tx-text">
<span class="tx-type">{{ txLabel(tx) }}</span>
<span v-if="txSubtitle(tx)" class="tx-summary">{{ txSubtitle(tx) }}</span>
</div>
<span :class="parseFloat(tx.amount) >= 0 ? 'pos' : 'neg'">
{{ formatMoney(tx.amount, locale) }}
</span>
</div>
<div class="tx-meta">
<div class="tx-col-left">
<span class="tx-type">{{ txLabel(tx) }}</span>
<span v-if="txSubtitle(tx)" class="tx-summary">{{ txSubtitle(tx) }}</span>
<span class="tx-time">{{ new Date(tx.createdAt).toLocaleString() }}</span>
<span class="tx-arrow">&#x203A;</span>
</div>
<div class="tx-col-right">
<span :class="parseFloat(tx.amount) >= 0 ? 'pos' : 'neg'">
{{ formatMoney(tx.amount, locale) }}
</span>
<span class="tx-arrow" aria-hidden="true"></span>
</div>
</button>
</div>
<div v-if="!items.length" class="empty">
{{ t('wallet.no_records') }}
</div>
</template>
</div>
</template>
<style scoped>
.wallet-page {
padding-bottom: 24px;
}
.pull-indicator {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: height 0.15s ease;
}
.state {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
text-align: center;
color: var(--text-muted);
padding: 56px 20px;
font-weight: 600;
font-weight: 500;
font-size: 14px;
}
.loading-text {
font-size: 13px;
}
.wallet-links {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 0 0 12px;
}
.wallet-link {
background: none;
border: none;
padding: 4px 0;
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
}
.wallet-link--primary {
color: var(--text);
font-weight: 600;
}
.wallet-link:active {
opacity: 0.72;
}
.tx-list {
margin-bottom: 0;
background: var(--gradient-card);
border: 1px solid rgba(255, 255, 255, 0.11);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-card-sm);
}
.tx-row {
display: block;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
text-align: left;
font-size: 14px;
padding: 8px 12px;
padding: 14px 16px;
border: none;
border-bottom: 1px solid var(--border);
background: transparent;
cursor: pointer;
}
.tx-row:last-child {
border-bottom: none;
}
.tx-row:active {
background: rgba(255, 255, 255, 0.03);
background: var(--bg-hover);
}
.tx-main {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.tx-text {
.tx-col-left {
display: flex;
flex-direction: column;
gap: 2px;
gap: 3px;
min-width: 0;
flex: 1;
}
.tx-col-right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.tx-summary {
font-size: 11px;
color: var(--text-muted);
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tx-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 4px;
}
.tx-type { font-weight: 700; color: var(--text); }
.pos { color: var(--primary-light); font-weight: 800; font-size: 15px; }
.neg { color: var(--danger); font-weight: 700; }
.tx-time { font-size: 11px; color: var(--text-muted); }
.tx-arrow { font-size: 16px; color: #555; font-weight: 700; line-height: 1; }
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 4px 2px;
margin-top: -8px;
}
.top-bar .more-link.secondary {
color: #f0b90b;
}
.more-link {
background: none;
border: none;
color: var(--primary-light);
font-size: 12px;
color: var(--text-dim);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tx-type {
font-weight: 600;
padding: 2px 6px;
cursor: pointer;
opacity: 0.8;
transition: opacity 0.2s;
color: var(--text);
letter-spacing: -0.01em;
}
.more-link:active {
opacity: 1;
.pos {
color: var(--success);
font-weight: 600;
font-size: 14px;
font-variant-numeric: tabular-nums;
}
.neg {
color: var(--text);
font-weight: 600;
font-size: 14px;
font-variant-numeric: tabular-nums;
}
.tx-time {
font-size: 11px;
color: var(--text-dim);
}
.tx-arrow {
font-size: 15px;
color: var(--text-dim);
font-weight: 400;
line-height: 1;
}
.empty {
text-align: center;
color: var(--text-muted);
padding: 40px 16px;
font-weight: 500;
}
.empty { text-align: center; color: var(--text-muted); padding: 40px 16px; font-weight: 600; }
</style>