Browse Source

我要就粗

李雪梅 2 years ago
parent
commit
67c42dff22
1 changed files with 9 additions and 2 deletions
  1. 9 2
      nngkxxdp/src/main/resources/static/district/js/sy.js

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

@@ -670,8 +670,8 @@ $(function() {
 	});
 
 	// 点击列表中的一条,重置地图中心点
-	$(document).on('click', '.title-first', function() {
-		var add_text = $(this).find('.jzdz').text();
+	$(document).on('click', '.title-first li', function() {
+		var add_text = $(this).parents('.title-first').find('.jzdz').text();
 		let cilckList = [];
 		allArr.map(function(item, index) {
 			cilckList.push(Object.assign({},item,{clickIndex: 1}))
@@ -683,6 +683,13 @@ $(function() {
 		addGEO(getClick);
 	});
 
+	$(document).on('mouseover','.title-first',function(){
+		$(this).find('.correct_text').removeAttr('style').css({'color':'#2775CC','text-decoration':'underline'});
+	});
+	$(document).on('mouseleave','.title-first',function(){
+		$(this).find('.correct_text').css({'color':'#2775CC','text-decoration':'underline','visibility':'hidden'});
+	});
+
 	$('.text-second').on('click', '.title-first1 ul li', function() {
 		var add_text = $(this).parents('ul').find('.jzdz').text();
 		let cilckList = [];