From 4cbd8af2509c5a625e87fd1801d12437c6c034a3 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 26 Sep 2025 12:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4=E6=88=90?= =?UTF-8?q?=E5=B0=B1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/userAchi/tua-achi-overlay.vue | 87 ++++++++++++++------ 1 file changed, 61 insertions(+), 26 deletions(-) diff --git a/src/components/userAchi/tua-achi-overlay.vue b/src/components/userAchi/tua-achi-overlay.vue index 62677bfe..f99411f7 100644 --- a/src/components/userAchi/tua-achi-overlay.vue +++ b/src/components/userAchi/tua-achi-overlay.vue @@ -23,15 +23,14 @@
原石奖励: {{ props.data.reward }} + 原石
触发方式: - {{ - props.data.trigger.task ? "完成以下所有任务" : props.data.trigger.type - }} + {{ parseTriggerType() }}
- mdi-alert-decagram + mdi-alert-decagram {{ item.name }} ({{ item.type }})
@@ -41,11 +40,11 @@ 是否完成: {{ props.data.isCompleted ? "是" : "否" }} -
+
完成时间: {{ props.data.completedTime }}
-
+
当前进度: {{ props.data.progress }}
@@ -93,6 +92,19 @@ async function share(): Promise { const fileName = `【成就详情】【${props.data.id}】-${props.data.name}`; await generateShareImg(fileName, achiBox); } + +function parseTriggerType(): string { + switch (props.data.trigger.type) { + case "FINISH_QUEST_AND": + case "FINISH_PARENT_QUEST_AND": + return "完成以下所有任务"; + case "FINISH_QUEST_OR": + case "FINISH_PARENT_QUEST_OR": + return "完成以下任意任务"; + default: + return props.data.trigger.type; + } +}