// 全屏滑动 $(function () { // 头部导航 /*锚点跳转*/ $(function () { //锚点跳转滑动效果 $('a.ph[href*=#]').click(function () { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[id=' + this.hash.slice(1) + ']'); if ($target.length) { var targetOffset = $target.offset().top; $('html,body').animate({ scrollTop: targetOffset }, 500); return false; } } }); }); var top = $(window).scrollTop(); $(".top").click(function () { $("html,body").animate({ scrollTop: 0 }, 1000); }); var w = $(window).width(); if (w > 768) { if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) { new WOW( { callback: function (box) { $(box).addClass("wow1"); } }).init(); } $(window).resize(function () { new WOW( { callback: function (box) { $(box).addClass("wow1"); } }).init(); }); } if (w > 1200) { if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) { new WOW( { callback: function (box) { $(box).addClass("wow1"); } }).init(); } $(window).resize(function () { new WOW( { callback: function (box) { $(box).addClass("wow1"); } }).init(); }); $(window).scroll(function () { if ($(window).scrollTop() >= 100) { $(".head ").stop(true, false).addClass('act'); } else { $(".head").stop(true, false).removeClass('act'); } if ($(window).scrollTop() >= 400) { $(".top ").stop(true, false).addClass('act'); } else { $(".top").stop(true, false).removeClass('act'); } }); setTimeout(function () { }, 100); var swiper1 = new Swiper('.swiper1', { // autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', loop:true, // pagination : '.pagination1', onSlideChangeStart: function(swiper1){ } }); var swiper2 = new Swiper('.swiper2', { autoplay:3000, speed:800, direction : 'vertical', slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev2', nextButton:'.next2', loop:true, }); var swiper3 = new Swiper('.swiper3_1', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3_1', scrollbar: '.scrollbar3_1', scrollbarHide:false, grabCursor: false }); $(".i3 .irt .tt .abtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $('.i3 .irt .isbox .swiper3').eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); var idx=$(this).index()+1; console.log(idx); swiper3.destroy(false,false); swiper3 = new Swiper('.swiper3_' + idx, { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3_'+idx, scrollbar: '.scrollbar3_'+idx, scrollbarHide:false, grabCursor: false }); }); var swiper4 = new Swiper('.swiper4', { autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', loop:true, pagination : '.pagination4', }); var swiper5 = new Swiper('.swiper5', { autoplay:3000, speed:800, slidesPerView: 4, paginationClickable: true, spaceBetween: 20, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev5', nextButton:'.next5', }); var swiper6 = new Swiper('.swiper6', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev6', nextButton:'.next6', slidesOffsetAfter : 100, }); var swiper7 = new Swiper('.swiper7', { speed:800, slidesPerView: "auto", direction : 'vertical', paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev7', nextButton:'.next7', }); } /*pc导航*/ $(".i5 .tt .abtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $('.i5 .ubox .ul1').eq($(this).index()).stop(true,false).fadeIn().siblings().stop(true,false).hide(); }); $('.ab6 .ali .ul1 li').hover(function(){ $('.ab6 .img0 img').eq($(this).index()).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); },function(){ }); $(".se2 .swiper_xm1 .li .sbtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); // $('.se2 .swiper_xm1 .li .abox .abtn').eq($(this).index()).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $(this).parents('.sbtn').siblings('.abox').find(' .abtn').eq($(this).index()).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); }); /*视频弹窗*/ $(".pe1 .ul1 li .lxian .more").on('click',function(){ var idx=$(this).parents("li").index(); $('.tx_tacnhuang').fadeIn(); $('.tx_tacnhuang .tbox .txbox .tx').eq(idx).stop(true,false).show().siblings().stop(true,false).hide(); $("html").addClass('act'); }); $(".ab1 .atp .art .bf").on('click',function(){ $('.vd_tacnhuang').fadeIn(); $(".vd_tacnhuang video").trigger('play'); $("html").addClass('act'); }); $(".tacnhuang .tbox .out").on('click',function(){ $('.tacnhuang').fadeOut(); $("html").removeClass('act'); }); $(".vd_tacnhuang .tbox .out").on('click',function(){ $(".tacnhuang video").trigger('pause'); $("html").removeClass('act'); }); /*招聘*/ /*手机头部*/ $(".m_navbox li").click(function () { $(this).stop(true, false).toggleClass('act').siblings().removeClass('act'); $(this).find(".lbt").stop(true, false).slideToggle(); $(this).siblings().find(".lbt").stop(true, false).slideUp(); }); $(".m_head .img").click(function () { $(".m_nav").addClass("act"); }); $(".m_out").click(function () { $(".m_nav").removeClass("act"); }); // PAD端 if (w < 1200 && w>960) { var swiper1 = new Swiper('.swiper1', { // autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', // loop:true, pagination : '.pagination1', onSlideChangeStart: function(swiper1){ } }); var swiper2 = new Swiper('.swiper2', { autoplay:3000, speed:800, direction : 'vertical', slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev2', nextButton:'.next2', loop:true, }); var swiper3 = new Swiper('.swiper3_1', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3', scrollbar: '.scrollbar3_1', scrollbarHide:false, grabCursor: false }); $(".i3 .irt .tt .abtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $('.i3 .irt .isbox .swiper3').eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); var idx=$(this).index()+1; console.log(idx); swiper3.destroy(false,false); swiper3 = new Swiper('.swiper3_' + idx, { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3_'+idx, scrollbar: '.scrollbar3_'+idx, scrollbarHide:false, grabCursor: false }); }); var swiper4 = new Swiper('.swiper4', { autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', loop:true, pagination : '.pagination4', }); var swiper5 = new Swiper('.swiper5', { autoplay:5000, speed:800, slidesPerView: 4, slidesPerGroup : 4, paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev5', nextButton:'.next5', }); var swiper6 = new Swiper('.swiper6', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev6', nextButton:'.next6', slidesOffsetAfter : 100, }); var swiper7 = new Swiper('.swiper7', { speed:800, slidesPerView: "auto", direction : 'vertical', paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev7', nextButton:'.next7', }); } // 手机端 if (w < 960) { var swiper1 = new Swiper('.swiper1', { // autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : true, noSwipingClass : 'stop-swiping', // loop:true, // pagination : '.pagination1', onSlideChangeStart: function(swiper1){ } }); var swiper2 = new Swiper('.swiper2', { autoplay:3000, speed:800, direction : 'vertical', slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev2', nextButton:'.next2', loop:true, }); var swiper3 = new Swiper('.swiper3_1', { speed:800, slidesPerView: 1, paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3', scrollbar: '.scrollbar3_1', scrollbarHide:false, grabCursor: false }); $(".i3 .irt .tt .abtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); $('.i3 .irt .isbox .swiper3').eq($(this).index()).stop(true,false).show().siblings().stop(true,false).hide(); var idx=$(this).index()+1; console.log(idx); swiper3.destroy(false,false); swiper3 = new Swiper('.swiper3_' + idx, { speed:800, slidesPerView: 1, paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', nextButton:'.next3_'+idx, scrollbar: '.scrollbar3_'+idx, scrollbarHide:false, grabCursor: false }); }); var swiper4 = new Swiper('.swiper4', { autoplay:5000, speed:1000, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', loop:true, pagination : '.pagination4', }); var swiper5 = new Swiper('.swiper5', { autoplay:5000, speed:800, slidesPerView: 1, slidesPerGroup : 1, paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', pagination : '.pagination5', }); var swiper6pc = new Swiper('.swiper6pc', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', pagination : '.pagination6pc', slidesOffsetAfter : 100, }); var swiper6m = new Swiper('.swiper6m', { speed:800, slidesPerView: "auto", paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', pagination : '.pagination6m', slidesOffsetAfter : 100, }); var swiper7 = new Swiper('.swiper7', { speed:800, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', prevButton:'.prev7', nextButton:'.next7', pagination : '.pagination7', }); var swiper3_3 = new Swiper('.swiper3_3', { speed:800, slidesPerView: 1, paginationClickable: true, spaceBetween: 5, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', scrollbar: '.scrollbar3_3', scrollbarHide:false, grabCursor: false, }); var swiper5m = new Swiper('.swiper5m', { autoplay:5000, speed:800, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', pagination : '.pagination5m', }); $(".i1 .swiper1 .swiper-slide .sbox .mimg").on('click',function(){ $(this).addClass('act'); $(".i1 .swiper1 .swiper-slide .sbox video").attr({controls:''},{poster:''}).trigger('play'); }); } });