feat(player-desktop): 优化主页赛事卡片布局、统一注单按钮颜色、添加置顶精简走马灯
This commit is contained in:
@@ -65,20 +65,27 @@ function goDetail() {
|
|||||||
|
|
||||||
.marquee-bar.embedded {
|
.marquee-bar.embedded {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 8px 12px;
|
padding: 3px 12px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
background: #EFF6FF;
|
background: #F8FAFC;
|
||||||
}
|
}
|
||||||
|
|
||||||
.marquee-bar.embedded .marquee-badge {
|
.marquee-bar.embedded .marquee-badge {
|
||||||
padding: 3px 8px;
|
padding: 1px 4px;
|
||||||
font-size: 10px;
|
font-size: 9px;
|
||||||
|
background: rgba(0, 0, 0, 0.06);
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: normal;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.marquee-bar.embedded .marquee-text {
|
.marquee-bar.embedded .marquee-text {
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.marquee-badge {
|
.marquee-badge {
|
||||||
@@ -103,13 +110,13 @@ function goDetail() {
|
|||||||
.marquee-track {
|
.marquee-track {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
animation: marquee-scroll 18s linear infinite;
|
animation: marquee-scroll 35s linear infinite;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.marquee-text {
|
.marquee-text {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
padding-right: 80px;
|
padding-right: 240px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--primary-light);
|
color: var(--primary-light);
|
||||||
|
|||||||
@@ -1765,7 +1765,7 @@ onUnmounted(() => {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
|
background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
|
||||||
color: var(--text);
|
color: #FFFFFF;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import LeagueSidebar from './LeagueSidebar.vue';
|
|||||||
import MatchSidebar from './MatchSidebar.vue';
|
import MatchSidebar from './MatchSidebar.vue';
|
||||||
import DesktopBetSlipRail from './DesktopBetSlipRail.vue';
|
import DesktopBetSlipRail from './DesktopBetSlipRail.vue';
|
||||||
import FloatingMailbox from '../FloatingMailbox.vue';
|
import FloatingMailbox from '../FloatingMailbox.vue';
|
||||||
|
import AnnouncementMarquee from '../AnnouncementMarquee.vue';
|
||||||
import { usePlayerHome } from '../../composables/usePlayerHome';
|
import { usePlayerHome } from '../../composables/usePlayerHome';
|
||||||
import { useAuthStore } from '../../stores/auth';
|
import { useAuthStore } from '../../stores/auth';
|
||||||
import { useBetSlipStore } from '../../stores/betSlip';
|
import { useBetSlipStore } from '../../stores/betSlip';
|
||||||
@@ -17,7 +18,7 @@ const route = useRoute();
|
|||||||
const { locale } = useI18n();
|
const { locale } = useI18n();
|
||||||
const auth = useAuthStore();
|
const auth = useAuthStore();
|
||||||
const slip = useBetSlipStore();
|
const slip = useBetSlipStore();
|
||||||
const { load: loadPlayerHome } = usePlayerHome();
|
const { load: loadPlayerHome, announcements } = usePlayerHome();
|
||||||
|
|
||||||
const layoutMode = computed<'betting' | 'account' | 'hub' | 'marketing'>(() => {
|
const layoutMode = computed<'betting' | 'account' | 'hub' | 'marketing'>(() => {
|
||||||
const p = route.path;
|
const p = route.path;
|
||||||
@@ -80,6 +81,10 @@ watch(
|
|||||||
'betslip-hidden': !showBetSlipRail,
|
'betslip-hidden': !showBetSlipRail,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
<div v-if="announcements && announcements.length" class="desktop-marquee-wrap">
|
||||||
|
<AnnouncementMarquee :items="announcements" embedded />
|
||||||
|
</div>
|
||||||
|
|
||||||
<header class="desktop-header-wrap">
|
<header class="desktop-header-wrap">
|
||||||
<DesktopTopNav />
|
<DesktopTopNav />
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@@ -9,12 +9,99 @@ import TeamEmblem from '../../components/TeamEmblem.vue';
|
|||||||
import GoldSpinner from '../../components/GoldSpinner.vue';
|
import GoldSpinner from '../../components/GoldSpinner.vue';
|
||||||
import { formatLocalMatchDateTime } from '@thebet365/shared';
|
import { formatLocalMatchDateTime } from '@thebet365/shared';
|
||||||
import type { PlayerHomeMatch } from '../../composables/usePlayerHome';
|
import type { PlayerHomeMatch } from '../../composables/usePlayerHome';
|
||||||
|
import { useBetSlipStore } from '../../stores/betSlip';
|
||||||
|
import { useAuthStore } from '../../stores/auth';
|
||||||
|
import { useDesktopBetPopover } from '../../composables/useDesktopBetPopover';
|
||||||
|
import { resolveSelectionLabel } from '../../utils/selectionLabel';
|
||||||
|
import MarketSelectionsPanel from '../../components/match-detail/MarketSelectionsPanel.vue';
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { banners, hotMatches, upcomingMatches, loading, load, announcementItems } = usePlayerHome();
|
const { banners, hotMatches, upcomingMatches, loading, load, announcementItems } = usePlayerHome();
|
||||||
const activeFeaturedIndex = ref(0);
|
const activeFeaturedIndex = ref(0);
|
||||||
|
|
||||||
|
const slip = useBetSlipStore();
|
||||||
|
const auth = useAuthStore();
|
||||||
|
const { openAt } = useDesktopBetPopover();
|
||||||
|
|
||||||
|
const activeMarketTypes = ref<Record<string, string>>({});
|
||||||
|
|
||||||
|
function getActiveMarketType(match: PlayerHomeMatch) {
|
||||||
|
const matchId = match.id;
|
||||||
|
if (activeMarketTypes.value[matchId]) {
|
||||||
|
return activeMarketTypes.value[matchId];
|
||||||
|
}
|
||||||
|
if (match.markets?.some(m => m.marketType === 'FT_1X2')) {
|
||||||
|
return 'FT_1X2';
|
||||||
|
}
|
||||||
|
return match.markets?.[0]?.marketType || 'FT_1X2';
|
||||||
|
}
|
||||||
|
|
||||||
|
function setActiveMarketType(matchId: string, marketType: string) {
|
||||||
|
activeMarketTypes.value[matchId] = marketType;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAvailableMarketsForMatch(match: PlayerHomeMatch) {
|
||||||
|
const supported = ['FT_1X2', 'FT_HANDICAP', 'FT_OVER_UNDER'];
|
||||||
|
return (match.markets ?? []).filter(m => supported.includes(m.marketType));
|
||||||
|
}
|
||||||
|
|
||||||
|
function getActiveMarket(match: PlayerHomeMatch) {
|
||||||
|
const activeType = getActiveMarketType(match);
|
||||||
|
return match.markets?.find(m => m.marketType === activeType);
|
||||||
|
}
|
||||||
|
|
||||||
|
function isMarketLocked(match: PlayerHomeMatch, market?: { status: string; allowSingle?: boolean; allowParlay?: boolean }) {
|
||||||
|
if (!market) return true;
|
||||||
|
if (match.bettingOpen === false) return true;
|
||||||
|
const status = (market.status ?? 'OPEN').toUpperCase();
|
||||||
|
if (status !== 'OPEN') return true;
|
||||||
|
return market.allowSingle !== true && market.allowParlay !== true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isSelected(id: string) {
|
||||||
|
return slip.isInSlip(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getMarketTabLabel(type: string) {
|
||||||
|
const raw = (() => {
|
||||||
|
if (type === 'FT_1X2') return t('bet.market_ft_1x2');
|
||||||
|
if (type === 'FT_HANDICAP') return t('bet.market_ft_handicap');
|
||||||
|
if (type === 'FT_OVER_UNDER') return t('bet.market_ft_ou');
|
||||||
|
return type;
|
||||||
|
})();
|
||||||
|
return raw.replace(/全场\s*|FT\s*|Penuh\s*/ig, '').trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleOddsClick(match: PlayerHomeMatch, market: any, selId: string, event?: MouseEvent) {
|
||||||
|
if (isMarketLocked(match, market)) return;
|
||||||
|
if (!auth.token) {
|
||||||
|
auth.showLoginPrompt(router.currentRoute.value.fullPath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const sel = market.selections?.find((s: any) => s.id === selId);
|
||||||
|
if (!sel || !event) return;
|
||||||
|
|
||||||
|
const item = {
|
||||||
|
selectionId: sel.id,
|
||||||
|
oddsVersion: String(sel.oddsVersion),
|
||||||
|
matchId: match.id,
|
||||||
|
matchName: `${match.homeTeamName} vs ${match.awayTeamName}`,
|
||||||
|
marketId: market.id,
|
||||||
|
marketName: market.marketDisplayName?.trim() || market.marketType || '',
|
||||||
|
selectionName: resolveSelectionLabel(t, sel.selectionCode || '', sel.selectionName, {
|
||||||
|
lineValue: market.lineValue,
|
||||||
|
}),
|
||||||
|
odds: parseFloat(sel.odds),
|
||||||
|
marketType: market.marketType,
|
||||||
|
lineValue: market.lineValue != null && market.lineValue !== '' ? parseFloat(String(market.lineValue)) : null,
|
||||||
|
allowSingle: market.allowSingle,
|
||||||
|
allowParlay: market.allowParlay,
|
||||||
|
};
|
||||||
|
|
||||||
|
openAt(event, item);
|
||||||
|
}
|
||||||
|
|
||||||
let rotateInterval: number | undefined;
|
let rotateInterval: number | undefined;
|
||||||
|
|
||||||
function startFeaturedRotation() {
|
function startFeaturedRotation() {
|
||||||
@@ -59,7 +146,10 @@ function goMatch(id: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function formatKickoff(startTime: string) {
|
function formatKickoff(startTime: string) {
|
||||||
return formatLocalMatchDateTime(startTime, locale.value, { variant: 'full' });
|
return formatLocalMatchDateTime(startTime, locale.value, {
|
||||||
|
variant: 'compact',
|
||||||
|
includeTimeZone: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setFeaturedIndex(index: number) {
|
function setFeaturedIndex(index: number) {
|
||||||
@@ -203,39 +293,81 @@ function setFeaturedIndex(index: number) {
|
|||||||
<div
|
<div
|
||||||
v-for="match in displayedMatches"
|
v-for="match in displayedMatches"
|
||||||
:key="match.id"
|
:key="match.id"
|
||||||
class="match-card clickable"
|
class="match-card"
|
||||||
@click="goMatch(match.id)"
|
|
||||||
>
|
>
|
||||||
<div class="card-top">
|
<!-- Left Side: Match Details (Clickable to go to match details page) -->
|
||||||
<span class="league-tag">{{ match.leagueName }}</span>
|
<div class="match-info-side" @click="goMatch(match.id)">
|
||||||
<span class="live-indicator" v-if="(match as any).status === 'LIVE'">LIVE</span>
|
<div class="card-top">
|
||||||
</div>
|
<span class="league-tag">{{ match.leagueName }}</span>
|
||||||
|
<div class="top-meta">
|
||||||
<div class="teams-versus">
|
<span class="live-indicator" v-if="(match as any).status === 'LIVE'">LIVE</span>
|
||||||
<div class="team-side home">
|
<span class="match-time">{{ formatKickoff(match.startTime) }}</span>
|
||||||
<TeamEmblem
|
</div>
|
||||||
size="md"
|
|
||||||
:team-code="match.homeTeamCode"
|
|
||||||
:team-name="match.homeTeamName"
|
|
||||||
:logo-url="match.homeTeamLogoUrl"
|
|
||||||
/>
|
|
||||||
<span class="team-name">{{ match.homeTeamName }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="vs-divider">VS</div>
|
|
||||||
<div class="team-side away">
|
<div class="teams-versus-compact">
|
||||||
<TeamEmblem
|
<div class="team-row">
|
||||||
size="md"
|
<TeamEmblem
|
||||||
:team-code="match.awayTeamCode"
|
size="sm"
|
||||||
:team-name="match.awayTeamName"
|
:team-code="match.homeTeamCode"
|
||||||
:logo-url="match.awayTeamLogoUrl"
|
:team-name="match.homeTeamName"
|
||||||
/>
|
:logo-url="match.homeTeamLogoUrl"
|
||||||
<span class="team-name">{{ match.awayTeamName }}</span>
|
/>
|
||||||
|
<span class="team-name">{{ match.homeTeamName }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="vs-text">VS</div>
|
||||||
|
<div class="team-row">
|
||||||
|
<TeamEmblem
|
||||||
|
size="sm"
|
||||||
|
:team-code="match.awayTeamCode"
|
||||||
|
:team-name="match.awayTeamName"
|
||||||
|
:logo-url="match.awayTeamLogoUrl"
|
||||||
|
/>
|
||||||
|
<span class="team-name">{{ match.awayTeamName }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer">
|
<!-- Right Side: Market Switcher & Selections (For Quick Betting) -->
|
||||||
<span class="match-time">{{ formatKickoff(match.startTime) }}</span>
|
<div class="match-market-side">
|
||||||
<button type="button" class="bet-action-btn">{{ t('nav.bet') || '投注' }}</button>
|
<template v-if="getAvailableMarketsForMatch(match).length > 0">
|
||||||
|
<div class="market-tabs">
|
||||||
|
<button
|
||||||
|
v-for="m in getAvailableMarketsForMatch(match)"
|
||||||
|
:key="m.marketType"
|
||||||
|
type="button"
|
||||||
|
class="market-tab-btn"
|
||||||
|
:class="{ active: getActiveMarketType(match) === m.marketType }"
|
||||||
|
@click.stop="setActiveMarketType(match.id, m.marketType)"
|
||||||
|
>
|
||||||
|
{{ getMarketTabLabel(m.marketType) }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="market-odds-area">
|
||||||
|
<template v-if="getActiveMarket(match)">
|
||||||
|
<MarketSelectionsPanel
|
||||||
|
desktop-card
|
||||||
|
compact
|
||||||
|
:locked="isMarketLocked(match, getActiveMarket(match))"
|
||||||
|
:line-value="getActiveMarket(match)?.lineValue"
|
||||||
|
:selections="getActiveMarket(match)?.selections || []"
|
||||||
|
:is-selected="isSelected"
|
||||||
|
@pick="(selId, ev) => handleOddsClick(match, getActiveMarket(match)!, selId, ev)"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<div v-else class="no-market-odds">
|
||||||
|
{{ t('bet.market_status_closed') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- Fallback to View Details if no markets available -->
|
||||||
|
<div v-else class="no-markets-fallback">
|
||||||
|
<button type="button" class="go-detail-btn" @click.stop="goMatch(match.id)">
|
||||||
|
{{ t('bet.view_match') || '查看赛况' }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -612,106 +744,181 @@ function setFeaturedIndex(index: number) {
|
|||||||
|
|
||||||
.matches-grid {
|
.matches-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
|
||||||
gap: 14px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.match-card {
|
.match-card {
|
||||||
background: var(--bg-body);
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 14px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
background: var(--bg-card);
|
||||||
gap: 12px;
|
border: 1px solid var(--border);
|
||||||
transition: all 0.2s;
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: border-color 0.2s, box-shadow 0.2s;
|
||||||
|
min-height: 76px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.match-card:hover {
|
.match-card:hover {
|
||||||
border-color: var(--border-active);
|
border-color: var(--border-active);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: 0 4px 12px rgba(0, 61, 107, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.match-info-side {
|
||||||
|
flex: 1;
|
||||||
|
padding: 8px 12px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 4px;
|
||||||
|
border-right: 1px solid var(--border);
|
||||||
|
min-width: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
background: #FCFDFE;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.match-info-side:hover {
|
||||||
|
background: var(--bg-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.match-market-side {
|
||||||
|
width: 290px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 8px 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 4px;
|
||||||
|
background: var(--bg-card);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-top {
|
.card-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-meta {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.league-tag {
|
.league-tag {
|
||||||
font-size: 11px;
|
font-size: 10px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--primary-light);
|
color: var(--primary-light);
|
||||||
background: rgba(0, 102, 204, 0.08);
|
background: rgba(0, 102, 204, 0.08);
|
||||||
padding: 2px 6px;
|
padding: 1px 4px;
|
||||||
border-radius: 4px;
|
border-radius: 3px;
|
||||||
max-width: 100%;
|
max-width: 120px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-indicator {
|
.live-indicator {
|
||||||
font-size: 10px;
|
font-size: 9px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
background: var(--danger);
|
background: var(--danger);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 1px 4px;
|
padding: 1px 3px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.teams-versus {
|
.match-time {
|
||||||
display: flex;
|
font-size: 10px;
|
||||||
align-items: center;
|
color: var(--text-muted);
|
||||||
justify-content: space-between;
|
font-weight: 600;
|
||||||
padding: 10px 0;
|
white-space: nowrap;
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-side {
|
.teams-versus-compact {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vs-text {
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-style: italic;
|
||||||
|
padding-left: 36px;
|
||||||
|
line-height: 1;
|
||||||
|
margin: -2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-row {
|
||||||
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-name {
|
.team-name {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
text-align: center;
|
|
||||||
max-width: 100px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vs-divider {
|
.market-tabs {
|
||||||
font-size: 11px;
|
display: flex;
|
||||||
font-weight: 800;
|
gap: 2px;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
padding-bottom: 4px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.market-tab-btn {
|
||||||
|
padding: 2px 6px;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: transparent;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
background: var(--bg-body);
|
border: none;
|
||||||
width: 22px;
|
cursor: pointer;
|
||||||
height: 22px;
|
transition: all 0.15s;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.market-tab-btn:hover {
|
||||||
|
background: var(--bg-hover);
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.market-tab-btn.active {
|
||||||
|
background: rgba(0, 61, 107, 0.08);
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.market-odds-area {
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 50%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-footer {
|
.no-market-odds {
|
||||||
display: flex;
|
font-size: 10px;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.match-time {
|
|
||||||
font-size: 11px;
|
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bet-action-btn {
|
.no-markets-fallback {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.go-detail-btn {
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid var(--border-active);
|
border: 1px solid var(--border-active);
|
||||||
@@ -720,9 +927,10 @@ function setFeaturedIndex(index: number) {
|
|||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.match-card:hover .bet-action-btn {
|
.go-detail-btn:hover {
|
||||||
background: var(--primary);
|
background: var(--primary);
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
border-color: var(--primary);
|
border-color: var(--primary);
|
||||||
|
|||||||
Reference in New Issue
Block a user