feat: 北单

main
jcgitadmin 2025-08-17 20:35:56 +08:00
parent 60f2d1761c
commit 671ec7e158
2 changed files with 38 additions and 1 deletions

View File

@ -1,5 +1,41 @@
<template>
<div class="bg-white q-pa-md" @click="router.push({path:'/score/detail/'+props.matchType,query:{id: props.item?.match_id}})">
<div v-if="props.matchType == 'bjdc'" class="bg-white q-pa-md" @click="router.push({path:'/score/detail/jczq',query:{id: props.item?.match_id}})">
<div class="row justify-between q-py-xs">
<div class="text-caption text-grey">
{{props.item.issue_num_week}}{{ props.item.play_num_view||props.item.play_num }}
<q-badge color="indigo-10" rounded> {{ props.item.bd_competition_name }} </q-badge>
</div>
<div class="text-caption text-red">{{ MATCH_STATUS[props.item.match.status] }}
<template v-if="props.item.match.status == 0">{{ formatDate(props.item.match.start_time) }}</template>
<!-- FIXME 比赛结束时间 -->
<template v-else>{{ formatDate(props.item.match.start_time) }}</template>
</div>
</div>
<div class="row items-center">
<div class="col">
<div class="row items-center">
<user-avatar size="md" class="q-mr-sm bg-white team-logo" square ratio="10/13" fit="contain" :src="props.item.match.home_team_logo_url"></user-avatar>
{{ props.item.match.home_team_name }}
</div>
</div>
<div class="col-auto text-red text-center">
<template v-if="props.item.score">
<div class="text-h6">{{ props.item.score.full_time_score || 'VS' }}</div>
<div class="text-caption q-mt-xs">
<template v-if="props.item.score.half_time_score">({{ props.item.score.half_time_score }})</template>
</div>
</template>
<div class="text-h6" v-else>VS</div>
</div>
<div class="col">
<div class="row items-center justify-end">
{{ props.item.match.away_team_name }}
<user-avatar size="md" class="q-ml-sm bg-white team-logo" square ratio="10/13" fit="contain" :src="props.item.match.away_team_logo_url"></user-avatar>
</div>
</div>
</div>
</div>
<div v-else class="bg-white q-pa-md" @click="router.push({path:'/score/detail/'+props.matchType,query:{id: props.item?.match_id}})">
<div class="row justify-between q-py-xs">
<div class="text-caption text-grey">
{{props.item.issue_num_week}}{{ props.item.play_num_view||props.item.play_num }}

View File

@ -11,6 +11,7 @@
class="tabs-mini"
>
<q-tab class="rounded-borders-lg" name="jczq" label="足球" />
<q-tab class="rounded-borders-lg" name="bjdc" label="北单" />
<q-tab class="rounded-borders-lg" name="lq" label="篮球" />
</q-tabs>
</template>