diff --git a/src/components/pageHome/ph-pos-user.vue b/src/components/pageHome/ph-pos-user.vue index c646159c..96a21cfe 100644 --- a/src/components/pageHome/ph-pos-user.vue +++ b/src/components/pageHome/ph-pos-user.vue @@ -29,13 +29,7 @@ @@ -129,6 +123,10 @@ onMounted(() => { timer = setInterval(handlePosition, 1000); }); +onUnmounted(() => { + if (timer !== null) clearInterval(timer); +}); + function handlePosition(): void { if (restTs.value < 1) { if (timer !== null) clearInterval(timer); @@ -155,9 +153,12 @@ function showMaterial(reward: TGApp.Game.ActCalendar.ActReward): void { emits("clickM", reward); } -onUnmounted(() => { - if (timer !== null) clearInterval(timer); -}); +function getCombatStat(detail: TGApp.Game.ActCalendar.ActRoleCombat): string { + if (!detail.is_unlock) return "未解锁"; + if (!detail.has_data) return "尚未挑战"; + if (detail.difficulty_id < 5) return `第${detail.max_round_id}幕`; + return `月谕模式·第${detail.max_round_id}幕·圣牌${detail.tarot_finished_cnt}`; +} diff --git a/src/components/userCombat/tuc-round.vue b/src/components/userCombat/tuc-round.vue index 387ede09..8151c36a 100644 --- a/src/components/userCombat/tuc-round.vue +++ b/src/components/userCombat/tuc-round.vue @@ -2,7 +2,10 @@
combat - 第{{ modelValue.round_id }}幕 + + 圣牌挑战·{{ modelValue.tarot_serial_no }} + + 第{{ modelValue.round_id }}幕 {{ timestampToDate(Number(modelValue.finish_time) * 1000) }}
diff --git a/src/components/viewPost/tp-image.vue b/src/components/viewPost/tp-image.vue index ac233205..572039fe 100644 --- a/src/components/viewPost/tp-image.vue +++ b/src/components/viewPost/tp-image.vue @@ -1,3 +1,4 @@ +