|
@@ -418,7 +418,6 @@ $(function() {
|
|
|
getAllJson.push(res.data.hscyds[i]);
|
|
|
contrastArrey.push(res.data.hscyds[i]);
|
|
|
});
|
|
|
- hscyd
|
|
|
},
|
|
|
error: function(err) {},
|
|
|
});
|
|
@@ -463,13 +462,13 @@ $(function() {
|
|
|
$('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight()+10);
|
|
|
$('.title-first1:nth-child(2)').css('padding-top',60);
|
|
|
$('.left-map').scrollTop(0);
|
|
|
- }else if(tabtext == "公租房"){
|
|
|
+ }else if(tabtext == "住房保障"){
|
|
|
xxGEO(fwglzx);
|
|
|
xrxx(fwglzx);
|
|
|
$('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight()+10);
|
|
|
$('.title-first1:nth-child(2)').css('padding-top',60);
|
|
|
$('.left-map').scrollTop(0);
|
|
|
- }else if(tabtext == "公积金"){
|
|
|
+ }else if(tabtext == "住房公积金"){
|
|
|
xxGEO(gjj);
|
|
|
xrxx(gjj);
|
|
|
$('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight()+10);
|
|
@@ -728,194 +727,7 @@ $(function() {
|
|
|
$.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 href='http://www.cqna.gov.cn/ghwd/znwd/index.html' target='_blank'><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+"' target='_blank'>"
|
|
|
- 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)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ pageAjax(getClickDep,getClick1,getClick);
|
|
|
addGEO(getClick);
|
|
|
$(this).parents('.title-first').css('background-color', '#d6e5f7').siblings().css('background-color', '');
|
|
|
});
|
|
@@ -944,194 +756,7 @@ $(function() {
|
|
|
$.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 href='http://www.cqna.gov.cn/ghwd/znwd/index.html' target='_blank'><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+"' target='_blank'>"
|
|
|
- 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)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ pageAjax(getClickDep,getClick1,getClick);
|
|
|
addGEO(getClick);
|
|
|
$(this).parents('.title-first1').css('background-color', '#d6e5f7').siblings().css('background-color', '');
|
|
|
});
|
|
@@ -1153,13 +778,19 @@ $(function() {
|
|
|
$.each(getClick,function(i){
|
|
|
getClickDep = getClick[i].dep
|
|
|
});
|
|
|
+ pageAjax(getClickDep,getClick1,getClick);
|
|
|
+ addGEO(getClick);
|
|
|
+ $(this).parents('.title-first1').css('background-color', '#d6e5f7').siblings().removeAttr('style');
|
|
|
+ });
|
|
|
+
|
|
|
+ function pageAjax(getClickDep,getClick1,getClick){
|
|
|
if (getClick.length == 0){
|
|
|
xxGEO(getClick1)
|
|
|
}else{
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
- url: PATH + '/mapdata/getHandMatterPage',
|
|
|
- // url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
+ // url: PATH + '/mapdata/getHandMatterPage',
|
|
|
+ url: "http://192.168.0.230:7777/mapdata/getHandMatterPage",
|
|
|
async: false,
|
|
|
dataType: 'json',
|
|
|
data: {
|
|
@@ -1341,217 +972,7 @@ $(function() {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- addGEO(getClick);
|
|
|
- $(this).parents('.title-first1').css('background-color', '#d6e5f7').siblings().removeAttr('style');
|
|
|
- });
|
|
|
-
|
|
|
- // $('.search-result').click(function(){
|
|
|
- // console.log($(this).children('.title-first1'))
|
|
|
- // })
|
|
|
-
|
|
|
- // $('.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) {
|
|
@@ -1708,28 +1129,6 @@ $(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' />" +
|
|
|
- // "<div class='hide1'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inps' />" +
|
|
|
- // "<div class='inp-text'>此位置</div>" +
|
|
|
- // "<div class='change-buts'></div>" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch'>" +
|
|
|
- // "</div>" +
|
|
|
- // "<div class='hide2'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inpst' />" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch2'>" +
|
|
|
- // "<div class='inp-text2'>此位置</div>" +
|
|
|
- // "<div class='change-buts2'></div>" +
|
|
|
- // "</div>" +
|
|
|
- // "</li>" +
|
|
|
-
|
|
|
// 街镇列表的循环渲染
|
|
|
function xrjz(arrey) {
|
|
|
var html = '';
|
|
@@ -1767,23 +1166,6 @@ $(function() {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- // "<li class='change-but'>" +
|
|
|
- // "<input type='button' name='' id='' value='公交' class='but-bus' />" +
|
|
|
- // "<input type='button' name='' id='' value='自驾' class='but-car' />" +
|
|
|
- // "<div class='hide1'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inps' />" +
|
|
|
- // "<div class='inp-text'>此位置</div>" +
|
|
|
- // "<div class='change-buts'></div>" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch'>" +
|
|
|
- // "</div>" +
|
|
|
- // "<div class='hide2'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inpst' />" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch2'>" +
|
|
|
- // "<div class='inp-text2'>此位置</div>" +
|
|
|
- // "<div class='change-buts2'></div>" +
|
|
|
- // "</div>" +
|
|
|
- // "</li>" +
|
|
|
-
|
|
|
$(document).on('click','.correct_text',function(){
|
|
|
var address_text = $(this).siblings('li').find(".jzdz").text();
|
|
|
// var discript_text = address_text.split(":")[1];
|
|
@@ -1854,46 +1236,7 @@ $(function() {
|
|
|
$('.text-second').empty();
|
|
|
$('.flex_li').find('.flex_text').removeAttr('style').parent('.img_tab').siblings('.pop').find('.mapnav').removeClass('choice');
|
|
|
window.location.reload();
|
|
|
- // if (TFdisplay == 'flex' && fdisplay == 'none') {
|
|
|
-
|
|
|
- // }
|
|
|
- // else if(TFdisplay == 'none' && fdisplay == 'list-item'){
|
|
|
- // // console.log(1111)
|
|
|
- // // $('.text-second').empty();
|
|
|
- // // $(this).text('点击展开服务导图并收起列表');
|
|
|
- // // $(".title-first1").fadeIn(600);
|
|
|
- // // $(".flex_li").fadeOut(0);
|
|
|
- // }
|
|
|
});
|
|
|
-
|
|
|
- // $('.hide_fl').click(function(){
|
|
|
- // var TFdisplay = $(this).siblings('.flex_li').css('display');
|
|
|
- // $(".flex_li").fadeOut(500);
|
|
|
- // if (TFdisplay == 'list-item') {
|
|
|
- // $(this).text('点击展开');
|
|
|
- // $(".flex_li").fadeOut(500);
|
|
|
- // } else {
|
|
|
- // $(this).text('点击收起');
|
|
|
- // $(".flex_li").fadeIn(500);
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
- // "<li class='change-but'>" +
|
|
|
- // "<input type='button' name='' id='' value='公交' class='but-bus' />" +
|
|
|
- // "<input type='button' name='' id='' value='自驾' class='but-car' />" +
|
|
|
- // "<div class='hide1'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inps' />" +
|
|
|
- // "<div class='inp-text'>此位置</div>" +
|
|
|
- // "<div class='change-buts'></div>" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch'>" +
|
|
|
- // "</div>" +
|
|
|
- // "<div class='hide2'>" +
|
|
|
- // "<input type='text' name='' value='' placeholder='请输入地址' class='inpst' />" +
|
|
|
- // "<img src='img/ss2.png' class='imgSearch2'>" +
|
|
|
- // "<div class='inp-text2'>此位置</div>" +
|
|
|
- // "<div class='change-buts2'></div>" +
|
|
|
- // "</div>" +
|
|
|
- // "</li>" +
|
|
|
|
|
|
// 渲染查阅场所列表
|
|
|
function cycsone(cycsbms) {
|
|
@@ -1990,32 +1333,6 @@ $(function() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- //查阅场所初始化
|
|
|
- // function cycsGEO(cycsbms){
|
|
|
- // map.clearOverlays();
|
|
|
- // for (var i = 0; i < cycsbms.length; i++) {
|
|
|
- // const temdep = cycsbms[i].dep;
|
|
|
- // const temtel = cycsbms[i].tel;
|
|
|
- // const temadd = cycsbms[i].address;
|
|
|
- // const temIndex = cycsbms[i].clickIndex;
|
|
|
- // myGeo.getPoint(temadd, function(point) {
|
|
|
- // if (point) {
|
|
|
- // var address = new BMap.Point(point.lng, point.lat);
|
|
|
- // var sContnet =
|
|
|
- // "<ul class='titleFirstJZ'>" +
|
|
|
- // "<li>" + temdep + "</li>" +
|
|
|
- // "<li>" +
|
|
|
- // "<p><span>电话:</span>" + temtel + "</p>" +
|
|
|
- // "<p><span>地址:</span>" + temadd + "</p>" +
|
|
|
- // "<p><span>办公时间:</span>9:00-11:30,14:00-17:00(周一至周五,节假日除外)</p>" +
|
|
|
- // "</li>" +
|
|
|
- // "</ul>";
|
|
|
- // addMarker(temIndex, 0, address, new BMap.InfoWindow(sContnet, temadd));
|
|
|
- // }
|
|
|
- // }, "重庆市");
|
|
|
- // }
|
|
|
- // };
|
|
|
-
|
|
|
function addMarker(getIndex, index, point, infoWindow, dep) {
|
|
|
var myIcon = new BMap.Icon("./img/location.png", new BMap.Size(40, 40));
|
|
|
var marker = new BMap.Marker(point, {
|