$(function(){ select(); $('.icon-icon').hide() }) function mapInt02(mapTitle,mapAdress,mapx,mapy){ var num = 0.002; var num2 = 0.0005; var map = new BMap.Map("map"); var point = new BMap.Point(mapx,mapy); // var myIcon = new BMap.Icon("../images/address.png", new BMap.Size(31,40)); // var marker2 = new BMap.Marker(point,{icon:myIcon}); // map.addOverlay(marker2); var marker =new BMap.Marker(point);// 创建标注 map.addOverlay(marker);// 将标注添加到地图中 marker.setAnimation(BMAP_ANIMATION_BOUNCE);//跳动的动画 if($(window).width()>1024){ map.centerAndZoom(point, 11); map.addControl(new BMap.NavigationControl()); }else{ map.centerAndZoom(point, 11); } map.disableScrollWheelZoom() map.disableDoubleClickZoom() // if($(window).width()<1025){ // num = 0; // map.centerAndZoom(point2, 20); // } } function select(){ $(".year_select").each(function (i) { $(this).find("dt").click(function (e) { console.log('1') // if($(this).hasClass('on_o')){ // $(this).removeClass('on_o'); // $(this).siblings().slideUp(200); // // }else{ // $(this).addClass('on_o'); // $(this).siblings().slideDown(200); // } // e.preventDefault(); // e.stopPropagation() // $(".year_select").eq(i).find("dd a").each(function (x) { // $(this).click(function () { // // $(".year_select").eq(i).find("dt p").addClass("cur_p") // $(".year_select").eq(i).find("dd a").removeClass("on"); // $(this).addClass("on"); // $(".year_select").eq(i).find("dt p").text($(this).text()); // // $(".year_select").eq(i).find("dt").attr({"data-val":$(this).data("val")}); // }) // }) }) }) $(document).click(function () { console.log('1') $(".year_select dd").slideUp(200); $(".year_select dt").removeClass('on_o'); }) $(".year_select dt").on("click", function(e){ $(this).parents(".year_select").siblings(".year_select").children("dd").slideUp(200); $(this).parents(".year_select").siblings(".year_select").children("dt").removeClass('on_o'); }); // 联系我们 setTimeout(function(){ $(".select01 dd a").eq(0).click(); },200) $(".select01 dd a").click(function(){ var url = $(this).data("src"); if(url == ""){ return false; }else{ // caseAjax(".map_block",url) } }) } /*function caseAjax(str,url){ if (url.indexOf('?') == -1) { url += '?tm=' + Math.random(); } else { url += '&tm=' + Math.random(); } $.ajax({ url:url, success:function(msg){ $(str).html(""); $(str).append(msg); setTimeout(function(){ ScollText(".contact_cont .contact_p"); },200) } }); }*/