1234567891011121314151617181920212223242526272829303132333435 |
- var gis_type;//是否为GIS中的chart 0为是
- $(function(){
- gis_type = window.location.href.split('?')[11];
- if(gis_type){
- gis_type = gis_type.split("=")[0];
- }
- var gisType = resolveUrl().gisType;
- if(gis_type=="gistype" || gisType=="gistype"){
- close_icon();
- };
-
- });
- function close_icon(){
- var $close = document.createElement("img");
- $($close).attr("src","/nwyj/images/cockpit/disabled_close.png").addClass("gis_chart_l");
- $($close).on("click",function(){
- window.parent.window.closeGisChart(resolveUrl().closeId);
- });
- $("body").append($close);
- };
- function resolveUrl(){
- var encondeCondition=window.location.search;
- var condition= decodeURI(decodeURI(encondeCondition.substring(1,encondeCondition.length)));
- var conditionArr=condition.split("&");
- var condJson={};
- for(var item in conditionArr){
- var temArr=conditionArr[item].split("=");
- condJson[temArr[0]]=temArr[1];
- }
- userInfo = condJson;
- return condJson;
- };
|