mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 11:37:29 +08:00
fix ui
This commit is contained in:
@@ -378,6 +378,21 @@ function getSeasonPoster(posterPath: string) {
|
|||||||
return ''
|
return ''
|
||||||
return `https://image.tmdb.org/t/p/w500${posterPath}`
|
return `https://image.tmdb.org/t/p/w500${posterPath}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 将yyyy-mm-dd转换为yyyy年mm月dd日
|
||||||
|
function formatAirDate(airDate: string) {
|
||||||
|
if (!airDate)
|
||||||
|
return ''
|
||||||
|
const date = new Date(airDate)
|
||||||
|
return `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}日`
|
||||||
|
}
|
||||||
|
// 从yyyy-mm-dd中提取年份
|
||||||
|
function getYear(airDate: string) {
|
||||||
|
if (!airDate)
|
||||||
|
return ''
|
||||||
|
const date = new Date(airDate)
|
||||||
|
return date.getFullYear()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -465,7 +480,7 @@ function getSeasonPoster(posterPath: string) {
|
|||||||
inset
|
inset
|
||||||
scrollable
|
scrollable
|
||||||
>
|
>
|
||||||
<VCard title="选择订阅季">
|
<VCard title="选择订阅季 - {{ props.media?.title }}">
|
||||||
<DialogCloseBtn @click="subscribeSeasonDialog = false" />
|
<DialogCloseBtn @click="subscribeSeasonDialog = false" />
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<VList
|
<VList
|
||||||
@@ -494,9 +509,19 @@ function getSeasonPoster(posterPath: string) {
|
|||||||
第 {{ item.season_number }} 季
|
第 {{ item.season_number }} 季
|
||||||
</VListItemTitle>
|
</VListItemTitle>
|
||||||
<VListItemSubtitle class="mt-1 me-2">
|
<VListItemSubtitle class="mt-1 me-2">
|
||||||
评分:{{ item.vote_average }},集数:{{ item.episode_count }},首播日期:{{ item.air_date }}
|
<VChip
|
||||||
|
v-if="item.vote_average"
|
||||||
|
color="primary"
|
||||||
|
size="small"
|
||||||
|
class="mb-1"
|
||||||
|
>
|
||||||
|
<VIcon icon="mdi-star" /> {{ item.vote_average }}
|
||||||
|
</VChip>
|
||||||
|
{{ getYear(item.air_date || '') }} • {{ item.episode_count }} 集
|
||||||
|
</VListItemSubtitle>
|
||||||
|
<VListItemSubtitle>
|
||||||
|
《{{ media?.title }}》第 {{ item.season_number }} 季于 {{ formatAirDate(item.air_date || '') }} 首播。
|
||||||
</VListItemSubtitle>
|
</VListItemSubtitle>
|
||||||
<VListItemSubtitle v-html="item.overview" />
|
|
||||||
<VListItemSubtitle>
|
<VListItemSubtitle>
|
||||||
<VChip
|
<VChip
|
||||||
v-if="seasonsNotExisted"
|
v-if="seasonsNotExisted"
|
||||||
|
|||||||
Reference in New Issue
Block a user