From 10ecfd0b60442d209d1ab4b749580ffb638d1992 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期三, 08 五月 2024 14:44:04 +0800
Subject: [PATCH] 数字人更新

---
 src/components/map/viewer.vue |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue
index 1a7c8e9..7118128 100644
--- a/src/components/map/viewer.vue
+++ b/src/components/map/viewer.vue
@@ -1,6 +1,8 @@
 <template>
   <div>
     <div id="sdkContainer"></div>
+
+
     <div class="listBox" v-show="viewer1Show && !isLand">
       <ul id="viewer_lsyx">
         <li
@@ -12,6 +14,7 @@
         </li>
       </ul>
     </div>
+
     <layerTreeTwoScreen v-if="layerTreeTwoScreen" />
     <!-- <div id="bottomInfo" v-html="bottomInfo"></div> -->
     <div
@@ -67,6 +70,10 @@
 import "animate.css";
 import Bus from "@tools/Bus";
 
+import mapData from "../../../static/mapData";
+import mapMsg from "../../assets/js/mapMsg";
+import vueEvents from "@/utils/vueEvent.js";
+
 let activeLi, nLayer, LWLayer;
 export default {
   name: "viewer",
@@ -96,6 +103,7 @@
   },
   computed: {
     ...mapState(["viewer1Show", "isLand", "layerTreeTwoScreen", "cesiumInit"]),
+   
   },
   watch: {
     viewer1Show(newvalue, oldvalue) {
@@ -116,15 +124,20 @@
     },
   },
   mounted() {
+    let pathName = window.location.pathname.split("/");
+    let StaticFileBaseUrl;
+    if (pathName.length != 2) {
+      StaticFileBaseUrl = `../../../${pathName[1]}/static/CimSDK/`;
+    } else {
+      StaticFileBaseUrl = `../../../static/CimSDK/`;
+    }
     this.$nextTick(function () {
       let that = this;
       //*********鍖椾含sdk************
       window.sgworld = new SmartEarth.EarthCtrl(
         "sdkContainer",
         {
-          StaticFileBaseUrl: "../../../static/CimSDK/",
-          // StaticFileBaseUrl: "../../../SW/static/CimSDK/",
-          // StaticFileBaseUrl: "../../../YZXNCS/static/CimSDK/",
+          StaticFileBaseUrl: StaticFileBaseUrl,
         },
         {},
         {},
@@ -164,6 +177,7 @@
               },
               duration: 5, //椋炶鏃堕棿8s
             });
+            // console.log("鍔犺浇瀹屾垚");
           }, 14000);
           that.setCesiumInit(true);
         }
@@ -179,6 +193,10 @@
       // Viewer.scene.screenSpaceCameraController.enableCollisionDetection = false;
       Viewer.scene.globe.translucency.frontFaceAlpha = 0.5;
       Viewer.scene.globe.undergroundColor = undefined;
+
+      mapMsg.init();
+      // rpc.clickToCoordinates();
+      // mapMsg.setTime();
       //寮�鍚紪杈戝苟鍚敤灞炴�у脊绐�
       sgworld.Creator.SimpleGraphic.setEdit(true, {
         editProp: true,

--
Gitblit v1.9.3