From cfb75c26838c2e8dacf663e4083484f3b1047ca1 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 06 四月 2023 16:57:47 +0800
Subject: [PATCH] 四向穿梭车地图楼层切换后,显示楼层效果
---
src/main/webapp/views/console.html | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index bf21940..e603912 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -17,10 +17,12 @@
</header>
<main class="main">
<!--妤煎眰鎸夐挳-->
- <button class="floorBtn btn-16" onclick="changFloor(1)" style="margin-top: 150px">1F</button>
- <button class="floorBtn btn-16" onclick="changFloor(2)" style="margin-top: 200px">2F</button>
- <button class="floorBtn btn-16" onclick="changFloor(3)" style="margin-top: 250px">3F</button>
- <button class="floorBtn btn-16" onclick="changFloor(4)" style="margin-top: 300px">4F</button>
+ <div id="floorBtnBox">
+ <button class="floorBtn btn-16" onclick="changFloor(this,1)" style="margin-top: 150px">1F</button>
+ <button class="floorBtn btn-16" onclick="changFloor(this,2)" style="margin-top: 200px">2F</button>
+ <button class="floorBtn btn-16" onclick="changFloor(this,3)" style="margin-top: 250px">3F</button>
+ <button class="floorBtn btn-16" onclick="changFloor(this,4)" style="margin-top: 300px">4F</button>
+ </div>
<button class="floorBtn btn-16" onclick="testMove()" style="margin-top: 350px">娴嬭瘯绉诲姩杞�</button>
<!-- 璐ф灦 + 鍫嗗灈鏈� + 鍏ュ簱绔欑偣 -->
@@ -1012,7 +1014,11 @@
}
//妤煎眰鍒囨崲鎸夐挳
- function changFloor(x) {
+ function changFloor(e,x) {
+ $("#floorBtnBox button").each((index,item) => {
+ $(item).removeClass("btn-16-active")
+ })
+ $(e).addClass("btn-16-active")
currentLev = x
initMap(currentLev)
}
--
Gitblit v1.9.1