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;