南昌市物联网技防平台-前端
zengh
2021-03-09 5a731fa204428b68f95a2c656c25d35e838d110d
public/map/index.html
@@ -38,9 +38,13 @@
    function getQueryStringByKey(key) {
      return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1];
    }
    var ISinit = getQueryStringByKey('ISinit');
    var openId = getQueryStringByKey('openid');
    if(ISinit == null){
      init(openId,null);
    }
    function init(openId,locationObj) {
      $.divselect("#divselect", "#inputselect");
      require(["base/framework", "base/AppEvent"],
        function (framework, AppEvent) {
          _framework = new framework();
@@ -53,8 +57,6 @@
              map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14);
            }
          });
          var openId = getQueryStringByKey('openid');
          if (openId) showFun(openId);
        }
      );