一、全局主题重构(52 文件) - 设计体系从深色/金色奢华调性全面迁移至 Pinnacle 风格的清爽专业调性 - 主色:深海蓝 #003D6B,辅色:橙色 #F8971F / #E8870A(赔率强调色) - 背景从纯黑/深灰改为白色/浅灰 (#F5F7FA, #E8EDF2) - 更新 CSS 变量设计令牌体系:--primary, --border, --text-muted, --bg-body, --bg-hover, --radius-sm 等 - styles.css 全量重写,所有组件 scoped CSS 同步适配 二、紧凑布局优化 - 首页:BannerCarousel 轮播高度缩减 (clamp 148→120px),MatchBetCard 内边距/间距/字号全面收紧 - 首页:赛事卡片 padding 14px→10px,队旗尺寸 72×48→56×38,VS 区域缩小 - 个人中心:钱包横幅宽高比 2/1→1.75/1,设置单元格 min-height 48→42px - 钱包页:交易行 padding/字号收紧,金额字号 15→14px - MainLayout:顶栏高度 50→48px,底部导航间距微调 三、对比度与可读性增强 - 赛事详情/投注页背景从透明加深至 #E8EDF2 - 所有卡片边框从 #E5E7EB 加深至 #CBD5E1,阴影强度提升 - 盘口选择面板背景 #F5F7FA→#EDF0F4,增加 border-top 分隔线 - 赔率颜色从 #F8971F 加深至 #E8870A,选中态 border-width 加粗至 2px - 标签字号增大并加粗 (font-weight: 600),颜色从 #6B7280 加深至 #4B5563 四、首页快捷入口 & 个人中心网格布局 - 首页新增 4 宫格快捷入口(投注/充值/账单/活动),彩色图标区分功能 - 个人中心重构为「4 宫格快捷操作 + 列表」结构:钱包/充值/返水/记录 - 移除原个人中心金色入口列表项,精简设置列表为修改资料/投注规则/语言 五、顶部导航栏重设计 - Logo 从 img 标签替换为内联 SVG 纯文字:THE(灰) + BET(深蓝) + 365(橙) - 客服按钮改为纯图标圆形按钮 (32×32px),增加竖线分隔符 - Chip 高度 34→32px,间距 8→6px - 底部导航激活态指示条加粗至 2.5px,左右缩进从 22% 调至 18% 六、SVG Favicon - 新增纯路径 SVG favicon(无 <text> 元素,确保浏览器 favicon 沙箱兼容) - 深蓝圆角方块 + 白色 "B" 字母路径 + 橙色圆点 + 白色 "365" 数字路径 - index.html 更新 favicon 引用为 /favicon.svg 🤖 Generated with [Qoder][https://qoder.com]
198 lines
4.1 KiB
Vue
198 lines
4.1 KiB
Vue
<script setup lang="ts">
|
||
import { computed } from 'vue';
|
||
import { useI18n } from 'vue-i18n';
|
||
import OutrightOptionCard from './OutrightOptionCard.vue';
|
||
import saishiImg from '../../assets/images/saishi.webp';
|
||
import cardBg from '../../assets/images/card-bg.webp';
|
||
|
||
const matchCardBg = `url(${cardBg})`;
|
||
|
||
export interface OutrightSelection {
|
||
id: string;
|
||
teamCode: string;
|
||
teamName: string;
|
||
logoUrl?: string | null;
|
||
odds: string;
|
||
oddsVersion: string;
|
||
}
|
||
|
||
export interface OutrightEvent {
|
||
id: string;
|
||
leagueId: string;
|
||
leagueCode?: string;
|
||
leagueName: string;
|
||
title: string;
|
||
selectionCount?: number;
|
||
selections: OutrightSelection[];
|
||
}
|
||
|
||
const props = defineProps<{
|
||
event: OutrightEvent;
|
||
expanded: boolean;
|
||
}>();
|
||
|
||
const emit = defineEmits<{
|
||
toggle: [];
|
||
pick: [selection: OutrightSelection];
|
||
}>();
|
||
|
||
const { t } = useI18n();
|
||
|
||
const headTitle = computed(() => {
|
||
const raw = props.event.title.replace(/^\*+/, '').trim();
|
||
return raw || props.event.leagueName || t('bet.tab_outright');
|
||
});
|
||
|
||
const headMeta = computed(() => {
|
||
const total = props.event.selectionCount ?? props.event.selections.length;
|
||
return t('bet.outright_teams_count', { n: total });
|
||
});
|
||
</script>
|
||
|
||
<template>
|
||
<section class="event-block">
|
||
<button type="button" class="event-head" :class="{ 'is-expanded': expanded }" :aria-expanded="expanded" @click="emit('toggle')">
|
||
<span class="toggle-icon" :class="{ open: expanded }">
|
||
<span class="toggle-mark">{{ expanded ? '−' : '+' }}</span>
|
||
</span>
|
||
<span class="event-head-text">
|
||
<span class="event-title">{{ headTitle }}</span>
|
||
<span v-if="event.leagueName && event.leagueName !== headTitle" class="event-league">
|
||
{{ event.leagueName }}
|
||
</span>
|
||
<span class="event-meta">{{ headMeta }}</span>
|
||
</span>
|
||
<img :src="saishiImg" alt="" class="event-saishi" />
|
||
</button>
|
||
|
||
<div v-show="expanded" class="options-scroll">
|
||
<div class="options-grid">
|
||
<OutrightOptionCard
|
||
v-for="sel in event.selections"
|
||
:key="sel.id"
|
||
:team-code="sel.teamCode"
|
||
:team-name="sel.teamName"
|
||
:logo-url="sel.logoUrl"
|
||
:odds="sel.odds"
|
||
@pick="emit('pick', sel)"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</template>
|
||
|
||
<style scoped>
|
||
.event-block {
|
||
position: relative;
|
||
isolation: isolate;
|
||
margin-bottom: 12px;
|
||
border: 1px solid #E5E7EB;
|
||
border-radius: 8px;
|
||
background: #FFFFFF;
|
||
overflow: hidden;
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.event-head {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 12px 16px;
|
||
background: none;
|
||
border: none;
|
||
border-radius: 0;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.event-head::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
background: v-bind(matchCardBg) center / 100% 100% no-repeat;
|
||
opacity: 0.08;
|
||
z-index: -1;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.toggle-icon {
|
||
flex-shrink: 0;
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 50%;
|
||
background: #F5F7FA;
|
||
border: 1px solid #E5E7EB;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.toggle-icon.open {
|
||
border-color: #003D6B;
|
||
}
|
||
|
||
.toggle-mark {
|
||
color: #003D6B;
|
||
font-size: 17px;
|
||
font-weight: 900;
|
||
line-height: 1;
|
||
}
|
||
|
||
.event-head-text {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.event-title {
|
||
font-size: 13px;
|
||
font-weight: 800;
|
||
color: #003D6B;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.event-league {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: #6B7280;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.event-meta {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: #6B7280;
|
||
}
|
||
|
||
.event-saishi {
|
||
flex-shrink: 0;
|
||
height: 44px;
|
||
width: auto;
|
||
max-width: 40px;
|
||
object-fit: contain;
|
||
padding-left: 8px;
|
||
border-left: 1px solid #E5E7EB;
|
||
}
|
||
|
||
.options-scroll {
|
||
max-height: 408px;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
padding: 8px 2px 2px;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: #E5E7EB transparent;
|
||
}
|
||
|
||
.options-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||
gap: 6px;
|
||
}
|
||
</style>
|