diff --git a/Build_God_Game/src/views/GameView.vue b/Build_God_Game/src/views/GameView.vue index 59cf24e..11fbbfa 100644 --- a/Build_God_Game/src/views/GameView.vue +++ b/Build_God_Game/src/views/GameView.vue @@ -45,6 +45,10 @@ const menuItems = computed(() => [ { label: '捡垃圾', icon: scrapIcon, useImage: true }, ]) +const formatNumber = (num: number) => { + return Math.floor(num).toLocaleString('zh-CN') +} + const handleLogout = () => { authStore.logout() characterStore.clearCurrentCharacter() @@ -79,13 +83,23 @@ const handleBreakthrough = async () => {
-
-
- {{ characterStore.currentCharacter?.name || '未选择角色' }} - {{ characterStore.currentCharacter?.levelName || '' }} +
+ +
+
+ {{ characterStore.currentCharacter?.name || '未选择角色' }} + {{ characterStore.currentCharacter?.levelName || '' }} +
+ 切换角色
- 切换角色 -
+ +
@@ -116,7 +130,7 @@ const handleBreakthrough = async () => { {{ nextLevelName }}
- {{ currentExp }} / {{ nextLevelMinExp }} 经验 + {{ formatNumber(currentExp) }} / {{ formatNumber(nextLevelMinExp) }} 经验 {{ Math.floor(expProgress) }}%
@@ -185,9 +199,9 @@ const handleBreakthrough = async () => { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px 16px; - margin-bottom: 20px; cursor: pointer; transition: all 0.2s ease; + height: 100%; } .character-header:hover { @@ -226,6 +240,15 @@ const handleBreakthrough = async () => { font-weight: bold; } +.star-border{ + background: transparent; + border: none; + padding: 12px 16px; + display: flex; + justify-content: space-between; + align-items: center; +} + .menu-grid { display: grid; grid-template-columns: repeat(3, 1fr);