// 移动端 点击出现 $('.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; }; }); $('.wy_KfClose').on('click', function(event){ $(".wy_KfBox").css({"display":"none"}); }); $('.wy_Up_Button').click(function() { $("html,body").animate({scrollTop:0}, 500); }); }); /*end*/ /*首页解决方案*/ $require(['swiper'], function () { new Swiper('#home_solution', { // 自动轮播 autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, }, // 循环 loop: true, // 轮播速度 speed: 500, // 一屏幕显示个数 slidesPerView:1, // slide 之间的距离 spaceBetween: 10, // 媒体查询 breakpoints: { 768: { slidesPerView: 2, spaceBetween:10, }, 1024: { slidesPerView: 2, spaceBetween:15, }, 1300: { slidesPerView: 3, spaceBetween:15, }, }, pagination :{ el: '.solution_page', clickable :true, }, observer:true, observeParents:true, }); }); /*公司荣誉*/ $require(['swiper'], function () { new Swiper('#c_honor', { // 自动轮播 autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, }, // 循环 loop: true, // 轮播速度 speed: 500, // 一屏幕显示个数 slidesPerView:1, // slide 之间的距离 spaceBetween: 10, // 媒体查询 breakpoints: { 768: { slidesPerView: 2, spaceBetween:10, }, 1024: { slidesPerView: 3, spaceBetween:15, }, 1300: { slidesPerView:4, spaceBetween:15, }, }, pagination :{ el: '.honor_page', clickable :true, }, observer:true, observeParents:true, }); }); /*wow引用*/ new WOW().init(); /*底部背景滚动 $(document).ready(function () { $(window).on('scroll', function () { var e = $("#c_static_001-1646277942665").height(), t = $("#c_static_001-1646277942665").offset().top + e, i = $(window).scrollTop() + $(window).height(), n = Math.max(0, t - i), o = n < e ? n / e : 1; $("#c_static_001-1646277942665 .e_image-110").css("top", -19 * (1 - o) + "%"); }); });*/