Parcourir la source

3dModeling FloorClick.js 韩正义 commit at 2021-04-26

韩正义 il y a 4 ans
Parent
commit
c17d8ada56
1 fichiers modifiés avec 53 ajouts et 0 suppressions
  1. 53 0
      3dModeling/tjby31/FloorClick.js

+ 53 - 0
3dModeling/tjby31/FloorClick.js

@@ -181,3 +181,56 @@ function creatbutElement(floorNum) {
 			</div>
             	`;
             $('#bottomBtnsRight').append($(yTVAHtml));
+        }
+        else if (name == "YTWI") {
+            var yTVAHtml =
+                `<div onclick="icon_click('YTWI',` + s + `)" class="bottomBtn" value='水浸'>
+				<span class="bottomBtnText">水浸<span>
+			</div>
+            	`;
+            $('#bottomBtnsRight').append($(yTVAHtml));
+        }
+    })
+    $('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);
+}