deploy: auto commit repo-root changes 2026-06-21 16:39:29
This commit is contained in:
@@ -29,15 +29,15 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y class="worldcup-scroll"
|
||||
<scroll-view scroll-y scroll-with-animation class="worldcup-scroll"
|
||||
:scroll-into-view="activeTab === 'schedule' ? scheduleScrollIntoView : ''">
|
||||
<view v-if="activeTab === 'schedule'" class="worldcup-section">
|
||||
<block v-if="activeTab === 'schedule'">
|
||||
<view class="worldcup-sortbar" @tap="toggleScheduleSort">
|
||||
<text class="worldcup-sortbar__label">{{ scheduleSortLabel }}</text>
|
||||
<text class="worldcup-sortbar__icon">↕</text>
|
||||
</view>
|
||||
|
||||
<view v-if="scheduleGroups.length">
|
||||
<block v-if="scheduleGroups.length">
|
||||
<view v-for="group in scheduleGroups" :key="group.key" :id="scheduleGroupAnchorId(group.key)"
|
||||
class="worldcup-group">
|
||||
<view class="worldcup-group__title">
|
||||
@@ -46,7 +46,7 @@
|
||||
</view>
|
||||
|
||||
<view v-for="(match, index) in group.items" :key="match.id || match.match_id"
|
||||
:id="scheduleMatchAnchorId(match)" class="wc-match-card" @tap="goMatchDetail(match)">
|
||||
class="wc-match-card" @tap="goMatchDetail(match)">
|
||||
<view class="wc-match-card__team wc-match-card__team--left">
|
||||
<image v-if="match.home_icon" class="wc-match-card__logo" :src="match.home_icon"
|
||||
mode="aspectFit" />
|
||||
@@ -65,11 +65,11 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view v-else class="worldcup-empty">
|
||||
<u-empty text="暂无数据" mode="data" />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view v-else-if="activeTab === 'rank'" class="worldcup-section">
|
||||
<ranking-nav v-model="rankingMode" />
|
||||
@@ -459,11 +459,6 @@ const initLayout = () => {
|
||||
|
||||
const scheduleGroupAnchorId = (key: string) => `worldcup-schedule-group-${key}`
|
||||
|
||||
const scheduleMatchAnchorId = (match: any) => {
|
||||
const rawId = match?.id || match?.match_id || `${match?.match_time || 0}-${match?.round_name || ''}-${match?.round_index || 0}`
|
||||
return `worldcup-schedule-match-${String(rawId).replace(/[^a-zA-Z0-9_-]/g, '-')}`
|
||||
}
|
||||
|
||||
const fetchSchedule = async () => {
|
||||
scheduleData.value = await getWorldCupSchedule() || { current_round_name: '', bracket_rounds: [], schedule_rounds: [] }
|
||||
if (activeTab.value === 'schedule') {
|
||||
@@ -603,9 +598,11 @@ const resolveTodayScheduleAnchorId = () => {
|
||||
if (group) return scheduleGroupAnchorId(group.key)
|
||||
}
|
||||
|
||||
const todayMatch = flattenScheduleMatches.value.find((match) => formatDateKey(match.match_time) === todayKey)
|
||||
if (!todayMatch) return ''
|
||||
return scheduleMatchAnchorId(todayMatch)
|
||||
const group = scheduleGroups.value.find((item) =>
|
||||
item.items.some((match: any) => formatDateKey(match.match_time) === todayKey)
|
||||
)
|
||||
if (!group) return ''
|
||||
return scheduleGroupAnchorId(group.key)
|
||||
}
|
||||
|
||||
const scrollScheduleToToday = async () => {
|
||||
|
||||
Reference in New Issue
Block a user