From 298ae2c354278b68d0a5f10755605198d651d8e8 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 21 Sep 2023 21:24:10 +0800 Subject: [PATCH] fix ui --- src/components/cards/MediaCard.vue | 100 ++++++++++++---------- src/components/cards/TmdbSelectorCard.vue | 10 +-- 2 files changed, 56 insertions(+), 54 deletions(-) diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue index 5a0751f9..5ba106f5 100644 --- a/src/components/cards/MediaCard.vue +++ b/src/components/cards/MediaCard.vue @@ -360,14 +360,6 @@ onBeforeMount(() => { handleCheckExists() }) -// 订阅季表头 -const seasonsHeaders = [ - { title: '季', key: 'title', sortable: false }, - { title: '集数', key: 'episodes', sortable: false }, - { title: '评分', key: 'vote', sortable: false }, - { title: '状态', key: 'status', sortable: false }, -] - // 计算图片地址 const getImgUrl: Ref = computed(() => { if (imageLoadError.value) @@ -379,6 +371,13 @@ const getImgUrl: Ref = computed(() => { return url }) + +// 拼装季图片地址 +function getSeasonPoster(posterPath: string) { + if (!posterPath) + return '' + return `https://image.tmdb.org/t/p/w500${posterPath}` +}