|
@@ -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";
|
|
@@ -559,6 +562,7 @@ $(function() {
|
|
|
xxGEO(jtxljcdd);
|
|
|
xrxx(jtxljcdd);
|
|
|
}else if(xxtx == "交通违法处理机构"){
|
|
|
+ console.log(jtwfcljg)
|
|
|
xxGEO(jtwfcljg);
|
|
|
xrxx(jtwfcljg);
|
|
|
}else if(xxtx == "交通事故处理机构"){
|
|
@@ -655,7 +659,7 @@ $(function() {
|
|
|
allArr.map(function(item, index) {
|
|
|
cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
});
|
|
|
- let getClick = cilckList.filter(item => {
|
|
|
+ let getClick = cilckList.filter(function(item) {
|
|
|
return item.address == add_text
|
|
|
});
|
|
|
xxGEO(getClick);
|
|
@@ -668,7 +672,7 @@ $(function() {
|
|
|
allArr.map(function(item, index) {
|
|
|
cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
});
|
|
|
- let getClick = cilckList.filter(item => {
|
|
|
+ let getClick = cilckList.filter(function(item) {
|
|
|
return item.address == add_text
|
|
|
});
|
|
|
xxGEO(getClick);
|
|
@@ -685,7 +689,7 @@ $(function() {
|
|
|
allArr.map(function(item, index) {
|
|
|
cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
});
|
|
|
- let getClick = cilckList.filter(item => {
|
|
|
+ let getClick = cilckList.filter(function(item) {
|
|
|
return item.address == add_text
|
|
|
});
|
|
|
xxGEO(getClick);
|
|
@@ -830,6 +834,8 @@ $(function() {
|
|
|
}, "重庆市");
|
|
|
}
|
|
|
};
|
|
|
+ // sContnet += "<br><a class='correct_html' target='_blank' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
+
|
|
|
|
|
|
function addGEO(arr){
|
|
|
var addToFirst;
|
|
@@ -846,6 +852,11 @@ $(function() {
|
|
|
},100);
|
|
|
}
|
|
|
|
|
|
+ // $(document).on('click', '.correct_html', function(){
|
|
|
+ // console.log(11111);
|
|
|
+ // window.location.href=''
|
|
|
+ // })
|
|
|
+
|
|
|
// "<li class='change-but'>" +
|
|
|
// "<input type='button' name='' id='' value='公交' class='but-bus' />" +
|
|
|
// "<input type='button' name='' id='' value='自驾' class='but-car' />" +
|
|
@@ -965,7 +976,6 @@ $(function() {
|
|
|
$(document).on("click", ".hide_list", function() {
|
|
|
var TFdisplay = $(this).siblings('.title-first1').css('display');
|
|
|
$(".title-first1").fadeIn(500);
|
|
|
- console.log(TFdisplay)
|
|
|
if (TFdisplay == 'flex') {
|
|
|
$(this).text('点击展开');
|
|
|
$(".title-first1").fadeOut(500);
|
|
@@ -1114,14 +1124,14 @@ $(function() {
|
|
|
map.addOverlay(marker);
|
|
|
if (getIndex) {
|
|
|
marker.openInfoWindow(infoWindow);
|
|
|
- $(".one_bus").click(async function () {
|
|
|
+ $(".one_bus").click(async function() {
|
|
|
var _this = this;
|
|
|
await new Promise(function (resolve, reject) {
|
|
|
busClickEvent(_this);
|
|
|
resolve();
|
|
|
});
|
|
|
});
|
|
|
- $(".two_car").click(async function () {
|
|
|
+ $(".two_car").click(async function() {
|
|
|
var _this = this;
|
|
|
await new Promise(function (resolve, reject) {
|
|
|
drivingClickEvent(_this);
|