李雪梅 %!s(int64=2) %!d(string=hai) anos
pai
achega
03af4ce390
Modificáronse 1 ficheiros con 16 adicións e 2 borrados
  1. 16 2
      nngkxxdp/src/main/resources/static/district/js/sy.js

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

@@ -1,3 +1,6 @@
+// var PATH = "http://data.cqna.gov.cn";
+//var PATH = "http://localhost:7777";
+var PATH = "";
 var is_mobi = navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
 if (is_mobi) {
     window.location.href = "sy_mobile.html";
@@ -42,6 +45,7 @@ $(function() {
 	var gy = [];
 	var tc = [];
 	var gc = [];
+	var hydjjg = [];
 	var gjIndex,gjImg;
 	var zjIndex,zjImg;
 	// 接收json内所有数据
@@ -51,9 +55,10 @@ $(function() {
 	var cycsbms =[]
 	$.ajax({
 		type: 'GET',
-		url: 'http://192.168.1.253:7777/mapdata/getMapDataAll',
+		url: PATH + '/mapdata/getMapDataAll',
 		async: false,
 		success: function(res) {
+			console.log(res.data.hydjcs)
 			$.each(res.data.xxs,function(i){
 				xxs.push(res.data.xxs[i]);
 				allArr.push(res.data.xxs[i]);
@@ -206,7 +211,13 @@ $(function() {
 				allArr.push(res.data.gcs[i]);
 				getAllJson.push(res.data.gcs[i]);
                 contrastArrey.push(res.data.gcs[i]);
-			})
+			});
+			// $.each(res.data.hydjjg,function(i){
+			// 	hydjjg.push(res.data.gcs[i])
+			// 	// allArr.push(res.data.gcs[i]);
+			// 	// getAllJson.push(res.data.gcs[i]);
+            //     // contrastArrey.push(res.data.gcs[i]);
+			// })
 		},
 		error: function(err) {},
 	});
@@ -342,6 +353,9 @@ $(function() {
 		}else if(xxtx == "公厕"){
 			xxGEO(gc);
 			xrxx(gc);
+		}else if(xxtx == "婚姻登记机构"){
+			xxGEO(hydjjg);
+			xrxx(hydjjg);
 		}
 	});