let bannerSwiper = new Swiper(".banner-swiper", { direction: "horizontal", speed: 300, loop: !0, autoplay: {delay: 3e4}, pagination: {el: ".banner-swiper .swiper-pagination", clickable: !0} }), caseSwiper = new Swiper(".case-swiper", { effect: "horizontal", loop: !1, on: { transitionEnd: function (a) { $(".product-tab .active").removeClass("active"), $("#product-tab-item" + a.activeIndex).addClass("active") } } }); $(".product-tab-item").click(function () { caseSwiper.slideTo($(this).attr("name")) }); let solutionIndex = 0, solutionSwiper = new Swiper(".solution-swiper", { effect: "horizontal", loop: !1, on: { transitionEnd: function (a) { solutionIndex = a.activeIndex, solutionItemActive(solutionIndex) } } }); $(".solution-item").click(function () { solutionSwiper.slideTo($(this).attr("name")) }); function solutionItemActive(a) { $(".solution-tab .active").removeClass("active"), $(".solution-item").eq(a).addClass("active"), $(".solution-item-bg").css({left: 162 * a + "px"}) } $(".nav-link").click(function () { $(".nav-link-active").removeClass("nav-link-active"), $(this).addClass("nav-link-active"); let a = $(this).attr("to") ? $($(this).attr("to")).offset().top : 0; return $("html, body").animate({scrollTop: a}, {duration: 500, easing: "swing"}), !1 }), $(".login").click(function () { window.location.href = "https://www.workark.com/frontend/#/loginRegister/login" }), $(".register").click(function () { window.location.href = "https://www.workark.com/frontend/#/loginRegister/register" }), $(".jianzao").click(function () { window.location.href = "https://www.youjiyun.net/console/index.html" });