|
@@ -443,7 +443,6 @@ $(function() {
|
|
|
});
|
|
|
|
|
|
var str=window.location.search;
|
|
|
- console.log(str)
|
|
|
str = decodeURI(str)
|
|
|
let name = "se"
|
|
|
// $("[title='重庆市第十一中学校']").click();
|
|
@@ -1208,7 +1207,13 @@ $(function() {
|
|
|
var arrgzh = arr[index].gzh;
|
|
|
var typepage;
|
|
|
var sContnet = ''
|
|
|
- sContnet += "<ul class='titleFirst'><li class='title_flex' title='"+arrdep+"'>"+arrdep
|
|
|
+ sContnet += "<ul class='titleFirst'>"
|
|
|
+ if (arrimg==""||(arrimg==undefined||arrimg==null)){
|
|
|
+ sContnet += ''
|
|
|
+ }else{
|
|
|
+ sContnet += "<li class='img_box'><img class='two_img' src='"+PATH+arrimg+"'><img class='infor-close-icon' style='position: absolute;width: 15px;height: 15px;right: 10px;top: 10px' src='./img/close.png'/></li>"
|
|
|
+ }
|
|
|
+ sContnet+="<li class='title_flex' title='"+arrdep+"'>"+arrdep
|
|
|
if ((arrtype==null||arrtype==undefined)||arrtype==''){
|
|
|
sContnet += ''
|
|
|
}else{
|
|
@@ -1227,66 +1232,63 @@ $(function() {
|
|
|
if ((arrtag==null||arrtag==undefined)||arrtag==''){
|
|
|
sContnet += ""
|
|
|
} else {
|
|
|
- sContnet += "<li class='flex_orange'><div class='three_tag'>"+arrtag
|
|
|
+ sContnet += "<li class='flex_orange'><div class='three_tag' style='border: 1px solid #FF843F;background: #FFF7F3;color: #FF843F;'>"+arrtag
|
|
|
if ((arrtag2==undefined||arrtag2==null)||arrtag2==''){
|
|
|
sContnet += "</div>"
|
|
|
}else{
|
|
|
- sContnet += "</div><div class='three_tag'>"+arrtag2+"</div>"
|
|
|
+ sContnet += "</div><div class='three_tag' style='border: 1px solid #41B643;background: #F0F6F0;color: #43BB45;'>"+arrtag2+"</div>"
|
|
|
}
|
|
|
if ((arrtag3==undefined||arrtag3==null)||arrtag3==''){
|
|
|
sContnet += "</li>"
|
|
|
} else {
|
|
|
- sContnet += "<div class='three_tag'>"+arrtag3+"</div></li>"
|
|
|
+ sContnet += "<div class='three_tag' style='border: 1px solid #40A2F3;background: #EFF6FC;color: #40A2F3;'>"+arrtag3+"</div></li>"
|
|
|
}
|
|
|
}
|
|
|
- if (arrcontent==""||(arrcontent==undefined||arrcontent==null)){
|
|
|
- sContnet += ''
|
|
|
- }else{
|
|
|
- sContnet += "<li><a class='a_blue'><p class='content_p'>"+arrcontent+"</p></a>"
|
|
|
- }
|
|
|
- sContnet += "</li>"
|
|
|
- if (arrimg==""||(arrimg==undefined||arrimg==null)){
|
|
|
+ sContnet += "<li class='address_box'><p><img style='' src='./img/iconAddr.png' class='flex_address'/>"+arraddre+"</p>"
|
|
|
+ if ((arrtel==null||arrtel==undefined)||arrtel==''){
|
|
|
sContnet += ''
|
|
|
- }else{
|
|
|
- sContnet += "<li class='img_box'><img class='two_img' src='"+PATH+arrimg+"'></li>"
|
|
|
+ } else {
|
|
|
+ sContnet += "<p><img src='./img/iconPhone.png' class='flex_address'/>"+arrtel+"</p>"
|
|
|
}
|
|
|
- sContnet += "<li class='address_box'><p><span class='flex_address'>地址:</span>"+arraddre+"</p>"
|
|
|
if ((arrtime==null||arrtime==undefined)||arrtime==''){
|
|
|
sContnet += ''
|
|
|
} else if(arrSptype=='查阅场所'){
|
|
|
- sContnet += "<p><span class='flex_address'>查询时间:</span>"+arrtime+"</p>"
|
|
|
+ sContnet += "<p style='color: #666666'><span class='flex_address'>查询时间:</span>"+arrtime+"</p>"
|
|
|
} else if(arrSptype=='受理场所'){
|
|
|
- sContnet += "<p><span class='flex_address'>受理时间:</span>"+arrtime+"</p>"
|
|
|
+ sContnet += "<p style='color: #666666'><span class='flex_address'>受理时间:</span>"+arrtime+"</p>"
|
|
|
} else if(arrSptype=='政务服务'||arrSptype=='办税服务'){
|
|
|
- sContnet += "<p><span class='flex_address'>办理时间:</span>"+arrtime+"</p>"
|
|
|
+ sContnet += "<p style='color: #666666'><span class='flex_address'>办理时间:</span>"+arrtime+"</p>"
|
|
|
} else {
|
|
|
- sContnet += "<p><span class='flex_address'>办公时间:</span>"+arrtime+"</p>"
|
|
|
+ sContnet += "<p style='color: #666666'><span class='flex_address'>办公时间:</span>"+arrtime+"</p>"
|
|
|
}
|
|
|
- if ((arrtel==null||arrtel==undefined)||arrtel==''){
|
|
|
+ if ((arrgzh==undefined||arrgzh==null)||arrgzh==''){
|
|
|
sContnet += ''
|
|
|
- } else {
|
|
|
- sContnet += "<p><span class='flex_address'>办公电话:</span>"+arrtel+"</p>"
|
|
|
+ }else if(arrSptype=="交通服务"){
|
|
|
+ sContnet += "<li class='gzh_img'><img class='two_img' src='"+PATH+arrgzh+"'><p>微信扫描公众号办理</p></li>"
|
|
|
+ }else if(arrSptype=="文体旅游"||arrtype=="城市公园"){
|
|
|
+ sContnet += "<li class='gzh'><img class='two_img' src='"+PATH+arrgzh+ "'><p>微信扫描公众号预约服务</p></li>"
|
|
|
+ }else{
|
|
|
+ sContnet += "<li class='gzh_img'><img class='two_img' src='"+PATH+arrgzh+ "'><p>微信扫描公众号预约挂号</p></li>"
|
|
|
}
|
|
|
+ sContnet += "<li style='display: flex;margin-top: 10px'><a class='correct_html iconBtn' style='color: #FFFFFF;background: #2775CC;border: 1px solid #2775CC;'><img src='./img/floor.png'/><span>大厅介绍</span></a>"
|
|
|
if ((arrUrl==undefined||arrUrl==null)||arrUrl==''){
|
|
|
sContnet += ''
|
|
|
} else if(arrSptype=="民政服务") {
|
|
|
- sContnet += "<a href='"+arrUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>预约祭扫</a>"
|
|
|
+ sContnet += "<a href='"+arrUrl+"' target='_blank' style='' class='iconBtn'><img src='./img/reservation.png'/><span>预约祭扫</span></a>"
|
|
|
}else if(arrSptype=="住房保障"){
|
|
|
- sContnet += "<br><a href='"+arrUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>公租房申请</a>"
|
|
|
+ sContnet += "<a href='"+arrUrl+"' target='_blank' style='' class='iconBtn'><img src='./img/reservation.png'/><span>公租房申请</span></a>"
|
|
|
} else {
|
|
|
- sContnet += "<br><a href='"+arrUrl+"' target='_blank' style='color: #2775CC;text-decoration:underline;'>在线预约</a>"
|
|
|
+ sContnet += "<a href='"+arrUrl+"' target='_blank' style='' class='iconBtn'><img src='./img/reservation.png'/><span>在线预约</span></a>"
|
|
|
}
|
|
|
- sContnet += "<br><a class='correct_html' style='color: #2775CC;text-decoration:underline;'>我要纠错</a></li>"
|
|
|
- if ((arrgzh==undefined||arrgzh==null)||arrgzh==''){
|
|
|
- sContnet += ''
|
|
|
- }else if(arrSptype=="交通服务"){
|
|
|
- sContnet += "<li class='gzh_img'><img class='two_img' src='"+PATH+arrgzh+"'><p>微信扫描公众号办理</p></li>"
|
|
|
- }else if(arrSptype=="文体旅游"||arrtype=="城市公园"){
|
|
|
- sContnet += "<li class='gzh'><img class='two_img' src='"+PATH+arrgzh+ "'><p>微信扫描公众号预约服务</p></li>"
|
|
|
+ sContnet += "<a class='correct_html iconBtn'><img style='width: 12px' src='./img/matter.png'/><span>可办事项</span></a>"
|
|
|
+ sContnet += "<a class='correct_html iconBtn'><img src='./img/error.png'/><span>我要纠错</span></a></li>"
|
|
|
+ if (arrcontent==""||(arrcontent==undefined||arrcontent==null)){
|
|
|
+ sContnet += '<li style="margin-top: 10px"><span>暂无数据</span></li>'
|
|
|
}else{
|
|
|
- sContnet += "<li class='gzh_img'><img class='two_img' src='"+PATH+arrgzh+ "'><p>微信扫描公众号预约挂号</p></li>"
|
|
|
+ sContnet += "<li><a class='a_blue'><p class='content_p'>"+arrcontent+"</p></a>"
|
|
|
}
|
|
|
- sContnet += "<li class='btn_box'><button class='one_bus'>公交</button><button class='two_car'>自驾</button></li></ul>"
|
|
|
+ sContnet += "</li>"
|
|
|
+ sContnet += "<li class='btn_box'><button class='one_bus'>公交</button><button class='two_car'>自驾</button></li><br/></ul>"
|
|
|
if (tempAdd==arraddre){
|
|
|
addMarker(arrIndex,address,new BMap.InfoWindow(sContnet, arraddre),arrdep,typepage);
|
|
|
}
|
|
@@ -1294,6 +1296,7 @@ $(function() {
|
|
|
infoWindow.redraw();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}, "重庆市");
|
|
|
}
|
|
@@ -1545,6 +1548,10 @@ $(function() {
|
|
|
var _this = this;
|
|
|
drivingClickEvent(_this);
|
|
|
});
|
|
|
+
|
|
|
+ $('.infor-close-icon').click(function () {
|
|
|
+ map.closeInfoWindow();
|
|
|
+ })
|
|
|
// 信息窗口内的我要纠错,点击之后跳转链接
|
|
|
$('.correct_html').click(function(){
|
|
|
var address_text = $(this).parent(".address_box").find("p:nth-child(1)").text();
|