fix(player-desktop): 移除分类及标签的表情符号、修复首页快速下注缺少赔率数据及缺失翻译键的问题
This commit is contained in:
@@ -5,9 +5,9 @@ import { useI18n } from 'vue-i18n';
|
||||
type SportCategory = 'football' | 'basketball' | 'tennis';
|
||||
|
||||
const SPORT_CATEGORIES = [
|
||||
{ id: 'football' as const, icon: '⚽', labelKey: 'bet.sport_football', enabled: true },
|
||||
{ id: 'basketball' as const, icon: '🏀', labelKey: 'bet.sport_basketball', enabled: false },
|
||||
{ id: 'tennis' as const, icon: '🎾', labelKey: 'bet.sport_tennis', enabled: false },
|
||||
{ id: 'football' as const, icon: '', labelKey: 'bet.sport_football', enabled: true },
|
||||
{ id: 'basketball' as const, icon: '', labelKey: 'bet.sport_basketball', enabled: false },
|
||||
{ id: 'tennis' as const, icon: '', labelKey: 'bet.sport_tennis', enabled: false },
|
||||
] as const;
|
||||
|
||||
const { t } = useI18n();
|
||||
@@ -34,7 +34,7 @@ function selectSport(id: SportCategory, enabled: boolean) {
|
||||
:aria-current="sport.enabled && activeSport === sport.id ? 'page' : undefined"
|
||||
@click="selectSport(sport.id, sport.enabled)"
|
||||
>
|
||||
<span class="sport-category-icon" aria-hidden="true">{{ sport.icon }}</span>
|
||||
<span v-if="sport.icon" class="sport-category-icon" aria-hidden="true">{{ sport.icon }}</span>
|
||||
<span class="sport-category-label">{{ t(sport.labelKey) }}</span>
|
||||
<span v-if="!sport.enabled" class="sport-category-soon">{{ t('bet.sport_coming_soon') }}</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user