From d9a44b11e08ce78a9935345f54341c2f7183edf2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 28 二月 2023 15:47:30 +0800 Subject: [PATCH] 1 --- public/LfSKyline/js/index.js | 12 ++++++------ public/LfSKyline/css/index.css | 25 ++++++++++++++++++------- public/LfSKyline/index.html | 13 +++---------- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/public/LfSKyline/css/index.css b/public/LfSKyline/css/index.css index d64419c..1e67f0a 100644 --- a/public/LfSKyline/css/index.css +++ b/public/LfSKyline/css/index.css @@ -30,7 +30,6 @@ display: flex; } - .textp1 { font-size: 30px; font-family: Microsoft YaHei; @@ -79,7 +78,6 @@ .content { height: calc(100% - 60px); width: 100%; - display: flex; } .left_content { @@ -93,21 +91,34 @@ .right_content { - + width: calc(100% - 325px); height: 100%; - flex: 1; + box-sizing: border-box; + float: left; +} +.rb { + border-right: 1px solid #A0A0A0; + border-bottom: 1px solid #A0A0A0; +} + +#TEInfoEx { + width: calc(100% - 8px); + height: calc(100% - 35px); + box-sizing: border-box; } #TEWinEx { width: 100%; height: 100%; - + box-sizing: border-box; } .fieldset { - padding: 10px 5px; - height: calc(100% - 20px); + padding: 10px 0 10px 8px; + height: 100%; + width: 100%; + box-sizing: border-box; } #layers { diff --git a/public/LfSKyline/index.html b/public/LfSKyline/index.html index 26a5731..c48818b 100644 --- a/public/LfSKyline/index.html +++ b/public/LfSKyline/index.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +锘�<!DOCTYPE html> <html lang="en"> <head> @@ -17,15 +17,13 @@ <script> window.app = { fly: window.sceneConfig.fly, + //fly: "http://103.85.165.99:8050/LFData/fly/lfgd.fly", mainUrl: location.href.substring(0, location.href.lastIndexOf("/") + 1) } document.writeln("<link href='./layui-v2.6.8/css/layui.css?" + new Date().getTime() + "' rel='stylesheet' \/>"); document.writeln("<link href='./css/index.css?" + new Date().getTime() + "' rel='stylesheet' \/>"); document.writeln("<script src='./js/detect.js?" + new Date().getTime() + "'><\/script>"); document.writeln("<script src='./js/index.js?" + new Date().getTime() + "'><\/script>"); - - // $("#aDownload").attr("href", LFData + "/soft/TEv7.4.zip"); - </script> <style> a:hover { @@ -96,12 +94,7 @@ <fieldset class="fieldset"> <legend>鏁版嵁鐩綍</legend> <!-- <div id="layers"></div> --> - <div> - <object id="TerraExplorerInformationWindowEx" classid="CLSID:3A4F919B-65A8-11D5-85C1-0001023952C1"></object> - - </div> - - + <object id="TEInfoEx" classid="CLSID:3A4F919B-65A8-11D5-85C1-0001023952C1"></object> </fieldset> </div> <div class="right_content"> diff --git a/public/LfSKyline/js/index.js b/public/LfSKyline/js/index.js index 8e20f55..879f74e 100644 --- a/public/LfSKyline/js/index.js +++ b/public/LfSKyline/js/index.js @@ -15,25 +15,26 @@ showDownload: function () { $("#mapView").hide(); $("#download").show(); - let a = document.getElementById('aDownload'); + var a = document.getElementById('aDownload'); a.href = LFData + "/soft/TEv7.4.zip"; }, initSG: function () { - TerraExplorerInformationWindowEx.AttachTo3dWindow(TEWinEx); + TEInfoEx.AttachTo3dWindow(TEWinEx); SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66 SG.AttachEvent("OnLoadFinished", this.loadFinished); SG.Open(app.fly); }, loadFinished: function () { + $("#TEInfoEx").addClass("rb"); + SG.ProjectTree.ShowSearchTool = false; SG.DetachEvent("OnLoadFinished", Index.loadFinished); // var layers = []; // Index.getLayers("", layers); // Index.ininTrees("layers", layers); // Index.flyToStart(); - }, - + // getLayers: function (pid, layers) { var next = SG.ProjectTree.GetNextItem(pid, 11); while (next) { @@ -108,8 +109,7 @@ // this.menuFlag = !this.menuFlag; } } + $(function () { Index.init(); - - }); -- Gitblit v1.9.3