From dbb352c9d988dfac83da979023fe81a0a02f88e9 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期五, 12 四月 2024 16:34:20 +0800
Subject: [PATCH] 与数字人合并

---
 src/components/map/viewer1.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/components/map/viewer1.vue b/src/components/map/viewer1.vue
index 52090a8..9686e7f 100644
--- a/src/components/map/viewer1.vue
+++ b/src/components/map/viewer1.vue
@@ -285,6 +285,13 @@
     },
   },
   mounted() {
+    let pathName = window.location.pathname.split("/");
+    let StaticFileBaseUrl;
+    if (pathName.length != 2) {
+      StaticFileBaseUrl = `../../../${pathName[1]}/static/CimSDK/`;
+    } else {
+      StaticFileBaseUrl = `../../../static/CimSDK/`;
+    }
     let size = this.detectZoom();
     this.scale = (100 / size).toFixed(2);
     this.offset = "-" + ((size - 100) / 2).toFixed(2) + "%";
@@ -308,9 +315,7 @@
       window.sgworld1 = new SmartEarth.EarthCtrl(
         "sdkContainer1",
         {
-          StaticFileBaseUrl: "../../static/CimSDK/",
-          // StaticFileBaseUrl: "../../../SW/static/CimSDK/",
-          // StaticFileBaseUrl: "../../../YZXNCS/static/CimSDK/",
+          StaticFileBaseUrl: StaticFileBaseUrl,
         },
         {},
         null,
@@ -548,7 +553,8 @@
             }
             axios
               .get(
-                "http://10.10.4.115:8022/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
+                "http://10.10.4.116:8089/cs/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
+                // "http://10.10.4.115:8022/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
                   p.lon +
                   "&lat=" +
                   p.lat +
@@ -596,7 +602,8 @@
                 if (center.lon != 0 && center.lat != 0) {
                   axios
                     .get(
-                      "http://10.10.4.115:8022//poisearch/guihuacon/getInfo?ydbm=" +
+                      "http://10.10.4.116:8089/cs/poisearch/guihuacon/getInfo?ydbm=" +
+                      // "http://10.10.4.115:8022//poisearch/guihuacon/getInfo?ydbm=" +
                         response.data.NO
                     )
                     .then(

--
Gitblit v1.9.3