浏览代码

地图嵌套层级深,导致搜索失效

zhoupeng 1 年之前
父节点
当前提交
587438e285
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      nngkxxdp/src/main/resources/static/district/js/sy.js

+ 9 - 9
nngkxxdp/src/main/resources/static/district/js/sy.js

@@ -100,7 +100,7 @@ $(function() {
 				cycsbms.push(res.data.cycsbms[i])
 				cycsbms.push(res.data.cycsbms[i])
 				allArr.push(res.data.cycsbms[i]);
 				allArr.push(res.data.cycsbms[i]);
 				getAllJson.push(res.data.cycsbms[i]);
 				getAllJson.push(res.data.cycsbms[i]);
-                contrastArrey.push(res.data.cycsbms[i]);	
+                contrastArrey.push(res.data.cycsbms[i]);
 			});
 			});
 			$.each(res.data.cyys,function(i){
 			$.each(res.data.cyys,function(i){
 				cyy.push(res.data.cyys[i])
 				cyy.push(res.data.cyys[i])
@@ -442,7 +442,7 @@ $(function() {
 		error: function(err) {},
 		error: function(err) {},
 	});
 	});
 
 
-	var str=window.location.search;
+	var str=window.parent.location.search;
 	str = decodeURI(str)
 	str = decodeURI(str)
 	let name = "se"
 	let name = "se"
 	// $("[title='重庆市第十一中学校']").click();
 	// $("[title='重庆市第十一中学校']").click();
@@ -574,7 +574,7 @@ $(function() {
             $(".img_tab img").parents(".flex_li").siblings().find(".pop").css("display", "none");
             $(".img_tab img").parents(".flex_li").siblings().find(".pop").css("display", "none");
         }
         }
     });
     });
-	
+
 	// 点击受理场所下的街镇,页面上出现导航
 	// 点击受理场所下的街镇,页面上出现导航
 	$('.text-first p').click(function() {
 	$('.text-first p').click(function() {
 		$(this).addClass('tab').siblings().removeClass('tab');
 		$(this).addClass('tab').siblings().removeClass('tab');
@@ -592,7 +592,7 @@ $(function() {
 		xxGEO(silgleJz);
 		xxGEO(silgleJz);
 		xrjz(silgleJz);
 		xrjz(silgleJz);
 	});
 	});
-	
+
 	$('.mapnav').click(function() {
 	$('.mapnav').click(function() {
 		$(this).addClass("choice");
 		$(this).addClass("choice");
 		$(this).parent("li").siblings().children(".mapnav").removeClass("choice");
 		$(this).parent("li").siblings().children(".mapnav").removeClass("choice");
@@ -996,7 +996,7 @@ $(function() {
 		}
 		}
 		$(this).parents('.title-first1').css('background-color', '#d6e5f7').siblings().css('background-color','');
 		$(this).parents('.title-first1').css('background-color', '#d6e5f7').siblings().css('background-color','');
 	});
 	});
-	
+
 	// 鼠标hover时,出现我要纠错
 	// 鼠标hover时,出现我要纠错
 	$(document).on('mouseover','.title-first, .title-first1',function(){
 	$(document).on('mouseover','.title-first, .title-first1',function(){
 		$(this).find('.correct_text').removeAttr('style').css({'color':'#2775CC','text-decoration':'underline'});
 		$(this).find('.correct_text').removeAttr('style').css({'color':'#2775CC','text-decoration':'underline'});
@@ -1484,7 +1484,7 @@ $(function() {
 			"条记录"
 			"条记录"
 		);
 		);
 	}
 	}
-	
+
 	// 渲染查阅场所列表
 	// 渲染查阅场所列表
 	function cycsone(cycsbms) {
 	function cycsone(cycsbms) {
 		var html3 = ''
 		var html3 = ''
@@ -2995,7 +2995,7 @@ $(function() {
 		drivingRoute.setPolicy(drivingRoutePolicy[liIndex]);
 		drivingRoute.setPolicy(drivingRoutePolicy[liIndex]);
 		drivingRoute.search(start, end);
 		drivingRoute.search(start, end);
 	});
 	});
-	
+
 	// 写受理场所和查阅场所前的icon切换
 	// 写受理场所和查阅场所前的icon切换
 	$('.top-title>li').click(function() {
 	$('.top-title>li').click(function() {
 		var con = $(this).text().trim();
 		var con = $(this).text().trim();
@@ -3040,7 +3040,7 @@ $(function() {
 			getPointPostAjax(jzs);
 			getPointPostAjax(jzs);
 		}
 		}
 	});
 	});
-	
+
 	$('.second-title2>li').click(function() {
 	$('.second-title2>li').click(function() {
 		// 解决点击事件,多次执行的问题
 		// 解决点击事件,多次执行的问题
 		const xz = $(this).text().trim();
 		const xz = $(this).text().trim();
@@ -3322,4 +3322,4 @@ $(function() {
 		}
 		}
 		replaceParamVal2('se','')
 		replaceParamVal2('se','')
 	});
 	});
-})
+})