From 8b87ca88e522b56d922e35cdd7ca112a0e27ac97 Mon Sep 17 00:00:00 2001 From: qdzwxe Date: Thu, 4 Sep 2025 22:19:19 +0800 Subject: [PATCH] feat: statistic total page --- .../src/render/ui/statistics.tsx | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/packages-user/client-modules/src/render/ui/statistics.tsx b/packages-user/client-modules/src/render/ui/statistics.tsx index a8b3db6..7b1e3c3 100644 --- a/packages-user/client-modules/src/render/ui/statistics.tsx +++ b/packages-user/client-modules/src/render/ui/statistics.tsx @@ -48,7 +48,8 @@ export const Statistics = defineComponent(props => { ; const TotalStatistics = defineComponent(props => { - return () => ( - - - - ); + return () => { + const total = props.data.total; + + const text1 = `全塔地图中,共有怪物${total.enemyCount}个。`; + const text2 = `共有宝石${total.gemCount}个,共加攻击力${total.atkValue}点、防御力${total.defValue}点,魔防${total.mdefValue}点。`; + const text3 = `共有血瓶${total.potionCount}个,共加生命值${total.potionValue}点。`; + + return ( + + ); + }; }, statisticsPanelProps); const FloorStatistics = defineComponent(props => {