"use strict";var beforeTranslate=void 0,number=0,iSwiper=null;function initTopSlider(){var n,i,a,e;$(".topBanner").length&&(n=function(e){$(".slick-dots li").eq(e).children("span").animate({left:0},{duration:3e3,easing:"linear"})},i=function(t){$(".slick-dots li").each(function(e){e!==t&&($(this).children("span").stop(),$(this).children("span").animate({left:"-100%"},0))})},(a=$(".topBanner")).slick({slidesToShow:1,slidesToScroll:1,autoplay:!0,dots:!0,arrows:!3e3,autoplaySpeed:3e3,speed:400,pauseOnHover:!1}),$(".slick-dots li button").after(""),e=1,n(0),$(".slick-dots li").eq(0).children("span").animate({left:0},3e3),$(".slick-dots li").on("click","button",function(){$(this).siblings("span").animate({left:"0%"},0),e=0,i($(this).parent().prevAll().length)}),e&&a.on("afterChange",function(e,t){t=a.slick("slickCurrentSlide");i(t),n(t)}),$(".topBanner li span").each(function(){$(this).on("mousedown",function(e){$(this).attr("dx",e.screenX),$(this).attr("dy",e.screenY)}),$(this).on("mouseup",function(e){var t=$(this).attr("dx"),n=$(this).attr("dy");Math.abs(e.screenX-t)<3&&Math.abs(e.screenY-n)<3&&null!=$(this).attr("data-href")&&(location.href=$(this).attr("data-href"))})}))}function handleNews(){$("#news button").on("click",function(){var e=$(this).data("nav");$(this).addClass("active").siblings().removeClass("active"),$("#news".concat(e)).show().siblings().hide(),iSwiper&&iSwiper.update()})}function handleHomeShowTop(){var e=$(window),t=$("#pageTop"),n=$("#pageTop a"),i=$("#comFooter"),a=$("#footGroupLogo").offset().top,o=parseFloat(i.css("padding-top"));e.height()>a?(t.appendTo(i),t.addClass("active"),n.addClass("show"),t.css({top:o+"px",right:"0px"})):(t.appendTo("body"),n.addClass("show"),a=(e.width()-i.width())/2,t.css("right",a+"px"),t.css("top","auto"),t.css("bottom","10px"))}function handleHomeHideTop(){$("#pageTop a").removeClass("show")}function initSwiper(){var n=new Swiper("#swiper-container1",{direction:"vertical",mousewheelControl:!0,onSetTransition:function(e,t){(1==e.activeIndex?($("#headerNav").hide(),e.params.onlyExternal=!0,e.disableMousewheelControl(),0===number&&(iSwiper.params.onlyExternal=!0,iSwiper.disableMousewheelControl(),setTimeout(function(){iSwiper.params.onlyExternal=!1,iSwiper.enableMousewheelControl()},500)),handleHomeShowTop):(number=0,$("#headerNav").show(),e.params.onlyExternal=!1,e.enableMousewheelControl(),handleHomeHideTop))()},onTransitionEnd:function(e){0==e.activeIndex&&setTimeout(function(){$("#headerNav").show()},200)}});iSwiper=new Swiper("#swiper-container2",{scrollbar:".swiper-scrollbar",direction:"vertical",slidesPerView:"auto",freeMode:!0,freeModeMomentum:!1,scrollbarDraggable:!0,mousewheelControl:!0,mousewheelSensitivity:.5,onSetTranslate:function(e,t){void 0===beforeTranslate&&(beforeTranslate=0),1<=number&&0===t&&0===beforeTranslate&&n.slideTo(0),100\n\t\t\t\n\t\t\t\t').concat(e.publishTime,'\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t
').concat(e.newsTitle,"
\n\t\t\t\t
\n\t\t\t\n\t\t")}),$(e).html(t),iSwiper&&iSwiper.update()}function handleSpecialListHtml(e){var t="";(1\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t
').concat(e.title,"
\n\t\t\t\t
\n\t\t\t\n\t\t")}),$(e).html(t),iSwiper&&iSwiper.update()}$(function(){getNewsList(),initSwiper(),initTopSlider(),handleNews(),handleSpecialListHtml("#news3",specialList)});