From b5b70251e233218f1ae9e0b1029075b973e75be3 Mon Sep 17 00:00:00 2001 From: zguiy <1415466602@qq.com> Date: Wed, 20 May 2026 16:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9B=B8=E6=9C=BA=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- index.html | 194 +++++++++++++++++++++++-------------- index.js | 22 ++++- src/babylonjs/AppCamera.ts | 3 +- src/babylonjs/AppConfig.ts | 2 +- src/babylonjs/AppModel.ts | 18 ++++ src/kernel/Adapter.ts | 12 +++ 7 files changed, 177 insertions(+), 78 deletions(-) diff --git a/.env b/.env index 60c60d3..55abc01 100644 --- a/.env +++ b/.env @@ -1,6 +1,8 @@ # API 配置 # 开发环境 -VITE_API_BASE_URL=https://ztserver.zguiy.com +VITE_API_BASE_URL=http://192.168.3.100:26517 +#生产环境 +# VITE_API_BASE_URL=https://ztserver.zguiy.com # 生产环境示例(部署时修改) # VITE_API_BASE_URL=https://api.yourdomain.com diff --git a/index.html b/index.html index c81369e..edc927c 100644 --- a/index.html +++ b/index.html @@ -221,6 +221,50 @@ cursor: pointer; } + /* 标签页样式 */ + .tabs-container { + margin-bottom: 15px; + } + + .tabs-header { + display: flex; + gap: 8px; + margin-bottom: 15px; + border-bottom: 2px solid rgba(255, 255, 255, 0.1); + } + + .tab-btn { + padding: 10px 20px; + background: rgba(255, 255, 255, 0.05); + color: rgba(255, 255, 255, 0.6); + border: none; + border-bottom: 2px solid transparent; + cursor: pointer; + font-size: 13px; + transition: all 0.3s; + flex: 1; + margin-bottom: -2px; + } + + .tab-btn:hover { + background: rgba(255, 255, 255, 0.1); + color: rgba(255, 255, 255, 0.8); + } + + .tab-btn.active { + background: rgba(76, 175, 80, 0.2); + color: #fff; + border-bottom-color: #4CAF50; + } + + .tab-content { + display: none; + } + + .tab-content.active { + display: block; + } + /* 进度条样式 */ #progress-container { position: absolute; @@ -289,83 +333,76 @@
- -