From 919596422fd359e62a8b224d1321c13d843c2fae Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 06 Dec 2023 16:07:03 +0800
Subject: [PATCH] pc端,导航逻辑梳理

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

diff --git a/src/store/modules/popupParams.js b/src/store/modules/popupParams.js
index 4c96489..f418130 100644
--- a/src/store/modules/popupParams.js
+++ b/src/store/modules/popupParams.js
@@ -16,6 +16,16 @@
 window.divIcon = null;
 window.divIcononces = null;
 
+function updateUrl(url) {
+  if (url.indexOf("http://172.18.4.135:9000/zhxy") != -1) {
+    url = url.replace(
+      "http://172.18.4.135:9000/zhxy",
+      "https://fkxt.jxstnu.edu.cn/changjing/gminio/zhxy"
+    );
+  }
+  return url;
+}
+
 const popupParams = {
   state: {
     ...leftNavsData.state,
@@ -191,6 +201,9 @@
       if (value.item.tpurl) {
         imgArr = value.item.tpurl.split(",");
       }
+
+      imgArr = imgArr.map((item) => updateUrl(item));
+
       commit("SET_POPUPBGURL", imgArr[0]);
       commit("SET_POPUPIMGATLAS", imgArr);
       commit("SET_POPUPQRURL", value.item.codeurl);
@@ -204,6 +217,7 @@
       ]);
       commit("SET_DETAILSPOPUP", true);
     },
+
     pcMoveView({ state, commit, dispatch }, val) {
       openlayerData.state.openlayers.map2D
         .getView()
@@ -212,6 +226,7 @@
         .getView()
         .setResolution(0.00009517844023321122);
     },
+
     pcFlyView({ state, commit, dispatch }, val) {
       openlayerData.state.openlayers.map2D
         .getView()

--
Gitblit v1.9.3