feat(admin,api,player): 优胜赛配置、赛事管理重构与玩家端投注体验优化

管理端拆分赛事/优胜赛 Tab,新增联赛优胜赔率面板(批量、排序、外侧删除);统一 list-chrome 工具栏对齐与列表页布局;Dashboard 失败重试、Users 操作下拉、小屏侧栏等体验修复。

API 扩展优胜赛与赛事目录接口,完善投注与钱包查询;玩家端重构赛事卡片、串关面板、注单/钱包页,新增注单详情、下注成功动画与下拉刷新。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-08 09:55:56 +08:00
parent efff7c27e6
commit 24fa1b275c
66 changed files with 6289 additions and 1426 deletions

View File

@@ -18,6 +18,7 @@ import {
} from '../utils/bet-labels';
import { adminSelectionLabel } from '../utils/adminSelectionLabel.ts';
import type { AdminMatchDetail } from './match-form.ts';
import AdminSubNav from '../components/AdminSubNav.vue';
interface SettlementBetStats {
summary: {
@@ -82,7 +83,6 @@ const previewPageSize = ref(10);
// 智能比分推荐已暂时关闭(后端 smart-score.solver.ts 保留,恢复时接回 UI 与 POST /settlement/smart-score
const matchId = computed(() => String(route.params.id ?? ''));
type PreviewItem = {
betNo: string;
betType: string;
@@ -295,7 +295,7 @@ async function loadMatch() {
};
if (detail.isOutright) {
ElMessage.warning(t('msg.outright_no_edit'));
router.replace('/outrights');
router.replace('/matches');
return;
}
match.value = detail;
@@ -407,10 +407,6 @@ async function confirm() {
await loadMatch();
}
function goBack() {
router.push('/matches');
}
onMounted(() => {
void loadMatch();
});
@@ -418,14 +414,14 @@ onMounted(() => {
<template>
<div v-loading="loading" class="settlement-page">
<div class="page-header">
<div class="header-left">
<el-button size="small" text @click="goBack"> {{ t('settlement.back') }}</el-button>
<h2 class="page-title">{{ t('page.settlement.title') }}</h2>
<span class="page-id">#{{ matchId }}</span>
</div>
<el-tag v-if="match" size="small" type="info">{{ statusLabel }}</el-tag>
</div>
<AdminSubNav
:title="t('page.settlement.title')"
:subtitle="`#${matchId}`"
>
<template #extra>
<el-tag v-if="match" size="small" type="info">{{ statusLabel }}</el-tag>
</template>
</AdminSubNav>
<el-card v-if="match" class="settle-top-card" shadow="never">
<p v-if="leagueLabel" class="match-league">{{ leagueLabel }}</p>
@@ -708,35 +704,6 @@ onMounted(() => {
overflow: hidden;
}
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
flex-shrink: 0;
}
.header-left {
display: flex;
align-items: baseline;
gap: 12px;
flex-wrap: wrap;
}
.page-title {
font-size: 20px;
font-weight: 700;
color: #e8e8e8;
margin: 0;
}
.page-id {
font-size: 13px;
color: #666;
font-family: monospace;
}
.settle-top-card,
.preview-card {
flex-shrink: 0;