From 9fa6e9ea26470378bec1628de2968d52c3bc135f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 28 Mar 2022 10:52:30 +0800
Subject: [PATCH] 兼容问题处理

---
 src/store/modules/popupParams.js |   82 ++++++++++++++++++++--------------------
 1 files changed, 41 insertions(+), 41 deletions(-)

diff --git a/src/store/modules/popupParams.js b/src/store/modules/popupParams.js
index 04b91f7..045b22a 100644
--- a/src/store/modules/popupParams.js
+++ b/src/store/modules/popupParams.js
@@ -1,7 +1,7 @@
 import leftNavsData from './pc/leftNavsData'
-window.labelLayer = null;
-window.divIcon = null;
-window.divIcononces = null;
+window.labelLayer = null
+window.divIcon = null
+window.divIcononces = null
 
 const popupParams = {
     state: {
@@ -37,70 +37,70 @@
     },
     mutations: {
         ...leftNavsData.mutations,
-        SET_POPUPBGURL(state, popupBgUrl) {
+        SET_POPUPBGURL (state, popupBgUrl) {
             // console.log(popupBgUrl, "see33333")
             if (!popupBgUrl) {
                 return
             }
             state.popupBgUrl = popupBgUrl
         },
-        SET_POPUPQRURL(state, pupupQRUrl) {
+        SET_POPUPQRURL (state, pupupQRUrl) {
             state.pupupQRUrl = pupupQRUrl
         },
-        SET_TERMINUS(state, terminus) {
+        SET_TERMINUS (state, terminus) {
             state.terminus = terminus
         },
-        SET_STARTINGPOINT(state, startingPoint) {
+        SET_STARTINGPOINT (state, startingPoint) {
             state.startingPoint = startingPoint
         },
-        SET_POINTPOSITION(state, pointPosition) {
+        SET_POINTPOSITION (state, pointPosition) {
             state.pointPosition = pointPosition
         },
-        SET_STATENAME(state, stateName) {
+        SET_STATENAME (state, stateName) {
             state.stateName = stateName
         },
-        SET_SITENAME(state, siteName) {
+        SET_SITENAME (state, siteName) {
             state.siteName = siteName
         },
-        SET_TELEPHONE(state, telephone) {
+        SET_TELEPHONE (state, telephone) {
             state.telephone = telephone
         },
-        SET_INTRODUCETEXT(state, introduceText) {
+        SET_INTRODUCETEXT (state, introduceText) {
             state.introduceText = introduceText
         },
-        SET_PANORAMAURL(state, panoramaUrl) {
+        SET_PANORAMAURL (state, panoramaUrl) {
             state.panoramaUrl = panoramaUrl
         },
-        SET_PANORAMAPOPUP(state, panoramaPopup) {
+        SET_PANORAMAPOPUP (state, panoramaPopup) {
             state.panoramaPopup = panoramaPopup
         },
-        SET_MONITORURL(state, monitorUrl) {
+        SET_MONITORURL (state, monitorUrl) {
             state.monitorUrl = monitorUrl
         },
-        SET_MONITORPOPUP(state, monitorPopup) {
+        SET_MONITORPOPUP (state, monitorPopup) {
             state.monitorPopup = monitorPopup
         },
-        SET_DETAILSPOPUP(state, detailsPopup) {
+        SET_DETAILSPOPUP (state, detailsPopup) {
             state.detailsPopup = detailsPopup
         },
-        SET_POPUPIMGATLAS(state, popupImgAtlas) {
+        SET_POPUPIMGATLAS (state, popupImgAtlas) {
             state.popupImgAtlas = popupImgAtlas
         },
-        SET_TEACHLIST(state, teachList) {
+        SET_TEACHLIST (state, teachList) {
             state.teachList = teachList
         },
-        SET_LIVELIST(state, liveList) {
+        SET_LIVELIST (state, liveList) {
             state.liveList = liveList
         },
 
-        SET_ADDTAGPOPUP(state, addTagPopup) {
+        SET_ADDTAGPOPUP (state, addTagPopup) {
             state.addTagPopup = addTagPopup
         },
 
-        SET_ADDTAGPOSITION(state, addTagPosition) {
+        SET_ADDTAGPOSITION (state, addTagPosition) {
             state.addTagPosition = addTagPosition
         },
-        initLabelLayer(state, val) {
+        initLabelLayer (state, val) {
             if (!window.labelLayer) {
                 window.labelLayer = new global.DC.HtmlLayer('labelLayer')
                 val.addLayer(window.labelLayer)
@@ -108,12 +108,12 @@
             state.myviewer = val
         },
 
-        clearLabelLayerIcon(state, val) {
+        clearLabelLayerIcon (state, val) {
             if (window.labelLayer) {
                 window.labelLayer.clear()
             }
         },
-        openLabelLayer(state, val) {
+        openLabelLayer (state, val) {
             // console.log(val, "see")
             if (val.show) {
                 state.nowlabelLayerData = val.data
@@ -123,7 +123,7 @@
                 state.labelLayerDataShow = false
             }
         },
-        CLEAR_ALL(state, param) {
+        CLEAR_ALL (state, param) {
             state.siteName = param
             state.introduceText = param
             state.telephone = param
@@ -133,13 +133,13 @@
             state.teachList = []
             state.liveList = []
         },
-        set_closeMapClick(state, val) {
+        set_closeMapClick (state, val) {
             state.closeMapClick = val
         }
     },
     actions: {
         ...leftNavsData.actions,
-        openPopups({
+        openPopups ({
             state,
             commit,
             dispatch
@@ -172,7 +172,7 @@
                 viewer: this.viewer
             })
         },
-        setOurDataInPoput({
+        setOurDataInPoput ({
             state,
             commit,
             dispatch
@@ -202,7 +202,7 @@
             ])
             commit('SET_DETAILSPOPUP', true)
         },
-        pcMoveView({
+        pcMoveView ({
             state,
             commit,
             dispatch
@@ -213,7 +213,7 @@
                 destination: global.DC.Namespace.Cesium.Cartesian3.fromDegrees(
                     +val.jd,
                     +val.wd,
-                    400.0
+                    950.0
                 ),
                 orientation: {
                     // 指向
@@ -224,18 +224,18 @@
                 }
             })
         },
-        pcFlyView({
+        pcFlyView ({
             state,
             commit,
             dispatch
         }, val) {
             val.viewer.flyToPosition(
                 new global.DC.Position(Number(val.jd), Number(val.wd), Number(300), Number(0), Number(-90), Number(0)),
-                function () {},
+                function () { },
                 2
             )
         },
-        addLabelLayerIcon({
+        addLabelLayerIcon ({
             state,
             commit,
             dispatch
@@ -275,7 +275,7 @@
                     // const position = e.position
                     const lntLat = [e.overlay._position._lng, e.overlay._position._lat]
                     // console.log(position, lntLat, list[i], state.myviewer, "see")
-                    new global.DC.DivForms(global.viewer, {
+                    var box = new global.DC.DivForms(global.viewer, {
                         domId: 'labelLayerid',
                         position: [
                             global.DC.Transform.transformWGS84ToCartesian(
@@ -293,7 +293,7 @@
                         destination: global.DC.Namespace.Cesium.Cartesian3.fromDegrees(
                             lntLat[0],
                             lntLat[1],
-                            400.0
+                            950.0
                         ),
                         orientation: {
                             // 指向
@@ -311,7 +311,7 @@
                 window.labelLayer.addOverlay(window.divIcononces)
             }
         },
-        addLabelLayerIconMobelUse({
+        addLabelLayerIconMobelUse ({
             state,
             commit,
             dispatch
@@ -330,7 +330,7 @@
                 state.addSignList = !state.addSignList
                 return
             }
-            for (let i in list) {
+            for (const i in list) {
                 window.divIcon = new global.DC.DivIcon(
                     new global.DC.Position(
                         Number(list[i].jd),
@@ -356,7 +356,7 @@
                     // const position = e.position
                     const lntLat = [e.overlay._position._lng, e.overlay._position._lat]
                     // console.log(position, lntLat, list[i], state.myviewer, "see")
-                    new global.DC.DivForms(global.viewer, {
+                    var box = new global.DC.DivForms(global.viewer, {
                         domId: 'labelLayerid',
                         position: [
                             global.DC.Transform.transformWGS84ToCartesian(
@@ -374,7 +374,7 @@
                         destination: global.DC.Namespace.Cesium.Cartesian3.fromDegrees(
                             lntLat[0],
                             lntLat[1],
-                            400.0
+                            950.0
                         ),
                         orientation: {
                             // 指向
@@ -395,4 +395,4 @@
     }
 }
 
-export default popupParams
\ No newline at end of file
+export default popupParams

--
Gitblit v1.9.3