// 鍏ㄥ睆婊戝姩 $(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(); $(".nday .sx span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); }); 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'); $(".hbtm ").stop(true, false).addClass('act'); } else { $(".head").stop(true, false).removeClass('act'); $(".hbtm").stop(true, false).removeClass('act'); } }); setTimeout(function () { }, 100); $('.head .abtn .ss .ssp').on('click',function(){ $(this).stop(true, false).toggleClass('act'); $('.head .abtn .ss .sbtn').stop(true, false).toggleClass('act'); }); $('.head .abtn .yjdh a').hover(function(){ $('.hbtm').stop(true, false).addClass('act2'); var idx=$(this).index(); $(".hbtm .ul1 li").eq(idx).stop(true, false).slideDown().siblings().stop(true, false).hide(); },function(){ $('.hbtm').stop(true, false).removeClass('act2'); }); $('.head .abtn .yjdh a:nth-child(5)').hover(function(){ var idx=$(this).index(); $(".hbtm .ul1 li").eq(idx).stop(true, false).hide().siblings().stop(true, false).hide(); },function(){ }); $('.right li.li2').hover(function () { $('.li2_hov').stop(true, false).addClass('act'); }, function () { $('.li2_hov').stop(true, false).removeClass('act'); }); $('.right .li2_hov').hover(function () { console.log('绉诲叆---') $('.li2_hov').stop(true, false).addClass('act'); },function(){ $('.li2_hov').stop(true, false).removeClass('act'); }); $('.hbtm').hover(function(){ $(this).stop(true, false).addClass('act2'); },function(){ $(this).stop(true, false).removeClass('act2'); }); /* 璇█鍒囨崲 */ $('.yy').hover(function(){ $('.inter').stop(true, false).addClass('act'); },function(){ $('.inter').stop(true, false).removeClass('act'); }); $('.inter').hover(function(){ $(this).stop(true, false).addClass('act'); },function(){ $(this).stop(true, false).removeClass('act'); }); } // 棣栭〉杞挱 var seact=$(".i1 .swiper1 .swiper-slide").length; $(".i1 .swiper1 .rbox .dian li").eq(0).addClass('act'); var swiper1 = new Swiper('.swiper1', { autoplay: 3000, speed: 1000, autoplayDisableOnInteraction: false, slidesPerView: 1, spaceBetween: 0, noSwiping: false, noSwipingClass: 'stop-swiping', centeredSlides: true, paginationClickable: true, breakpoints: { //褰撳搴﹀皬浜庣瓑浜?60 960: { } }, onInit: function(swiper){ //$(".i1 .swiper1 .rbox .num .s2").text("0" + seact); }, onSlideChangeStart: function (swiper1) { var idx=swiper1.realIndex+1; $(".i1 .swiper1 .rbox .dian .shu").text("0" + idx); }, onSlideChangeEnd: function (swiper1) { var idx=swiper1.realIndex; $(".i1 .swiper1 .rbox .dian li").eq(idx).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); }, }); $(".i1 .swiper1 .rbox .dian ").on('click','li',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); swiper1.slideTo(idx, 1000, false); }); // 棣栭〉瑙e喅鏂规宸︿晶鐐瑰嚮 $(".i2 .icont .ilt .dl1.act dt .swiper2 .swiper-slide").eq(0).addClass('act'); $(".i2 .icont .ilt .dl1 dt .swiper2 .swiper-slide").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(this).parents('dt').siblings('dd').find('.abox').eq(idx).stop(true,false).fadeIn().siblings().stop(true,false).hide(); }); $(".i2 .icont .ilt .dl1 dt .swiper2 .swiper-slide").hover(function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(this).parents('dt').siblings('dd').find('.abox').eq(idx).stop(true,false).fadeIn().siblings().stop(true,false).hide(); },function(){ }); var swiper2=''; swiper2 = new Swiper('.swiper2_0', { slidesPerView: 'auto', paginationClickable: true, spaceBetween: 20, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', speed:800, scrollbar:'.scrollbar2_0' , scrollbarHide:false, }); // 棣栭〉瑙e喅鏂规鍙充晶鐐瑰嚮 $(".i2 .icont .irt .ul1 li").eq(0).addClass('act'); $(".i2 .icont .irt .ul1 li").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(".i2 .icont .ilt .dl1").eq(idx).stop(true,false).fadeIn().addClass('act').siblings().stop(true,false).hide().removeClass('act'); swiper2.destroy(true, true); swiper2 = new Swiper('.swiper2_' + idx, { slidesPerView: 'auto', paginationClickable: true, spaceBetween: 20, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', speed:800, scrollbar:'.scrollbar2_' + idx , scrollbarHide:false, }); $(".i2 .icont .ilt .dl1.act dt .swiper2 .swiper-slide").eq(0).addClass('act'); }); $(".i2 .icont .irt .ul1 li").hover(function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(".i2 .icont .ilt .dl1").eq(idx).stop(true,false).fadeIn().addClass('act').siblings().stop(true,false).hide().removeClass('act'); swiper2.destroy(true, true); swiper2 = new Swiper('.swiper2_' + idx, { slidesPerView: 'auto', paginationClickable: true, spaceBetween: 20, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', speed:800, scrollbar:'.scrollbar2_' + idx , scrollbarHide:false, }); $(".i2 .icont .ilt .dl1.act dt .swiper2 .swiper-slide").eq(0).addClass('act'); },function(){ }); // 鎵嬫満棣栭〉瑙e喅鏂规鍙充晶鐐瑰嚮 $(".i2 .icont .irtm span").eq(0).addClass('act'); $(".i2 .icont .irtm span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(".i2 .icont .ilt .dl1").eq(idx).stop(true,false).fadeIn().addClass('act').siblings().stop(true,false).hide().removeClass('act'); swiper2.destroy(true, true); swiper2 = new Swiper('.swiper2_' + idx, { slidesPerView: 'auto', paginationClickable: true, spaceBetween: 20, autoplayDisableOnInteraction : false, noSwiping : false, noSwipingClass : 'stop-swiping', speed:800, scrollbar:'.scrollbar2_' + idx , scrollbarHide:false, }); $(".i2 .icont .ilt .dl1.act dt .swiper2 .swiper-slide").eq(0).addClass('act'); }); // 棣栭〉浜у搧鍒囨崲 $(".i3 .irt span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(".i3 .icont dl").eq(idx).stop(true,false).fadeIn().siblings().stop(true,false).hide(); }); $(".i3 .irt span").hover(function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $(".i3 .icont dl").eq(idx).stop(true,false).fadeIn().siblings().stop(true,false).hide(); },function(){ }); $(".i3m .abtn span").on('click',function(){ $(this).stop(true,false).addClass('act').siblings().stop(true,false).removeClass('act'); var idx=$(this).index(); $('.i3m .ubox .dl1').eq(idx).stop(true,false).fadeIn().siblings().stop(true,false).hide(); }); // 棣栭〉鐑偣 var swiper3 = new Swiper('.swiper3', { autoplay: 3000, speed: 800, slidesPerView: '3',//璁剧疆slider瀹瑰櫒鑳藉鍚屾椂鏄剧ず鐨剆lides鏁伴噺(carousel妯″紡)銆 paginationClickable: true,//姝ゅ弬鏁拌缃负true鏃讹紝鐐瑰嚮鍒嗛〉鍣ㄧ殑鎸囩ず鐐瑰垎椤靛櫒浼氭帶鍒禨wiper鍒囨崲銆 spaceBetween: 40,//slide涔嬮棿鐨勮窛绂伙紙鍗曚綅px锛 loop: true,//璁剧疆涓簍rue 鏃犻檺寰幆 centeredSlides: true,//璁惧畾涓簍rue鏃讹紝娲诲姩鍧椾細灞呬腑锛岃€屼笉鏄粯璁ょ姸鎬佷笅鐨勫眳宸︺€ autoplayDisableOnInteraction: false,//姝ゅ弬鏁拌缃负true鏃讹紝鐐瑰嚮鍒嗛〉鍣ㄧ殑鎸囩ず鐐瑰垎椤靛櫒浼氭帶鍒禨wiper鍒囨崲銆 noSwiping: false,//璁句负true鏃讹紝鍙互鍦╯lide涓婏紙鎴栧叾浠栧厓绱狅級澧炲姞绫诲悕'swiper-no-swiping'锛屼娇璇lide鏃犳硶鎷栧姩锛 noSwipingClass: 'stop-swiping',//姝ゅ弬鏁拌缃负true鏃讹紝鐐瑰嚮鍒嗛〉鍣ㄧ殑鎸囩ず鐐瑰垎椤靛櫒浼氭帶鍒禨wiper鍒囨崲銆 prevButton: '.prev3', nextButton: '.next3', breakpoints: { //鏂偣璁惧畾锛氭牴鎹睆骞曞搴﹁缃煇鍙傛暟涓轰笉鍚岀殑鍊硷紝绫讳技浜庡搷搴斿紡甯冨眬鐨刴edia screen銆 //褰撳搴﹀皬浜庣瓑浜?60 960: { slidesPerView: 1, spaceBetween: 0, scrollbar:'.scrollbar3' , scrollbarHide:false, } }, }); $(".i1_ne .ibt .swiper3 ").hover(function(){ swiper3.stopAutoplay(); },function(){ swiper3.startAutoplay(); }); // 婀栨渤鏂规 var swiper11 = new Swiper('.swiper11', { autoplay: 3000, speed: 800, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, loop: true, centeredSlides: true, autoplayDisableOnInteraction: false, noSwiping: false, noSwipingClass: 'stop-swiping', pagination : '.pagination11', }); // 婀栨渤鏂规鐗圭偣 var swiper12 = new Swiper('.swiper12', { autoplay: 3000, speed: 800, slidesPerView: 1, paginationClickable: true, spaceBetween: 0, loop: true, centeredSlides: true, autoplayDisableOnInteraction: false, noSwiping: false, noSwipingClass: 'stop-swiping', prevButton:'.prev12', nextButton:'.next12', pagination : '.pagination12', }); /*pc瀵艰埅*/ /*瑙嗛寮圭獥*/ $('.z_tanchuang .out').on('click',function(){ $('.z_tanchuang').addClass('out'); $('html').removeClass('act'); $(".z_tanchuang video").trigger('pause'); }); // 寰俊瀹㈡湇 // $("body").on("click",".wxkf",function(){ // $(".ewmcx1").fadeIn(); // }) $(".ewmcx .ewm_img .cuo").on("click",function(){ $(".ewmcx").fadeOut(); }) // 鍦ㄧ嚎瀹㈡湇 $("body").on("click", ".zxkf", function () { $(".ewmcx1").fadeIn(); }) $(".ewmcx1 .ewm_img .cuo").on("click", function () { $(".ewmcx1").fadeOut(); }) /*鎵嬫満澶撮儴*/ $(".m_navbox .ul1 li .lbt .llt .l_li").click(function(){ var idx=$(this).index(); $(this).stop(true, false).addClass('act').siblings().removeClass('act'); $(".m_navbox .ul1 li .lbt .lrt .labtn").eq(idx).stop(true, false).show().siblings().stop(true, false).hide(); }); $(".m_navbox li .ltp").click(function () { $(this).parent('li').stop(true, false).toggleClass('act').siblings().removeClass('act'); $(this).parent('li').find(".lbt").stop(true, false).slideToggle(); $(this).parent('li').siblings().find(".lbt").stop(true, false).slideUp(); }); $(".m_head .sbtn ").click(function () { $(this).stop(true, false).toggleClass("act"); $('.m_navbox').stop(true, false).slideToggle(); $('html').stop(true, false).toggleClass("act"); }); $('.m_head .ss .ssp ').on('click', function () { $(this).stop(true, false).toggleClass('act'); $('.m_head .ss .sbtn1').stop(true, false).toggleClass('act'); }); $(".m_navbox .ul1 li .lbt .lbox2 a").click(function(){ $('html').stop(true, false).toggleClass("act"); $('.m_navbox').stop(true, false).slideToggle(); $(".m_head .sbtn ").stop(true, false).toggleClass("act"); }); $(".m_navbox .lv2").click(function () { $(this).parent('.lv2box').stop(true, false).toggleClass('act').siblings().removeClass('act'); $(this).siblings('.lv2list').stop(true, false).slideToggle(); }); // PAD绔 if (w < 1200 && w>960) { } // 鎵嬫満绔 if (w < 960) { } }); (function (w, d, n, a, j) { w[n] = w[n] || function () { (w[n].a = w[n].a || []).push(arguments); }; j = d.createElement('script'); j.async = true; j.src = 'https://qiyukf.com/script/3de60aa8c5458d6389338ecd6c96e8a4.js?subdomain=1'; d.body.appendChild(j); })(window, document, 'ysf'); ysf('onready', function () { // todo // console.log('sdk ready'); }); function tzx() { //ysf('open'); // window.location.href = ""; window.open("https://p.qiao.baidu.com/cps/chat?siteId=17976377&userId=40320331&siteToken=5b1385c0d03521d2ac384da400eecc01"); // window.open("https://p.qiao.baidu.com/cps/chat?siteId=17374209&userId=36292132&siteToken=eac87b008d97bc0a2e41b3865309bac2"); // console.log('111'); }