$(function () { // var indexbanner = new Swiper('.banner .swiper-container',{ // pagination : '.banner .swiper-pagination', // paginationClickable: true, // slidesPerView:1, // autoplay:3500, // loop:true, // spaceBetween:0, // prevButton:'.banner .swiper-button-prev', // nextButton:'.banner .swiper-button-next', // autoplayDisableOnInteraction : false, // onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit // swiperAnimateCache(swiper); //隐藏动画元素 // swiperAnimate(swiper); //初始化完成开始动画 // }, // onSlideChangeEnd: function(swiper){ // swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画 // } // }) $(document).ready(function() { var swiperFlag = false; $(".banner li").eq(0).addClass("ani-slide"); if($(".banner li").length>1){ var mySwiper = new Swiper('.banner .swiper-container', { autoplay: 5000, speed:1000, autoHeight: true, loop: true, prevButton:'.banner .swiper-button-prev', nextButton:'.banner .swiper-button-next', autoplayDisableOnInteraction : false, pagination: '.banner .swiper-pagination', paginationClickable :true, onInit: function(swiper){ slide=swiper.slides.eq(0); slide.addClass('ani-slide'); swiperAnimateCache(swiper); //隐藏动画元素 swiperAnimate(swiper); //初始化完成开始动画 },onTransitionStart: function(swiper){ for(i=0;i767) { videoSelect($('.banner .swiper-slide.swiper-slide-active')); }else{ } function videoSelect(_this) { var flag = true; var cc = _this.hasClass('ban_video'); if(cc) { mySwiper.stopAutoplay(); var videos = ''; _this.append(videos); var aaa = setInterval(function() { if(!isNaN($(".vv").get(0).duration) && flag) { clearInterval(aaa); flag = false; setTimeout(function() { _this.find('video').css("display", "block"); }, 500) } }, 10); _this.find('video').bind('ended', function() { mySwiper.slideNext(); mySwiper.startAutoplay(); }); } else { $('.vv').remove(); } } // if($(".banner li").length>1){ // $(".banner .but").show(); // }else{ // $(".banner .but").hide(); // } }) for (var i = 0; i < $('.hr_data dl dd span').size(); i++) { new wormDigitalScroll({ el: $('.hr_data dl').eq(i).find('span').get(0), time: 1000 }) } if($(window).width()<1024){ var sfqSwiper = new Swiper('.index_02 .swiper-container',{ pagination : '.index_02 .swiper-pagination', paginationClickable: true, slidesPerView:1, autoplay:3500, loop:true, spaceBetween:0, // observer:true, // observeParents:true, prevButton:'.index_02 .swiper-button-prev', nextButton:'.index_02 .swiper-button-next', autoplayDisableOnInteraction : false, }) }else{ $(".index_02 ul li").eq(0).addClass("on") sfq() } $(window).resize(function () { sfq() var width=$(".index_02 ul").width() / 10 var widthOn=$(".index_02 ul").width() * 0.6 $(".index_02 ul li").width(width) $(".index_02 ul li.on").width(widthOn) }) // $(".index_02 ul li").mouseout(function(){ // // }); $(".index_03 .pub_item").eq(0).show() $(".index_03 .publi_box li").click(function () { $(this).addClass("on").siblings().removeClass("on") var index=$(this).index() $(".index_03 .pub_item").eq(index).show().siblings().hide() }) if($(window).width()<767){ var publi_box = new Swiper('.index_03 .swiper-container',{ pagination : '.index_03 .swiper-pagination', paginationClickable: true, slidesPerView:1, spaceBetween:0, prevButton:'.index_03 .swiper-button-prev', nextButton:'.index_03 .swiper-button-next', autoplayDisableOnInteraction : false, onSlideChangeEnd: function(swiper){ $(".index_03 .pub_item").eq(swiper.activeIndex).show().siblings().hide() } }) var publi_box1 = new Swiper('.index_05 .publi_box .swiper-container',{ pagination : '.index_05 .publi_box .swiper-pagination', paginationClickable: true, slidesPerView:1, spaceBetween:0, prevButton:'.index_05 .publi_box .swiper-button-prev', nextButton:'.index_05 .publi_box .swiper-button-next', autoplayDisableOnInteraction : false, onSlideChangeEnd: function(swiper){ $(".index_05 .pub_item").eq(swiper.activeIndex).show().siblings().hide() var dlCount=Math.ceil($(".pubSwer_item").eq(swiper.activeIndex).find('.tab_slide02_hide dl').length/sizesnum) for(i=0;i') for(x=0;x') for(x=0;x') for(x=0;x