From de412a1fd67af5cf4ba98f717dc8eff54691d671 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 18 Sep 2025 16:15:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4=E5=B8=96?= =?UTF-8?q?=E5=AD=90=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/github.styles.scss | 10 ++-- src/components/app/t-postcard.vue | 73 ++++++++++++++-------------- src/components/viewPost/tpc-tag.vue | 41 ++++++++++++++++ src/pages/User/Challenge.vue | 12 ++--- src/pages/common/PostTopic.vue | 11 ++++- src/utils/toolFunc.ts | 23 ++++++++- 6 files changed, 118 insertions(+), 52 deletions(-) create mode 100644 src/components/viewPost/tpc-tag.vue diff --git a/src/assets/styles/github.styles.scss b/src/assets/styles/github.styles.scss index af3d1dd1..a074ff8d 100644 --- a/src/assets/styles/github.styles.scss +++ b/src/assets/styles/github.styles.scss @@ -20,13 +20,11 @@ /* CardShadow,传入theme参数 */ @mixin github-card-shadow($theme: "default") { @if $theme == "default" { - box-shadow: - #1f23280f 0 1px 1px 0, - #1f23280f 0 1px 3px 0; + box-shadow: #1f23280f 0 1px 1px 0, + #1f23280f 0 1px 3px 0; } @else { - box-shadow: - #01040999 0 1px 1px 0, - #01040999 0 1px 3px 0; + box-shadow: #01040999 0 1px 1px 0, + #01040999 0 1px 3px 0; } } diff --git a/src/components/app/t-postcard.vue b/src/components/app/t-postcard.vue index b5c20472..278a244c 100644 --- a/src/components/app/t-postcard.vue +++ b/src/components/app/t-postcard.vue @@ -39,13 +39,15 @@
- mdi-lightbulb-on + mdi-lightbulb-on {{ reason.text }}
-
- mdi-tag - {{ topic.name }} -
+
@@ -86,6 +88,9 @@
-
{{ props.modelValue.post.post_id }}
+
+ {{ props.modelValue.post.post_id }} +
+ diff --git a/src/pages/User/Challenge.vue b/src/pages/User/Challenge.vue index 94df5293..dcf804cd 100644 --- a/src/pages/User/Challenge.vue +++ b/src/pages/User/Challenge.vue @@ -270,15 +270,15 @@ async function refreshChallenge(): Promise { isReq.value = true; await TGLogger.Info("[UserChallenge][refreshChallenge] 开始刷新挑战数据"); await showLoading.start(`正在获取${account.value.gameUid}的幽境危战数据`); - const res = await recordReq.challenge.detail(cookie.value, account.value); - if ("retcode" in res) { + const resp = await recordReq.challenge.detail(cookie.value, account.value); + if ("retcode" in resp) { await showLoading.end(); isReq.value = false; - showSnackbar.error(`[${res.retcode}] ${res.message}`); - await TGLogger.Error(`[UserChallenge][refreshChallenge] ${res.retcode} - ${res.message}`); + showSnackbar.error(`[${resp.retcode}] ${resp.message}`); + await TGLogger.Error(`[UserChallenge][refreshChallenge] ${resp.retcode} - ${resp.message}`); return; } - if (!res.is_unlock) { + if (!resp.is_unlock) { await showLoading.end(); isReq.value = false; showSnackbar.warn("幽境危战未解锁"); @@ -286,7 +286,7 @@ async function refreshChallenge(): Promise { return; } await showLoading.update("", { title: "正在保存幽境危战数据" }); - for (const challenge of res.data) { + for (const challenge of resp.data) { if (challenge.schedule.schedule_id === "0") continue; await showLoading.update(`ScheduleID:${challenge.schedule.schedule_id}`); await TSUserChallenge.saveChallenge(account.value.gameUid, challenge); diff --git a/src/pages/common/PostTopic.vue b/src/pages/common/PostTopic.vue index e794d1c0..958b762c 100644 --- a/src/pages/common/PostTopic.vue +++ b/src/pages/common/PostTopic.vue @@ -287,8 +287,12 @@ function handleUserClick(user: TGApp.BBS.Post.User, gid: number): void { showUser.value = true; } -