new WOW().init(); // 移动端 点击出现 $('.wy_Cate').on('click', function () { // 按钮隐藏 $(this).css({ 'opacity': 0 }, 500) // 内容滑出 $('.wy_CateList').animate({ "left": 0 }, 500) }) // 移动端 点击收回 $('.wy_backBtn').on('click', function () { // 按钮显示 $('.wy_Cate').css({ 'opacity': 1 }, 500) // 内容收回 $('.wy_CateList').animate({ "left": "100%" }, 500) }) /*分类高亮*/ $(function() { var pathName = window.location.pathname; // 获得路径信息 var subUrl = pathName.substring(pathName.lastIndexOf("/")); $(".s_button3").each(function() { // 遍历a链接的路径 var aLinkUrl = $(this).attr("href"); // 得到a链接的路径 if (aLinkUrl == pathName) { $(this).addClass("wy_Click"); return; }; }); $('.footer_top').click(function() { $("html,body").animate({scrollTop:0}, 500); }); }); /*end*/ /*服务支持*/ $require(['swiper'], function () { new Swiper("#home_service", { spaceBetween: 15, loop: true, speed: 14000, observer: true, observeParents: true, autoplay: { delay: 0, disableOnInteraction: false, }, slidesPerView: 'auto' }); });