$(function(){ var width=$(window).width(); $('.BannerShow_b1 .swiper-pagination').addClass('banner-pagination'); $('.BannerShow_b1 .swiper-container').append('
>
<
'); var mySwiper = new Swiper('.BannerShow_b1 .swiper-container',{ loop: true, autoplay:5000, speed:1000, pagination: '.banner-pagination', autoplayDisableOnInteraction : false, paginationClickable: true, nextButton: '.arrow-right', prevButton: '.arrow-left', }); var mySwiper1 = new Swiper('.s2 .B .swiper-container',{ loop: true, autoplay:5000, speed:1000, slidesPerView : 3, slidesPerGroup : 3, pagination: '.swiper-pagination', autoplayDisableOnInteraction : false, paginationClickable: true, nextButton: '.right', prevButton: '.left', breakpoints: { 721: { slidesPerView : 1, slidesPerGroup : 1, } } }); //首页新闻 if(width>720){ $('.s3 .M').height($('.s3 .M').width()); } else{ $('.s3 .M').removeAttr('style'); } $(window).resize(function(e) { width=$(window).width(); if(width>720){ $('.s3 .M').height($('.s3 .M').width()); } else{ $('.s3 .M').removeAttr('style'); } }); $('.s4 .data').each(function(index, element) { $(this).insertAfter($(this).parent().find('.newnr')).wrap('
'); }); $('.s4 .n-text').each(function(index, element) { $(this).prepend($(this).parent().find('.newnr')); }); $('.s4 .page,.s4 .more').remove(); //首页产品 text1=['铝材设备专用风机','陶瓷窑炉专用风机','环保设备节能风机','(木糠、玻璃)设备专用风机','特种风机','轴流风机']; text2=[ '本厂生产铝材专用风机:高温循环棒炉风机、多种时效炉风机、退火炉风机、均质炉风机、模具炉风机、熔铸炉风机、立卧式氧化线、喷涂线风机,专业跟据铝材行业设备的实际工况设计风机。该风机设计理念,根据每台设备的实际工况设计新型风机,具有流量大、压力高、噪声低,性能稳定。', '公司生产的陶瓷专用风机:喷雾塔风机、排烟风机、助燃风机、急冷风机、热交换风机、抽热风机、尾冷风机等,根据实际工况选型:Y8-39型、Y9-38型、Y(G)4-73型、G9-19型、M9-26型、Y5-47型、Y6-48型、Y4-72型、9-35型,也可根据实际工况设计非标风机。', '本厂生产铝材环保风机:铝材设备环保节能风机。', '一般离心式通风机T4-72型、(B)4-72型、4-79型、6-30型等能应用于车间、厂房、仓库商场、宾馆、会议室、体育馆、影剧院等各类大型建筑物的通风排气、采暖空调、强制冷却等。高压离心通风机如8-09型、9-12型、9-19型、9-26型、10-20型、ZFH01型等常用于锻冶炉、化铁炉、焚化炉、烘干炉等需高压强制通风、快速冷却场合。', '我厂生产的排尘风机有C4-73型、C6-46型、C6-48型、C4-68型等适合于各类大型建筑物的通风换气,采暖空调,排烟除尘等各类工业和民用生产线工艺流程中吸除烟尘等用途。 ', '公司生产的陶瓷专用风机:喷雾塔风机、排烟风机、助燃风机、急冷风机、热交换风机、抽热风机、尾冷风机等,根据实际工况选型:Y8-39型、Y9-38型、Y(G)4-73型、G9-19型、M9-26型、Y5-47型、Y6-48型、Y4-72型、9-35型,也可根据实际工况设计非标风机。' ]; text3=['product_list.php?rid=37&cid=1','product_list.php?rid=37&cid=3','product_list.php?rid=37&cid=2','product_list.php?rid=37&cid=4','product_list.php?rid=37&cid=5','product_list.php?rid=37&cid=6']; $('.s3 .w-87>.R h3').text(text1[0]); $('.s3 .w-87>.R p').text(text2[0]); $('.s3 .a').attr('href',text3[0]); $('.s3 .L li>div').click(function(){ This=$(this); if($(this).parent().hasClass('on')){} else{ $('.s3 .L li').removeClass('on'); $('.s3 .M .img img,.s3 .w-87>.R h3,.s3 .w-87>.R p').fadeOut(300); setTimeout(function(){ $('.s3 .w-87>.R h3').text(text1[This.parent().index()]).fadeIn(300); $('.s3 .w-87>.R p').text(text2[This.parent().index()]).fadeIn(300); $('.s3 .a').attr('href',text3[This.parent().index()]); $('.s3 .M .img img').attr('src','images/pp'+(This.parent().index()+1)+'.png').fadeIn(300); },250); $(this).parent().addClass('on'); } }); function m(){ $('.s3 .M .img img,.s3 .w-87>.R h3,.s3 .w-87>.R p').fadeOut(300); setTimeout(function(){ $('.s3 .w-87>.R h3').text(text1[i-1]).fadeIn(300); $('.s3 .w-87>.R p').text(text2[i-1]).fadeIn(300); $('.s3 .a').attr('href',text3[i-1]); $('.s3 .M .img img').attr('src','images/pp'+i+'.png').fadeIn(300); },250); } var i=$('.s3 .L li.on').index()+1; $('.s3-left').click(function(){ if(i<2){ i=6; } else{ i=i-1; } m(); }); $('.s3-right').click(function(){ if(i>5){ i=1; } else{ i=i+1; } m(); }); //新闻 $('#NewsList_a2').hide(); text4=['news_list.php?rid=50','news_list.php?rid=51']; $('.s4 .a').attr('href',text4[0]); $('.s4 .L li').click(function(){ This=$(this); if($(this).hasClass('on')){} else{ $('.s4 .L li').removeClass('on'); $(this).addClass('on'); $('.s4 .R>div').addClass('on'); $('.s4 .a').attr('href',text4[This.index()]); setTimeout(function(){ $('.s4 .R>div').hide(); $('#NewsList_a'+(This.index()+1)).show(); },500) setTimeout(function(){ $('#NewsList_a'+(This.index()+1)).removeClass('on'); },550); } }); });