From 7932de8654bd685680a32018039b60101edde0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Tue, 19 Nov 2024 10:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E9=A1=B5UI=EF=BC=8C=E4=BC=98=E5=8C=96=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/t-postcard.vue | 17 +-- src/pages/common/PostCollect.vue | 235 ++++++++++++++--------------- 2 files changed, 118 insertions(+), 134 deletions(-) diff --git a/src/components/main/t-postcard.vue b/src/components/main/t-postcard.vue index 82dbe420..9fafbf41 100644 --- a/src/components/main/t-postcard.vue +++ b/src/components/main/t-postcard.vue @@ -60,8 +60,7 @@
{{ props.modelValue.post.post_id }}
@@ -78,11 +77,10 @@ import TpAvatar from "../post/tp-avatar.vue"; interface TPostCardProps { modelValue: TGApp.Plugins.Mys.Post.FullData; selectMode?: boolean; - selected?: string[]; } interface TPostCardEmits { - (e: "onSelected", value: string[]): void; + (e: "onSelected", value: string): void; } const props = withDefaults(defineProps(), { @@ -92,13 +90,7 @@ const emits = defineEmits(); const isAct = ref(false); const card = ref(); const localCover = ref(); -const selectedList = computed({ - get: () => props.selected, - set: (v) => { - if (v === undefined) return; - emits("onSelected", v); - }, -}); + const cardBg = computed(() => { if (card.value && card.value.status) return card.value.status.colorCss; return "none"; @@ -384,9 +376,10 @@ async function toForum(forum: TGApp.Plugins.Mys.News.RenderForum): Promise justify-content: center; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); - background: var(--tgc-yellow-2); + background: var(--box-bg-2); border-bottom-right-radius: 4px; box-shadow: 0 0 10px var(--tgc-dark-1); + color: var(--box-text-5); } .tpc-forum img { diff --git a/src/pages/common/PostCollect.vue b/src/pages/common/PostCollect.vue index 96f29380..cc56ec5f 100644 --- a/src/pages/common/PostCollect.vue +++ b/src/pages/common/PostCollect.vue @@ -1,6 +1,10 @@ - - - - - - - - - -
-
- + + + + +
+
+
+