校园-江西科技师范大学-前端
shuishen
2023-12-06 919596422fd359e62a8b224d1321c13d843c2fae
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()