瀏覽代碼

3dModeling FloorClick.js 沈礼文 commit at 2021-03-03

沈礼文 4 年之前
父節點
當前提交
76132c7aab
共有 1 個文件被更改,包括 41 次插入0 次删除
  1. 41 0
      3dModeling/tjby20/FloorClick.js

+ 41 - 0
3dModeling/tjby20/FloorClick.js

@@ -193,3 +193,44 @@ function creatbutElement(floorNum) {
     })
     $('head').append($(`
         <style>
+          .bottomBtn{
+	        text-align: center;
+            left:200px;
+	        width: 100px;
+    	    height: 31px;
+        	margin-top: 7px;
+            top:650px;
+           // display: inline-block;
+        	background-image: url(${baseURL}ySL6MT.png);
+                    }
+        .bottomBtnsRight{
+            position: relative;
+         //   top:481px;
+            bottom:-459px;
+	        justify-content: left;
+	      //  width: calc(100% - 203px);
+	        height: 40px;
+                }
+         .bottomBtnText{
+            font-size: 12px;
+            display: inline-block;
+            text-align:center;
+            padding-left: 15px;
+            color:rgba(255,255,255,0.5);
+            letter-spacing: 2px;
+            line-height: 36px;
+                  }
+        </style>
+    `));
+}
+//创建设备点位标识
+function icon_click(deviceType, floorNum) {
+    buildingStore;
+    deviceList = [];
+    for (var i = 0; i < buildingStore.length; i++) {
+        if (floorNum == buildingStore[i].min_level) {
+            deviceList.push(buildingStore[i]);
+        }
+    }
+    create_ui(deviceType, floorNum, deviceList);
+}