From afddc9f955cdb61052703d8d3a12030041da1694 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 27 Dec 2023 22:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=A1=B5=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/t-post.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/views/t-post.vue b/src/views/t-post.vue index c72a58c5..db4d6bf7 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -43,7 +43,7 @@ {{ postData.user.nickname }} {{ getMpaLeftDesc() }} -
+
userIcon
@@ -63,11 +63,7 @@ class="tp-post-collection" :title="`合集ID:${postData.collection.collection_id}`" v-if="postData.collection" - @click=" - () => { - showCollection = !showCollection; - } - " + @click="showOverlayC()" > mdi-widgets {{ postData.collection.collection_title }} @@ -100,6 +96,7 @@ import TpParser from "../components/post/tp-parser.vue"; import TpoCollection from "../components/post/tpo-collection.vue"; import Mys from "../plugins/Mys"; import { useAppStore } from "../store/modules/app"; +import TGClient from "../utils/TGClient"; import { createTGWindow } from "../utils/TGWindow"; // loading @@ -170,6 +167,10 @@ watch(loadShare, (value) => { } }); +function showOverlayC() { + showCollection.value = true; +} + function getMpaLeftDesc(): string { return postData.value?.user.certification?.label === "" ? postData.value?.user.introduce ?? "" @@ -231,6 +232,11 @@ function createPostJson(postId: number): void { const jsonTitle = `Post_${postId}_JSON`; createTGWindow(jsonPath, "Dev_JSON", jsonTitle, 960, 720, false, false); } + +async function toAuthor(): Promise { + const url = `https://m.miyoushe.com/ys/#/accountCenter/0?id=${postData.value?.user.uid}`; + await TGClient.open("web_thin", url); +}