6296b7e380502fde812816ed71732f54182a492e.svn-base 940 B

1234567891011121314151617181920212223242526272829303132333435
  1. var gis_type;//是否为GIS中的chart 0为是
  2. $(function(){
  3. gis_type = window.location.href.split('?')[11];
  4. if(gis_type){
  5. gis_type = gis_type.split("=")[0];
  6. }
  7. var gisType = resolveUrl().gisType;
  8. if(gis_type=="gistype" || gisType=="gistype"){
  9. close_icon();
  10. };
  11. });
  12. function close_icon(){
  13. var $close = document.createElement("img");
  14. $($close).attr("src","/nwyj/images/cockpit/disabled_close.png").addClass("gis_chart_l");
  15. $($close).on("click",function(){
  16. window.parent.window.closeGisChart(resolveUrl().closeId);
  17. });
  18. $("body").append($close);
  19. };
  20. function resolveUrl(){
  21. var encondeCondition=window.location.search;
  22. var condition= decodeURI(decodeURI(encondeCondition.substring(1,encondeCondition.length)));
  23. var conditionArr=condition.split("&");
  24. var condJson={};
  25. for(var item in conditionArr){
  26. var temArr=conditionArr[item].split("=");
  27. condJson[temArr[0]]=temArr[1];
  28. }
  29. userInfo = condJson;
  30. return condJson;
  31. };