$(function(){ try{ var brand3Swiper = new Swiper('.news_slider .swiper-container', { slidesPerView:1,//设置slider容器能够同时显示的slides数量(carousel模式) slidesPerGroup:1,//在carousel mode下定义slides的数量多少为一组。 spaceBetween: 0,//slide之间的距离(单位px)。 prevButton:'.news_slider .swiper-button-prev', nextButton:'.news_slider .swiper-button-next' }) }catch(e){ //TODO handle the exception } $('.font_size #middle').addClass("on").siblings().removeClass("on"); $('.news_edit .edit_con_original').css({ 'font-size': '18px', 'line-height': '1.8' }); $(document).on("click",".font_size a",function(){ $(this).addClass('on').siblings().removeClass('on'); }) $('a#big').click(function () { $('.news_edit .edit_con_original').css({ 'font-size': '24px', 'line-height': '2' }); }) $('a#middle').click(function () { $('.news_edit .edit_con_original').css({ 'font-size': '18px', 'line-height': '1.8' }); }) $('a#small').click(function () { $('.news_edit .edit_con_original').css({ 'font-size': '14px', 'line-height': '1.8' }); }) if($(window).width()>767) { var h_max = 0; var h_max1 = 0; $(".connect_01 dl").each(function(){ var h1 = $(this).height(); h_max1 = h1 > h_max1 ? h1 : h_max1; }) $('.connect_01 dl').height(h_max1); } }) // 地图 function mapInt(mapTitle,mapAdress,mapx,mapy){ var map = new BMap.Map("map"); var point = new BMap.Point(mapx,mapy); var point2 = new BMap.Point(mapx,mapy); //坐标偏移 var point2 = new BMap.Point(mapx+0.05,mapy); if($(window).width()>1024){ var myIcon = new BMap.Icon("../images/cont_address.png", new BMap.Size(60,108));// icon按钮 }else{ var myIcon = new BMap.Icon("../images/cont_address02.png", new BMap.Size(28,50));// icon按钮 } var marker2 = new BMap.Marker(point2,{icon:myIcon}); // 创建标注 map.addOverlay(marker2); // 将标注添加到地图中 map.centerAndZoom(point, 20); var opts = { width : 200, // 信息窗口宽度 height: 100, // 信息窗口高度 title : mapTitle // 信息窗口标题 } map.enableScrollWheelZoom(); //启用滚轮放大缩小,默认禁用 map.enableContinuousZoom(); //启用地图惯性拖拽,默认禁用 }