|
@@ -440,37 +440,37 @@ $(function() {
|
|
|
} else if (tabtext == '产业园') {
|
|
|
xxGEO(cyy);
|
|
|
xrxx(cyy);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.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 == '停车') {
|
|
|
xxGEO(tc);
|
|
|
xrxx(tc);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.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 == '不动产登记') {
|
|
|
xxGEO(bdcdjzxbsdt);
|
|
|
xrxx(bdcdjzxbsdt);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.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 == "公厕"){
|
|
|
xxGEO(gc);
|
|
|
xrxx(gc);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.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 == "公租房"){
|
|
|
xxGEO(fwglzx);
|
|
|
xrxx(fwglzx);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.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 == "公积金"){
|
|
|
xxGEO(gjj);
|
|
|
xrxx(gjj);
|
|
|
- $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight());
|
|
|
+ $('.flex_box').css('padding-top',$('.wrap_fwdt').outerHeight()+10);
|
|
|
$('.title-first1:nth-child(2)').css('padding-top',60);
|
|
|
$('.left-map').scrollTop(0);
|
|
|
}
|
|
@@ -1044,14 +1044,15 @@ $(function() {
|
|
|
var fdisplay = $(this).parents('.text-second').siblings('.flex_box').children('.flex_li').css('display');
|
|
|
$(".title-first1").fadeIn(600);
|
|
|
$('.flex_box').removeAttr('style');
|
|
|
- if (TFdisplay == 'flex' && fdisplay == 'none') {
|
|
|
- $(this).text('返回');
|
|
|
- $(".title-first1").fadeOut(0);
|
|
|
- $(".flex_li").fadeIn(600);
|
|
|
- $('.text-second').empty();
|
|
|
- $('.flex_li').find('.flex_text').removeAttr('style').parent('.img_tab').siblings('.pop').find('.mapnav').removeClass('choice');
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
+ $(this).text('返回');
|
|
|
+ $(".title-first1").fadeOut(0);
|
|
|
+ $(".flex_li").fadeIn(600);
|
|
|
+ $('.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();
|
|
@@ -1219,19 +1220,13 @@ $(function() {
|
|
|
map.addOverlay(marker);
|
|
|
if (getIndex) {
|
|
|
marker.openInfoWindow(infoWindow);
|
|
|
- $(".one_bus").click(async function() {
|
|
|
+ $(".one_bus").click(function() {
|
|
|
var _this = this;
|
|
|
- await new Promise(function (resolve, reject) {
|
|
|
- busClickEvent(_this);
|
|
|
- resolve();
|
|
|
- });
|
|
|
+ busClickEvent(_this);
|
|
|
});
|
|
|
- $(".two_car").click(async function() {
|
|
|
+ $(".two_car").click(function() {
|
|
|
var _this = this;
|
|
|
- await new Promise(function (resolve, reject) {
|
|
|
- drivingClickEvent(_this);
|
|
|
- resolve();
|
|
|
- });
|
|
|
+ drivingClickEvent(_this);
|
|
|
});
|
|
|
$('.correct_html').click(function(){
|
|
|
var address_text = $(this).parent(".address_box").find("p:nth-child(1)").text();
|
|
@@ -1249,19 +1244,13 @@ $(function() {
|
|
|
map.openInfoWindow(infoWindow, point); //开启信息窗口
|
|
|
});
|
|
|
infoWindow.addEventListener("open", function () {
|
|
|
- $(".one_bus").click(async function () {
|
|
|
+ $(".one_bus").click(function () {
|
|
|
var that = this;
|
|
|
- await new Promise(function (resolve, reject) {
|
|
|
- busClickEvent(that);
|
|
|
- resolve();
|
|
|
- });
|
|
|
+ busClickEvent(that);
|
|
|
});
|
|
|
- $(".two_car").click(async function () {
|
|
|
+ $(".two_car").click(function () {
|
|
|
var that = this;
|
|
|
- await new Promise(function (resolve, reject) {
|
|
|
- drivingClickEvent(that);
|
|
|
- resolve();
|
|
|
- });
|
|
|
+ drivingClickEvent(that);
|
|
|
});
|
|
|
$('.correct_html').click(function(){
|
|
|
var address_text = $(this).parent(".address_box").find("p:nth-child(1)").text();
|