From 3f483293f5640ee52cb42611348d09e281f05ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Thu, 29 Feb 2024 15:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=B8=96=E5=AD=90=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=BD=AC=E8=BD=BD=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/t-post.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 230d53cf..005bdbfb 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -66,6 +66,10 @@ 创建时间:{{ getDate(postData.post.created_at) }} 分享时间:{{ getDate(shareTime) }} + + mdi-copyright + {{ getRepublishAuthorization(postData.post.republish_authorization) }} + @@ -187,6 +191,17 @@ function getDate(date: number): string { return new Date(date * 1000).toLocaleString().replace(/\//g, "-"); } +function getRepublishAuthorization(type: number): string { + switch (type) { + case 1: + return "已开启创作声明,禁止转载或摘编"; + case 2: + return "已开启创作声明,允许规范转载"; + default: + return "未知"; + } +} + function getRenderPost(data: TGApp.Plugins.Mys.Post.FullData): TGApp.Plugins.Mys.SctPost.Base[] { const postContent = data.post.content; let jsonParse: string; @@ -293,6 +308,11 @@ onUnmounted(() => { opacity: 0.6; } +.tp-post-copyright { + color: var(--common-text-title); + font-family: var(--font-title); +} + /* info */ .tp-post-info { position: relative;