From 8f804c20ff64b41d86cc967ba30d30fb0a9a6948 Mon Sep 17 00:00:00 2001 From: KQL Date: Thu, 4 Dec 2025 17:02:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E8=BF=9B=E5=85=A5=E5=86=85=E6=8E=A8=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6UI=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 init3DScene 方法中重置 is2DInitialized 标志 - 重置 uiLayer 和 hint 的 display 和 opacity 属性 - 重置 mapInterface 的 opacity 属性 - 确保每次进入时所有UI元素都从初始状态开始 修复了以下问题: 1. 第二次进入时 DUODUO Referral 文字无法显示 2. 点击地球后出现光球无法进入中国地图 🤖 Generated with Claude Code --- js/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/main.js b/js/main.js index 963b6ad..87bfa17 100644 --- a/js/main.js +++ b/js/main.js @@ -115,12 +115,22 @@ class App { this.sceneManager = null; } + // 重置2D地图初始化标志 + this.is2DInitialized = false; + // 重置UI状态 this.canvasContainer.style.display = 'block'; this.speedLines.style.display = 'block'; this.cloudFog.style.display = 'none'; // 云雾初始隐藏,转场时才显示 this.cloudFog.style.opacity = '0'; this.mapInterface.style.display = 'none'; + this.mapInterface.style.opacity = '0'; + + // 重置UI层和提示文字的状态(关键修复) + this.uiLayer.style.opacity = '0'; + this.uiLayer.style.display = 'flex'; + this.hint.style.opacity = '0'; + this.hint.style.display = 'block'; // 创建场景管理器 this.sceneManager = new SceneManager(