李雪梅 2 gadi atpakaļ
vecāks
revīzija
7375cf107f
1 mainītis faili ar 14 papildinājumiem un 1 dzēšanām
  1. 14 1
      nngkxxdp/src/main/resources/static/district/js/sy.js

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

@@ -350,6 +350,19 @@ $(function() {
 		addGEO(getClick);
 	});
 
+	$('.text-second').on('click', '.title-first1', function() {
+		var add_text = $(this).find('.jzdz').text();
+		let cilckList = [];
+		allArr.map(function(item, index) {
+			cilckList.push(Object.assign({},item,{clickIndex: 1}))
+		});
+		let getClick = cilckList.filter(item => {
+			return item.address == add_text
+		});
+		xxGEO(getClick);
+		addGEO(getClick);
+	});
+
 	// $('.search-result').click(function(){
 	// 	console.log($(this).children('.title-first1'))
 	// })
@@ -357,7 +370,7 @@ $(function() {
 	$('.search-result').on('click', '.title-first1', function() {
 		var add_text = $(this).find('.jzdz').text();
 		let cilckList = [];
-		// console.log(add_text);
+		console.log(add_text);
 		allArr.map(function(item, index) {
 			cilckList.push(Object.assign({},item,{clickIndex: 1}))
 		});