From 10e80ad25eb799f7c7ddd0b55d8d7537ba6d428f Mon Sep 17 00:00:00 2001 From: chuguofei <1633295391@qq.com> Date: Thu, 25 May 2023 22:30:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A7=BB=E5=8A=A8=E7=AB=AF=E7=BB=84?= =?UTF-8?q?=E6=80=81=E5=B7=A5=E5=85=B7=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/page/visual/show.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/page/visual/show.html b/src/main/webapp/page/visual/show.html index dbbe17c..a8d49ee 100644 --- a/src/main/webapp/page/visual/show.html +++ b/src/main/webapp/page/visual/show.html @@ -41,7 +41,7 @@ -
@@ -80,6 +80,7 @@
client: '' ,
scene_id: '' , // 场景id
dis_type: '' , // 展示类型
+ disTypeFlag: false,
lastTime: new Date().getTime() ,
popwidth: '' // 弹窗宽度
};
@@ -105,10 +106,12 @@
that.mqttInit();
// 初始化设备状态
initDeviceStatus();
-
- if(data.dis_type == 1 ){
+
+
+ this.disTypeFlag = data.dis_type == 1
+ if(data.dis_type == 1 ){
that.popwidth = '80%' ;
- document.getElementById("scale").setAttribute("style","display:none")
+ // document.getElementById("scale").setAttribute("style","display:none")
}else{
that.popwidth = '30%' ;
}