|
@@ -703,190 +703,194 @@ $(function() {
|
|
|
$.each(getClick,function(i){
|
|
|
getClickDep = getClick[i].dep
|
|
|
});
|
|
|
- $.ajax({
|
|
|
- type: 'GET',
|
|
|
- url: PATH + '/mapdata/getHandMatterPage',
|
|
|
- // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
- async: false,
|
|
|
- dataType: 'json',
|
|
|
- data: {
|
|
|
- page: 1,
|
|
|
- limit: 4,
|
|
|
- type: 0,
|
|
|
- matterDept: getClickDep
|
|
|
- },
|
|
|
- success: function(res) {
|
|
|
- if (res.data != null) {
|
|
|
- map.clearOverlays();
|
|
|
- var addFirst;
|
|
|
- for (var z = 0; z < getClick.length; z++) {
|
|
|
- var add = getClick[z].address;
|
|
|
- const tempAdd = add;
|
|
|
- myGeo.getPoint(tempAdd, function(point) {
|
|
|
- if (point) {
|
|
|
- var address = new BMap.Point(point.lng, point.lat);
|
|
|
- addFirst = address;
|
|
|
- for (var index = 0; index < getClick.length; index++) {
|
|
|
- var getClickdep = getClick[index].dep;
|
|
|
- var getClickaddre = getClick[index].address;
|
|
|
- var getClicktype = getClick[index].type;
|
|
|
- var getClickspecial = getClick[index].specialtype;
|
|
|
- var getClicktag = getClick[index].tag;
|
|
|
- var getClicktag2 = getClick[index].tag2;
|
|
|
- var getClicktag3 = getClick[index].tag3;
|
|
|
- var getClickcontent = getClick[index].content;
|
|
|
- var getClickimg = getClick[index].img;
|
|
|
- var getClicktel = getClick[index].tel;
|
|
|
- var getClicktime = getClick[index].time;
|
|
|
- var getClickIndex = getClick[index].clickIndex;
|
|
|
- var getClickUrl = getClick[index].url;
|
|
|
- var getClickSptype = getClick[index].sptype;
|
|
|
- var sContnet = ''
|
|
|
- sContnet += "<ul class='titleFirstDifrenet'>"
|
|
|
- sContnet += "<li class='title_flex' title='"+getClickdep+"'>"
|
|
|
- sContnet += getClickdep
|
|
|
- if (getClicktype == "" || getClicktype == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
- if (getClickspecial == "中学") {
|
|
|
- if (getClicktype == "中学"){
|
|
|
- sContnet += ''
|
|
|
+ if (getClick.length == 0){
|
|
|
+ xxGEO(getClick1)
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: PATH + '/mapdata/getHandMatterPage',
|
|
|
+ // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
+ async: false,
|
|
|
+ dataType: 'json',
|
|
|
+ data: {
|
|
|
+ page: 1,
|
|
|
+ limit: 4,
|
|
|
+ type: 0,
|
|
|
+ matterDept: getClickDep
|
|
|
+ },
|
|
|
+ success: function(res) {
|
|
|
+ if (res.data != null) {
|
|
|
+ map.clearOverlays();
|
|
|
+ var addFirst;
|
|
|
+ for (var z = 0; z < getClick.length; z++) {
|
|
|
+ var add = getClick[z].address;
|
|
|
+ const tempAdd = add;
|
|
|
+ myGeo.getPoint(tempAdd, function(point) {
|
|
|
+ if (point) {
|
|
|
+ var address = new BMap.Point(point.lng, point.lat);
|
|
|
+ addFirst = address;
|
|
|
+ for (var index = 0; index < getClick.length; index++) {
|
|
|
+ var getClickdep = getClick[index].dep;
|
|
|
+ var getClickaddre = getClick[index].address;
|
|
|
+ var getClicktype = getClick[index].type;
|
|
|
+ var getClickspecial = getClick[index].specialtype;
|
|
|
+ var getClicktag = getClick[index].tag;
|
|
|
+ var getClicktag2 = getClick[index].tag2;
|
|
|
+ var getClicktag3 = getClick[index].tag3;
|
|
|
+ var getClickcontent = getClick[index].content;
|
|
|
+ var getClickimg = getClick[index].img;
|
|
|
+ var getClicktel = getClick[index].tel;
|
|
|
+ var getClicktime = getClick[index].time;
|
|
|
+ var getClickIndex = getClick[index].clickIndex;
|
|
|
+ var getClickUrl = getClick[index].url;
|
|
|
+ var getClickSptype = getClick[index].sptype;
|
|
|
+ var sContnet = ''
|
|
|
+ sContnet += "<ul class='titleFirstDifrenet'>"
|
|
|
+ sContnet += "<li class='title_flex' title='"+getClickdep+"'>"
|
|
|
+ sContnet += getClickdep
|
|
|
+ if (getClicktype == "" || getClicktype == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ if (getClickspecial == "中学") {
|
|
|
+ if (getClicktype == "中学"){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClicktype
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClickspecial
|
|
|
+ sContnet += "</p>"
|
|
|
} else {
|
|
|
sContnet += "<p class='flex_blue'>· "
|
|
|
sContnet += getClicktype
|
|
|
sContnet += "</p>"
|
|
|
}
|
|
|
- sContnet += "<p class='flex_blue'>· "
|
|
|
- sContnet += getClickspecial
|
|
|
- sContnet += "</p>"
|
|
|
- } else {
|
|
|
- sContnet += "<p class='flex_blue'>· "
|
|
|
- sContnet += getClicktype
|
|
|
- sContnet += "</p>"
|
|
|
+ sContnet += "</li>"
|
|
|
}
|
|
|
- sContnet += "</li>"
|
|
|
- }
|
|
|
- if (getClicktag == "" || getClicktag == undefined) {
|
|
|
- sContnet += ""
|
|
|
- } else {
|
|
|
- sContnet += "<li class='flex_orange'>"
|
|
|
- sContnet += "<div class='three_tag'>"
|
|
|
- sContnet += getClicktag
|
|
|
- if (getClicktag2 == undefined) {
|
|
|
- sContnet += "</div>"
|
|
|
+ if (getClicktag == "" || getClicktag == undefined) {
|
|
|
+ sContnet += ""
|
|
|
} else {
|
|
|
- sContnet += "</div>"
|
|
|
+ sContnet += "<li class='flex_orange'>"
|
|
|
sContnet += "<div class='three_tag'>"
|
|
|
- sContnet += getClicktag2
|
|
|
- sContnet += "</div>"
|
|
|
+ sContnet += getClicktag
|
|
|
+ if (getClicktag2 == undefined) {
|
|
|
+ sContnet += "</div>"
|
|
|
+ } else {
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag2
|
|
|
+ sContnet += "</div>"
|
|
|
+ }
|
|
|
+ if (getClicktag3 == undefined) {
|
|
|
+ sContnet += "</li>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag3
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
}
|
|
|
- if (getClicktag3 == undefined) {
|
|
|
- sContnet += "</li>"
|
|
|
+ if (getClickcontent == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickcontent == undefined) {
|
|
|
+ sContnet += ''
|
|
|
} else {
|
|
|
- sContnet += "<div class='three_tag'>"
|
|
|
- sContnet += getClicktag3
|
|
|
- sContnet += "</div>"
|
|
|
- sContnet += "</li>"
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a class='a_blue'>"
|
|
|
+ sContnet += "<p class='content_p'>"
|
|
|
+ sContnet += getClickcontent
|
|
|
+ sContnet += "</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
}
|
|
|
- }
|
|
|
- if (getClickcontent == "") {
|
|
|
- sContnet += ''
|
|
|
- } else if (getClickcontent == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
- sContnet += "<li>"
|
|
|
- sContnet += "<a class='a_blue'>"
|
|
|
- sContnet += "<p class='content_p'>"
|
|
|
- sContnet += getClickcontent
|
|
|
- sContnet += "</p>"
|
|
|
- sContnet += "</a>"
|
|
|
- }
|
|
|
- sContnet += "</li>"
|
|
|
- if (getClickimg == "") {
|
|
|
- sContnet += ''
|
|
|
- } else if (getClickimg == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
- sContnet += "<li class='img_box'>"
|
|
|
- sContnet += "<img class='two_img' src='" +PATH+getClickimg + "'>"
|
|
|
sContnet += "</li>"
|
|
|
- }
|
|
|
- sContnet += "<li class='address_box'>"
|
|
|
- sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
- sContnet += getClickaddre
|
|
|
- sContnet += "</p>"
|
|
|
- if (getClicktime == "" || getClicktime == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
- sContnet += "<p><span class='flex_address'>办公时间:</span>"
|
|
|
- sContnet += getClicktime
|
|
|
- sContnet += "</p>"
|
|
|
- }
|
|
|
- if (getClicktel == '' || getClicktel == undefined){
|
|
|
- sContnet += ''
|
|
|
- } else {
|
|
|
- sContnet += "<p><span class='flex_address'>办公电话:</span>"
|
|
|
- sContnet += getClicktel
|
|
|
- sContnet += "</p>"
|
|
|
- }
|
|
|
- if (getClickUrl == undefined) {
|
|
|
- sContnet += ''
|
|
|
- } else if(getClickSptype == "民政服务") {
|
|
|
- sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
- } else {
|
|
|
- sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
- }
|
|
|
- sContnet += "<a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
- sContnet += "</li>"
|
|
|
- sContnet += "<li class='btn_box'>"
|
|
|
- sContnet += "<button class='one_bus'>公交</button>"
|
|
|
- sContnet += "<button class='two_car'>自驾</button>"
|
|
|
- sContnet += "</li>"
|
|
|
- sContnet += "<div class='grey_line'></div>"
|
|
|
- sContnet += "<li>"
|
|
|
- sContnet += "<div class='flex_four_wrap'>"
|
|
|
- sContnet += "<ul class='text-tab-title'>"
|
|
|
- sContnet += "<li class='text-this'>个人办事</li>"
|
|
|
- sContnet += "<li>法人办事</li>"
|
|
|
- sContnet += "<a><img src='./img/xwgd.png'></a>"
|
|
|
- sContnet += "<a><img src='./img/zxbl.png'></a>"
|
|
|
- sContnet += "</ul>"
|
|
|
- sContnet += "<div class='text-tab-content'>"
|
|
|
- sContnet += "<ul class='text-tab-item text-show'>"
|
|
|
- $.each(res.data,function(j){
|
|
|
- if ((res.data[j].itemName == undefined && res.data[j].matterUrl == undefined) && res.data[j].matterDept == undefined) {
|
|
|
+ if (getClickimg == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickimg == undefined) {
|
|
|
sContnet += ''
|
|
|
} else {
|
|
|
- sContnet += "<li>"
|
|
|
- sContnet += "<a href='"+res.data[j].matterUrl+"'>"
|
|
|
- sContnet += "<h6></h6>"
|
|
|
- sContnet += "<p title='"+res.data[j].itemName+"'>"+res.data[j].itemName+"</p>"
|
|
|
- sContnet += "</a>"
|
|
|
+ sContnet += "<li class='img_box'>"
|
|
|
+ sContnet += "<img class='two_img' src='" +PATH+getClickimg + "'>"
|
|
|
sContnet += "</li>"
|
|
|
}
|
|
|
- });
|
|
|
- sContnet += "</ul>"
|
|
|
- sContnet += "<ul class='text-tab-item'></ul>"
|
|
|
- sContnet += "</div>"
|
|
|
- sContnet += "</div>"
|
|
|
- sContnet += "<div id='demo'></div>"
|
|
|
- sContnet += "</li>"
|
|
|
- sContnet += "</ul>"
|
|
|
- if (tempAdd == getClickaddre) {
|
|
|
- addMarker(getClickIndex, index, address, new BMap.InfoWindow(sContnet, getClickaddre), getClickdep);
|
|
|
- }
|
|
|
- document.querySelectorAll(".two_img").onload = function() {
|
|
|
- infoWindow.redraw();
|
|
|
+ sContnet += "<li class='address_box'>"
|
|
|
+ sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
+ sContnet += getClickaddre
|
|
|
+ sContnet += "</p>"
|
|
|
+ if (getClicktime == "" || getClicktime == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公时间:</span>"
|
|
|
+ sContnet += getClicktime
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClicktel == '' || getClicktel == undefined){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公电话:</span>"
|
|
|
+ sContnet += getClicktel
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClickUrl == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else if(getClickSptype == "民政服务") {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
+ }
|
|
|
+ sContnet += "<a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<li class='btn_box'>"
|
|
|
+ sContnet += "<button class='one_bus'>公交</button>"
|
|
|
+ sContnet += "<button class='two_car'>自驾</button>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<div class='grey_line'></div>"
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<div class='flex_four_wrap'>"
|
|
|
+ sContnet += "<ul class='text-tab-title'>"
|
|
|
+ sContnet += "<li class='text-this'>个人办事</li>"
|
|
|
+ sContnet += "<li>法人办事</li>"
|
|
|
+ sContnet += "<a><img src='./img/xwgd.png'></a>"
|
|
|
+ sContnet += "<a><img src='./img/zxbl.png'></a>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<div class='text-tab-content'>"
|
|
|
+ sContnet += "<ul class='text-tab-item text-show'>"
|
|
|
+ $.each(res.data,function(j){
|
|
|
+ if ((res.data[j].itemName == undefined && res.data[j].matterUrl == undefined) && res.data[j].matterDept == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a href='"+res.data[j].matterUrl+"'>"
|
|
|
+ sContnet += "<h6></h6>"
|
|
|
+ sContnet += "<p title='"+res.data[j].itemName+"'>"+res.data[j].itemName+"</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ });
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<ul class='text-tab-item'></ul>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div id='demo'></div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ if (tempAdd == getClickaddre) {
|
|
|
+ addMarker(getClickIndex, index, address, new BMap.InfoWindow(sContnet, getClickaddre), getClickdep);
|
|
|
+ }
|
|
|
+ document.querySelectorAll(".two_img").onload = function() {
|
|
|
+ infoWindow.redraw();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- }, "重庆市");
|
|
|
+ }, "重庆市");
|
|
|
+ }
|
|
|
+ } else{
|
|
|
+ xxGEO(getClick)
|
|
|
}
|
|
|
- } else{
|
|
|
- xxGEO(getClick)
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
addGEO(getClick);
|
|
|
$(this).parents('.title-first').css('background-color', '#d6e5f7').siblings().removeAttr('style');
|
|
|
});
|
|
@@ -901,26 +905,416 @@ $(function() {
|
|
|
$(document).on('click', '.title-first1 ul li', function() {
|
|
|
var add_text = $(this).parents('ul').find('.jzdz').text();
|
|
|
let cilckList = [];
|
|
|
+ var topTextNav = '受理场所'
|
|
|
allArr.map(function(item, index) {
|
|
|
cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
});
|
|
|
- let getClick = cilckList.filter(function(item) {
|
|
|
+ let getClick1 = cilckList.filter(function(item) {
|
|
|
return item.address == add_text
|
|
|
});
|
|
|
- xxGEO(getClick);
|
|
|
+ let getClick = getClick1.filter(function(item) {
|
|
|
+ return item.sptype == topTextNav
|
|
|
+ });
|
|
|
+ var getClickDep;
|
|
|
+ $.each(getClick,function(i){
|
|
|
+ getClickDep = getClick[i].dep
|
|
|
+ });
|
|
|
+ if (getClick.length == 0){
|
|
|
+ xxGEO(getClick1)
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: PATH + '/mapdata/getHandMatterPage',
|
|
|
+ // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
+ async: false,
|
|
|
+ dataType: 'json',
|
|
|
+ data: {
|
|
|
+ page: 1,
|
|
|
+ limit: 4,
|
|
|
+ type: 0,
|
|
|
+ matterDept: getClickDep
|
|
|
+ },
|
|
|
+ success: function(res) {
|
|
|
+ if (res.data != null) {
|
|
|
+ map.clearOverlays();
|
|
|
+ var addFirst;
|
|
|
+ for (var z = 0; z < getClick.length; z++) {
|
|
|
+ var add = getClick[z].address;
|
|
|
+ const tempAdd = add;
|
|
|
+ myGeo.getPoint(tempAdd, function(point) {
|
|
|
+ if (point) {
|
|
|
+ var address = new BMap.Point(point.lng, point.lat);
|
|
|
+ addFirst = address;
|
|
|
+ for (var index = 0; index < getClick.length; index++) {
|
|
|
+ var getClickdep = getClick[index].dep;
|
|
|
+ var getClickaddre = getClick[index].address;
|
|
|
+ var getClicktype = getClick[index].type;
|
|
|
+ var getClickspecial = getClick[index].specialtype;
|
|
|
+ var getClicktag = getClick[index].tag;
|
|
|
+ var getClicktag2 = getClick[index].tag2;
|
|
|
+ var getClicktag3 = getClick[index].tag3;
|
|
|
+ var getClickcontent = getClick[index].content;
|
|
|
+ var getClickimg = getClick[index].img;
|
|
|
+ var getClicktel = getClick[index].tel;
|
|
|
+ var getClicktime = getClick[index].time;
|
|
|
+ var getClickIndex = getClick[index].clickIndex;
|
|
|
+ var getClickUrl = getClick[index].url;
|
|
|
+ var getClickSptype = getClick[index].sptype;
|
|
|
+ var sContnet = ''
|
|
|
+ sContnet += "<ul class='titleFirstDifrenet'>"
|
|
|
+ sContnet += "<li class='title_flex' title='"+getClickdep+"'>"
|
|
|
+ sContnet += getClickdep
|
|
|
+ if (getClicktype == "" || getClicktype == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ if (getClickspecial == "中学") {
|
|
|
+ if (getClicktype == "中学"){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClicktype
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClickspecial
|
|
|
+ sContnet += "</p>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClicktype
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ if (getClicktag == "" || getClicktag == undefined) {
|
|
|
+ sContnet += ""
|
|
|
+ } else {
|
|
|
+ sContnet += "<li class='flex_orange'>"
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag
|
|
|
+ if (getClicktag2 == undefined) {
|
|
|
+ sContnet += "</div>"
|
|
|
+ } else {
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag2
|
|
|
+ sContnet += "</div>"
|
|
|
+ }
|
|
|
+ if (getClicktag3 == undefined) {
|
|
|
+ sContnet += "</li>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag3
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (getClickcontent == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickcontent == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a class='a_blue'>"
|
|
|
+ sContnet += "<p class='content_p'>"
|
|
|
+ sContnet += getClickcontent
|
|
|
+ sContnet += "</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
+ }
|
|
|
+ sContnet += "</li>"
|
|
|
+ if (getClickimg == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickimg == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li class='img_box'>"
|
|
|
+ sContnet += "<img class='two_img' src='" +PATH+getClickimg + "'>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ sContnet += "<li class='address_box'>"
|
|
|
+ sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
+ sContnet += getClickaddre
|
|
|
+ sContnet += "</p>"
|
|
|
+ if (getClicktime == "" || getClicktime == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公时间:</span>"
|
|
|
+ sContnet += getClicktime
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClicktel == '' || getClicktel == undefined){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公电话:</span>"
|
|
|
+ sContnet += getClicktel
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClickUrl == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else if(getClickSptype == "民政服务") {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
+ }
|
|
|
+ sContnet += "<a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<li class='btn_box'>"
|
|
|
+ sContnet += "<button class='one_bus'>公交</button>"
|
|
|
+ sContnet += "<button class='two_car'>自驾</button>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<div class='grey_line'></div>"
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<div class='flex_four_wrap'>"
|
|
|
+ sContnet += "<ul class='text-tab-title'>"
|
|
|
+ sContnet += "<li class='text-this'>个人办事</li>"
|
|
|
+ sContnet += "<li>法人办事</li>"
|
|
|
+ sContnet += "<a><img src='./img/xwgd.png'></a>"
|
|
|
+ sContnet += "<a><img src='./img/zxbl.png'></a>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<div class='text-tab-content'>"
|
|
|
+ sContnet += "<ul class='text-tab-item text-show'>"
|
|
|
+ $.each(res.data,function(j){
|
|
|
+ if ((res.data[j].itemName == undefined && res.data[j].matterUrl == undefined) && res.data[j].matterDept == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a href='"+res.data[j].matterUrl+"'>"
|
|
|
+ sContnet += "<h6></h6>"
|
|
|
+ sContnet += "<p title='"+res.data[j].itemName+"'>"+res.data[j].itemName+"</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ });
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<ul class='text-tab-item'></ul>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div id='demo'></div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ if (tempAdd == getClickaddre) {
|
|
|
+ addMarker(getClickIndex, index, address, new BMap.InfoWindow(sContnet, getClickaddre), getClickdep);
|
|
|
+ }
|
|
|
+ document.querySelectorAll(".two_img").onload = function() {
|
|
|
+ infoWindow.redraw();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, "重庆市");
|
|
|
+ }
|
|
|
+ } else{
|
|
|
+ xxGEO(getClick)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
addGEO(getClick);
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.typeFirst', function() {
|
|
|
var add_text = $(this).siblings('ul').find('.jzdz').text();
|
|
|
let cilckList = [];
|
|
|
+ var topTextNav = '受理场所'
|
|
|
allArr.map(function(item, index) {
|
|
|
cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
});
|
|
|
- let getClick = cilckList.filter(function(item) {
|
|
|
+ let getClick1 = cilckList.filter(function(item) {
|
|
|
return item.address == add_text
|
|
|
});
|
|
|
- xxGEO(getClick);
|
|
|
+ let getClick = getClick1.filter(function(item) {
|
|
|
+ return item.sptype == topTextNav
|
|
|
+ });
|
|
|
+ var getClickDep;
|
|
|
+ $.each(getClick,function(i){
|
|
|
+ getClickDep = getClick[i].dep
|
|
|
+ });
|
|
|
+ if (getClick.length == 0){
|
|
|
+ xxGEO(getClick1)
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: PATH + '/mapdata/getHandMatterPage',
|
|
|
+ // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
+ async: false,
|
|
|
+ dataType: 'json',
|
|
|
+ data: {
|
|
|
+ page: 1,
|
|
|
+ limit: 4,
|
|
|
+ type: 0,
|
|
|
+ matterDept: getClickDep
|
|
|
+ },
|
|
|
+ success: function(res) {
|
|
|
+ if (res.data != null) {
|
|
|
+ map.clearOverlays();
|
|
|
+ var addFirst;
|
|
|
+ for (var z = 0; z < getClick.length; z++) {
|
|
|
+ var add = getClick[z].address;
|
|
|
+ const tempAdd = add;
|
|
|
+ myGeo.getPoint(tempAdd, function(point) {
|
|
|
+ if (point) {
|
|
|
+ var address = new BMap.Point(point.lng, point.lat);
|
|
|
+ addFirst = address;
|
|
|
+ for (var index = 0; index < getClick.length; index++) {
|
|
|
+ var getClickdep = getClick[index].dep;
|
|
|
+ var getClickaddre = getClick[index].address;
|
|
|
+ var getClicktype = getClick[index].type;
|
|
|
+ var getClickspecial = getClick[index].specialtype;
|
|
|
+ var getClicktag = getClick[index].tag;
|
|
|
+ var getClicktag2 = getClick[index].tag2;
|
|
|
+ var getClicktag3 = getClick[index].tag3;
|
|
|
+ var getClickcontent = getClick[index].content;
|
|
|
+ var getClickimg = getClick[index].img;
|
|
|
+ var getClicktel = getClick[index].tel;
|
|
|
+ var getClicktime = getClick[index].time;
|
|
|
+ var getClickIndex = getClick[index].clickIndex;
|
|
|
+ var getClickUrl = getClick[index].url;
|
|
|
+ var getClickSptype = getClick[index].sptype;
|
|
|
+ var sContnet = ''
|
|
|
+ sContnet += "<ul class='titleFirstDifrenet'>"
|
|
|
+ sContnet += "<li class='title_flex' title='"+getClickdep+"'>"
|
|
|
+ sContnet += getClickdep
|
|
|
+ if (getClicktype == "" || getClicktype == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ if (getClickspecial == "中学") {
|
|
|
+ if (getClicktype == "中学"){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClicktype
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClickspecial
|
|
|
+ sContnet += "</p>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<p class='flex_blue'>· "
|
|
|
+ sContnet += getClicktype
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ if (getClicktag == "" || getClicktag == undefined) {
|
|
|
+ sContnet += ""
|
|
|
+ } else {
|
|
|
+ sContnet += "<li class='flex_orange'>"
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag
|
|
|
+ if (getClicktag2 == undefined) {
|
|
|
+ sContnet += "</div>"
|
|
|
+ } else {
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag2
|
|
|
+ sContnet += "</div>"
|
|
|
+ }
|
|
|
+ if (getClicktag3 == undefined) {
|
|
|
+ sContnet += "</li>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<div class='three_tag'>"
|
|
|
+ sContnet += getClicktag3
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (getClickcontent == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickcontent == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a class='a_blue'>"
|
|
|
+ sContnet += "<p class='content_p'>"
|
|
|
+ sContnet += getClickcontent
|
|
|
+ sContnet += "</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
+ }
|
|
|
+ sContnet += "</li>"
|
|
|
+ if (getClickimg == "") {
|
|
|
+ sContnet += ''
|
|
|
+ } else if (getClickimg == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li class='img_box'>"
|
|
|
+ sContnet += "<img class='two_img' src='" +PATH+getClickimg + "'>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ sContnet += "<li class='address_box'>"
|
|
|
+ sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
+ sContnet += getClickaddre
|
|
|
+ sContnet += "</p>"
|
|
|
+ if (getClicktime == "" || getClicktime == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公时间:</span>"
|
|
|
+ sContnet += getClicktime
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClicktel == '' || getClicktel == undefined){
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><span class='flex_address'>办公电话:</span>"
|
|
|
+ sContnet += getClicktel
|
|
|
+ sContnet += "</p>"
|
|
|
+ }
|
|
|
+ if (getClickUrl == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else if(getClickSptype == "民政服务") {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
+ }
|
|
|
+ sContnet += "<a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<li class='btn_box'>"
|
|
|
+ sContnet += "<button class='one_bus'>公交</button>"
|
|
|
+ sContnet += "<button class='two_car'>自驾</button>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<div class='grey_line'></div>"
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<div class='flex_four_wrap'>"
|
|
|
+ sContnet += "<ul class='text-tab-title'>"
|
|
|
+ sContnet += "<li class='text-this'>个人办事</li>"
|
|
|
+ sContnet += "<li>法人办事</li>"
|
|
|
+ sContnet += "<a><img src='./img/xwgd.png'></a>"
|
|
|
+ sContnet += "<a><img src='./img/zxbl.png'></a>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<div class='text-tab-content'>"
|
|
|
+ sContnet += "<ul class='text-tab-item text-show'>"
|
|
|
+ $.each(res.data,function(j){
|
|
|
+ if ((res.data[j].itemName == undefined && res.data[j].matterUrl == undefined) && res.data[j].matterDept == undefined) {
|
|
|
+ sContnet += ''
|
|
|
+ } else {
|
|
|
+ sContnet += "<li>"
|
|
|
+ sContnet += "<a href='"+res.data[j].matterUrl+"'>"
|
|
|
+ sContnet += "<h6></h6>"
|
|
|
+ sContnet += "<p title='"+res.data[j].itemName+"'>"+res.data[j].itemName+"</p>"
|
|
|
+ sContnet += "</a>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ }
|
|
|
+ });
|
|
|
+ sContnet += "</ul>"
|
|
|
+ sContnet += "<ul class='text-tab-item'></ul>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "</div>"
|
|
|
+ sContnet += "<div id='demo'></div>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "</ul>"
|
|
|
+ if (tempAdd == getClickaddre) {
|
|
|
+ addMarker(getClickIndex, index, address, new BMap.InfoWindow(sContnet, getClickaddre), getClickdep);
|
|
|
+ }
|
|
|
+ document.querySelectorAll(".two_img").onload = function() {
|
|
|
+ infoWindow.redraw();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, "重庆市");
|
|
|
+ }
|
|
|
+ } else{
|
|
|
+ xxGEO(getClick)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
addGEO(getClick);
|
|
|
});
|
|
|
|
|
@@ -928,18 +1322,209 @@ $(function() {
|
|
|
// console.log($(this).children('.title-first1'))
|
|
|
// })
|
|
|
|
|
|
- $('.search-result').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(function(item) {
|
|
|
- return item.address == add_text
|
|
|
- });
|
|
|
- xxGEO(getClick);
|
|
|
- addGEO(getClick);
|
|
|
- });
|
|
|
+ // $('.search-result').on('click', '.title-first1', function() {
|
|
|
+ // var add_text = $(this).find('.jzdz').text();
|
|
|
+ // let cilckList = [];
|
|
|
+ // var topTextNav = '受理场所'
|
|
|
+ // allArr.map(function(item, index) {
|
|
|
+ // cilckList.push(Object.assign({},item,{clickIndex: 1}))
|
|
|
+ // });
|
|
|
+ // let getClick1 = cilckList.filter(function(item) {
|
|
|
+ // return item.address == add_text
|
|
|
+ // });
|
|
|
+ // let getClick = getClick1.filter(function(item) {
|
|
|
+ // return item.sptype == topTextNav
|
|
|
+ // });
|
|
|
+ // var getClickDep;
|
|
|
+ // $.each(getClick,function(i){
|
|
|
+ // getClickDep = getClick[i].dep
|
|
|
+ // });
|
|
|
+ // $.ajax({
|
|
|
+ // type: 'GET',
|
|
|
+ // // url: PATH + '/mapdata/getHandMatterPage',
|
|
|
+ // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
+ // async: false,
|
|
|
+ // dataType: 'json',
|
|
|
+ // data: {
|
|
|
+ // page: 1,
|
|
|
+ // limit: 4,
|
|
|
+ // type: 0,
|
|
|
+ // matterDept: getClickDep
|
|
|
+ // },
|
|
|
+ // success: function(res) {
|
|
|
+ // if (res.data != null) {
|
|
|
+ // map.clearOverlays();
|
|
|
+ // var addFirst;
|
|
|
+ // for (var z = 0; z < getClick.length; z++) {
|
|
|
+ // var add = getClick[z].address;
|
|
|
+ // const tempAdd = add;
|
|
|
+ // myGeo.getPoint(tempAdd, function(point) {
|
|
|
+ // if (point) {
|
|
|
+ // var address = new BMap.Point(point.lng, point.lat);
|
|
|
+ // addFirst = address;
|
|
|
+ // for (var index = 0; index < getClick.length; index++) {
|
|
|
+ // var getClickdep = getClick[index].dep;
|
|
|
+ // var getClickaddre = getClick[index].address;
|
|
|
+ // var getClicktype = getClick[index].type;
|
|
|
+ // var getClickspecial = getClick[index].specialtype;
|
|
|
+ // var getClicktag = getClick[index].tag;
|
|
|
+ // var getClicktag2 = getClick[index].tag2;
|
|
|
+ // var getClicktag3 = getClick[index].tag3;
|
|
|
+ // var getClickcontent = getClick[index].content;
|
|
|
+ // var getClickimg = getClick[index].img;
|
|
|
+ // var getClicktel = getClick[index].tel;
|
|
|
+ // var getClicktime = getClick[index].time;
|
|
|
+ // var getClickIndex = getClick[index].clickIndex;
|
|
|
+ // var getClickUrl = getClick[index].url;
|
|
|
+ // var getClickSptype = getClick[index].sptype;
|
|
|
+ // var sContnet = ''
|
|
|
+ // sContnet += "<ul class='titleFirstDifrenet'>"
|
|
|
+ // sContnet += "<li class='title_flex' title='"+getClickdep+"'>"
|
|
|
+ // sContnet += getClickdep
|
|
|
+ // if (getClicktype == "" || getClicktype == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // if (getClickspecial == "中学") {
|
|
|
+ // if (getClicktype == "中学"){
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<p class='flex_blue'>· "
|
|
|
+ // sContnet += getClicktype
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // }
|
|
|
+ // sContnet += "<p class='flex_blue'>· "
|
|
|
+ // sContnet += getClickspecial
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<p class='flex_blue'>· "
|
|
|
+ // sContnet += getClicktype
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // }
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // }
|
|
|
+ // if (getClicktag == "" || getClicktag == undefined) {
|
|
|
+ // sContnet += ""
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<li class='flex_orange'>"
|
|
|
+ // sContnet += "<div class='three_tag'>"
|
|
|
+ // sContnet += getClicktag
|
|
|
+ // if (getClicktag2 == undefined) {
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // } else {
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // sContnet += "<div class='three_tag'>"
|
|
|
+ // sContnet += getClicktag2
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // }
|
|
|
+ // if (getClicktag3 == undefined) {
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<div class='three_tag'>"
|
|
|
+ // sContnet += getClicktag3
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (getClickcontent == "") {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else if (getClickcontent == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<li>"
|
|
|
+ // sContnet += "<a class='a_blue'>"
|
|
|
+ // sContnet += "<p class='content_p'>"
|
|
|
+ // sContnet += getClickcontent
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // sContnet += "</a>"
|
|
|
+ // }
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // if (getClickimg == "") {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else if (getClickimg == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<li class='img_box'>"
|
|
|
+ // sContnet += "<img class='two_img' src='" +PATH+getClickimg + "'>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // }
|
|
|
+ // sContnet += "<li class='address_box'>"
|
|
|
+ // sContnet += "<p><span class='flex_address'>地址:</span>"
|
|
|
+ // sContnet += getClickaddre
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // if (getClicktime == "" || getClicktime == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<p><span class='flex_address'>办公时间:</span>"
|
|
|
+ // sContnet += getClicktime
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // }
|
|
|
+ // if (getClicktel == '' || getClicktel == undefined){
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<p><span class='flex_address'>办公电话:</span>"
|
|
|
+ // sContnet += getClicktel
|
|
|
+ // sContnet += "</p>"
|
|
|
+ // }
|
|
|
+ // if (getClickUrl == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else if(getClickSptype == "民政服务") {
|
|
|
+ // sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<a href='"+getClickUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
+ // }
|
|
|
+ // sContnet += "<a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // sContnet += "<li class='btn_box'>"
|
|
|
+ // sContnet += "<button class='one_bus'>公交</button>"
|
|
|
+ // sContnet += "<button class='two_car'>自驾</button>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // sContnet += "<div class='grey_line'></div>"
|
|
|
+ // sContnet += "<li>"
|
|
|
+ // sContnet += "<div class='flex_four_wrap'>"
|
|
|
+ // sContnet += "<ul class='text-tab-title'>"
|
|
|
+ // sContnet += "<li class='text-this'>个人办事</li>"
|
|
|
+ // sContnet += "<li>法人办事</li>"
|
|
|
+ // sContnet += "<a><img src='./img/xwgd.png'></a>"
|
|
|
+ // sContnet += "<a><img src='./img/zxbl.png'></a>"
|
|
|
+ // sContnet += "</ul>"
|
|
|
+ // sContnet += "<div class='text-tab-content'>"
|
|
|
+ // sContnet += "<ul class='text-tab-item text-show'>"
|
|
|
+ // $.each(res.data,function(j){
|
|
|
+ // if ((res.data[j].itemName == undefined && res.data[j].matterUrl == undefined) && res.data[j].matterDept == undefined) {
|
|
|
+ // sContnet += ''
|
|
|
+ // } else {
|
|
|
+ // sContnet += "<li>"
|
|
|
+ // sContnet += "<a href='"+res.data[j].matterUrl+"'>"
|
|
|
+ // sContnet += "<h6></h6>"
|
|
|
+ // sContnet += "<p title='"+res.data[j].itemName+"'>"+res.data[j].itemName+"</p>"
|
|
|
+ // sContnet += "</a>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // sContnet += "</ul>"
|
|
|
+ // sContnet += "<ul class='text-tab-item'></ul>"
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // sContnet += "</div>"
|
|
|
+ // sContnet += "<div id='demo'></div>"
|
|
|
+ // sContnet += "</li>"
|
|
|
+ // sContnet += "</ul>"
|
|
|
+ // if (tempAdd == getClickaddre) {
|
|
|
+ // addMarker(getClickIndex, index, address, new BMap.InfoWindow(sContnet, getClickaddre), getClickdep);
|
|
|
+ // }
|
|
|
+ // document.querySelectorAll(".two_img").onload = function() {
|
|
|
+ // infoWindow.redraw();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }, "重庆市");
|
|
|
+ // }
|
|
|
+ // } else{
|
|
|
+ // xxGEO(getClick)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // addGEO(getClick);
|
|
|
+ // });
|
|
|
|
|
|
// 将json数据渲染到地图
|
|
|
function xxGEO(arr) {
|