This commit is contained in:
jxxghp
2025-01-29 18:57:22 +08:00
parent 4c0f65fcbc
commit eee092a7fd

View File

@@ -16,7 +16,7 @@ const filterParams = reactive({
release_date: '',
})
// TMDB排序字典
// TMDB 电影排序字典
const tmdbSortDict = {
'popularity.desc': '热度降序',
'popularity.asc': '热度升序',
@@ -26,6 +26,16 @@ const tmdbSortDict = {
'vote_average.asc': '评分升序',
}
// TMDB 电视剧排序字典
const tmdbTvSortDict = {
'popularity.desc': '热度降序',
'popularity.asc': '热度升序',
'first_air_date.desc': '首播日期降序',
'first_air_date.asc': '首播日期升序',
'vote_average.desc': '评分降序',
'vote_average.asc': '评分升序',
}
// TMDB风格字典
const tmdbGenreDict = {
'28': '动作',
@@ -102,7 +112,7 @@ watch([type, filterParams], () => {
filter
tile
:value="key"
v-for="(value, key) in tmdbSortDict"
v-for="(value, key) in type == 'movies' ? tmdbSortDict : tmdbTvSortDict"
:key="key"
>
{{ value }}