From 9ff1f1f221aeafc99653c846b2c2442f9c033ee5 Mon Sep 17 00:00:00 2001 From: tqs <56479841@qq.com> Date: 星期二, 11 十月 2022 08:08:35 +0800 Subject: [PATCH] Merge remote-tracking branch 'gitbit/gzynwcs' into gzynwcs --- src/main/webapp/static/js/console.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/console.js b/src/main/webapp/static/js/console.js index 611e6b7..6372ad7 100644 --- a/src/main/webapp/static/js/console.js +++ b/src/main/webapp/static/js/console.js @@ -90,13 +90,15 @@ } // 妤煎眰 for (let i = 0; i < areas.length;i++) { + let stnss = areas[i].stns let floor = areas[i].text floorId = areas[i].id var position = (i+1)*100 floorBtn = "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>" - if (areas.length = 1) { + console.log(mapInfo.areas[0].floors.length) + if (mapInfo.areas[0].floors.length == 1) { floorBtnss = '' } else { floorBtnss = floorBtnss + floorBtn @@ -135,7 +137,7 @@ $(".main-part").append(floorInfo) $("#line-total").html(total[0]) - listenChange(); + // listenChange(); } function changFloor(e) { @@ -144,5 +146,5 @@ $(".main-part").append(floorInfo) $("#line-total").empty() $("#line-total").html(total[e]) - listenChange(); + // listenChange(); } \ No newline at end of file -- Gitblit v1.9.1