## 管理端 / 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>
156 lines
3.2 KiB
Vue
156 lines
3.2 KiB
Vue
<script setup lang="ts">
|
|
import { useRouter } from 'vue-router';
|
|
import { useI18n } from 'vue-i18n';
|
|
import { useAuthStore } from '../stores/auth';
|
|
|
|
const { t } = useI18n();
|
|
const auth = useAuthStore();
|
|
const router = useRouter();
|
|
|
|
function goLogin() {
|
|
const redirect = auth.loginReturnTo || undefined;
|
|
auth.hideLoginPrompt();
|
|
router.push({
|
|
path: '/login',
|
|
query: redirect ? { redirect } : {},
|
|
});
|
|
}
|
|
|
|
function continueBrowsing() {
|
|
auth.loginReturnTo = '';
|
|
auth.hideLoginPrompt();
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<Teleport to="body">
|
|
<Transition name="fade">
|
|
<div v-if="auth.loginPromptVisible" class="login-overlay" @click.self="continueBrowsing">
|
|
<div class="login-modal">
|
|
<button type="button" class="close-btn" :aria-label="t('auth.continue_browsing')" @click="continueBrowsing">
|
|
✕
|
|
</button>
|
|
<h2 class="login-title">{{ t('auth.login_required') }}</h2>
|
|
<p class="login-hint">{{ t('auth.login_hint') }}</p>
|
|
|
|
<div class="login-actions">
|
|
<button type="button" class="login-submit" @click="goLogin">
|
|
{{ t('auth.go_login') }}
|
|
</button>
|
|
<button type="button" class="login-secondary" @click="continueBrowsing">
|
|
{{ t('auth.continue_browsing') }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Transition>
|
|
</Teleport>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.login-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.login-modal {
|
|
position: relative;
|
|
width: 90%;
|
|
max-width: 360px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-gold-soft);
|
|
border-radius: var(--radius);
|
|
padding: 28px 24px 24px;
|
|
}
|
|
|
|
.close-btn {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 14px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--primary-light);
|
|
margin: 0 0 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-hint {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
margin: 0 0 24px;
|
|
}
|
|
|
|
.login-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.login-submit {
|
|
padding: 12px;
|
|
border-radius: var(--radius-sm);
|
|
border: none;
|
|
background: var(--gradient-accent);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
min-height: 44px;
|
|
transition: opacity 0.2s;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.login-submit:active {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.login-secondary {
|
|
padding: 10px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
min-height: 40px;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.login-secondary:active {
|
|
color: var(--text);
|
|
border-color: var(--border-gold-soft);
|
|
}
|
|
|
|
.fade-enter-active,
|
|
.fade-leave-active {
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
.fade-enter-from,
|
|
.fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
</style>
|