diff --git a/src/api/types.ts b/src/api/types.ts index e3cec090..5c014a32 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -44,7 +44,7 @@ export interface Subscribe { lack_episode?: number // 附加信息 note?: string - // 状态:N-新建, R-订阅中 + // 状态:N-新建 R-订阅中 P-待定 S-暂停 state: string // 最后更新时间 last_update: string @@ -1177,4 +1177,4 @@ export interface TransferForm { library_type_folder?: boolean // 媒体库类别子目录 library_category_folder?: boolean -} \ No newline at end of file +} diff --git a/src/components/cards/SubscribeCard.vue b/src/components/cards/SubscribeCard.vue index 163ff94a..006c20b0 100644 --- a/src/components/cards/SubscribeCard.vue +++ b/src/components/cards/SubscribeCard.vue @@ -38,6 +38,9 @@ const subscribeFilesDialog = ref(false) // 分享订阅弹窗 const subscribeShareDialog = ref(false) +// 定义一个变量来保存当前的订阅状态 +const subscribeState = ref(props.media?.state ?? 'P') + // 上一次更新时间 const lastUpdateText = ref(props.media && props.media.last_update ? formatDateDifference(props.media.last_update) : '') @@ -242,6 +245,7 @@ function onSubscribeEditRemove() { :class="{ 'outline-dashed outline-1': props.media?.best_version && imageLoaded, 'transition transform-cpu duration-300 scale-105 shadow-lg': hover.isHovering, + 'opacity-70': subscribeState === 'S', }" min-height="170" @click="editSubscribeDialog" @@ -277,6 +281,10 @@ function onSubscribeEditRemove() {
+