//产品中心-01 var mySwiper01 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro01", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro01 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro01 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro01 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 20 } }, }) //产品中心-02 var mySwiper02 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro02", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro02 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro02 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro02 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-03 var mySwiper03 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro03", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro03 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro03 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro03 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-04 var mySwiper04 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro04", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro04 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro04 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro04 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-05 var mySwiper05 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro05", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro05 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro05 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro05 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-06 var mySwiper06 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro06", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro06 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro06 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro06 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-07 var mySwiper07 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro07", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro07 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro07 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro07 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //产品中心-08 var mySwiper08 = new Swiper("#c_introl_detail_004_P_045-1682048108615 .swiper-pro08", { autoplay:true, speed:800, pagination: { el: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro08 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro08 .swiper-button-next", prevEl: "#c_introl_detail_004_P_045-1682048108615 .swiper-pro08 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //证书展示 var mySwiper2 = new Swiper("#c_static_001-16905328637500 .e_loop-5 .swiper", { autoplay:true, speed:800, pagination: { el: "#c_static_001-16905328637500 .e_loop-5 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16905328637500 .e_loop-5 .swiper-button-next", prevEl: "#c_static_001-16905328637500 .e_loop-5 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 20 } }, }) //厂房实拍 var mySwiper2 = new Swiper("#c_static_001-16905313920970 .e_loop-10 .swiper", { autoplay:true, speed:800, pagination: { el: "#c_static_001-16905313920970 .e_loop-10 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16905313920970 .e_loop-10 .swiper-button-next", prevEl: "#c_static_001-16905313920970 .e_loop-10 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 3, spaceBetween: 20 } }, }) //设备展示 var mySwiper2 = new Swiper("#c_static_001-16822191690170 .e_loop-5 .swiper", { autoplay:true, speed:800, pagination: { el: "#c_static_001-16822191690170 .e_loop-5 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16822191690170 .e_loop-5 .swiper-button-next", prevEl: "#c_static_001-16822191690170 .e_loop-5 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 20 } }, }) //技术团队 var mySwiper2 = new Swiper("#c_static_001-16822210168800 .e_loop-5 .swiper", { autoplay:true, speed:800, pagination: { el: "#c_static_001-16822210168800 .e_loop-5 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16822210168800 .e_loop-5 .swiper-button-next", prevEl: "#c_static_001-16822210168800 .e_loop-5 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 20 } }, }) //新闻资讯 var newsSwiper1 = new Swiper("#c_static_001-16789369190230 .e_loop-10 .swiper", { observer: true, observeParents: true, autoplay:true, speed:800, pagination: { el: "#c_static_001-16789369190230 .e_loop-10 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16789369190230 .e_loop-10 .swiper-button-next", prevEl: "#c_static_001-16789369190230 .e_loop-10 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 2, spaceBetween: 20 } }, }) var newsSwiper2 = new Swiper("#c_static_001-16822413762580 .e_loop-10 .swiper", { observer: true, observeParents: true, autoplay:true, speed:800, pagination: { el: "#c_static_001-16822413762580 .e_loop-10 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16822413762580 .e_loop-10 .swiper-button-next", prevEl: "#c_static_001-16822413762580 .e_loop-10 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 2, spaceBetween: 20 } }, }) //内页荣誉资质 var mySwiper2 = new Swiper("#c_static_001-16822580583290 .e_loop-5 .swiper", { autoplay:true, speed:800, pagination: { el: "#c_static_001-16822580583290 .e_loop-5 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001-16822580583290 .e_loop-5 .swiper-button-next", prevEl: "#c_static_001-16822580583290 .e_loop-5 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 4, spaceBetween: 20 } }, }) //内页发展历程 var swiper = new Swiper("#c_introl_detail_004-1642055200562 .e_loop-102 .mySwiper", { spaceBetween: 10, slidesPerView: 6, freeMode: true, watchSlidesProgress: true, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 2, autoplay:true, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 2, autoplay:true, spaceBetween: 20 }, 1024: { //当屏幕宽度大于等于768 slidesPerView: 3, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 6, autoplay:true, spaceBetween: 20 } }, }); var swiper2 = new Swiper(".mySwiper2", { slidesPerView: 1, autoplay:true, spaceBetween: 10, navigation: { nextEl: "#c_introl_detail_004-1642055200562 .e_loop-102 .swiper-button-next", prevEl: "#c_introl_detail_004-1642055200562 .e_loop-102 .swiper-button-prev", }, breakpoints: { 320: { //当屏幕宽度大于等于320 slidesPerView: 1, autoplay:true, spaceBetween: 20 }, 768: { //当屏幕宽度大于等于768 slidesPerView: 1, autoplay:true, spaceBetween: 20 }, 1280: { //当屏幕宽度大于等于1280 slidesPerView: 1, autoplay:true, spaceBetween: 20 } }, thumbs: { swiper: swiper, }, }); //内页二级Swiper var swiper = new Swiper(".swiper.kovant", { slidesPerView:"auto", navigation: { nextEl: ".kovant .btn-next", prevEl: ".kovant .btn-pre", }, observer:true, observeParents:true, pagination: { el: ".kovant .swiper-pagination", clickable: true, }, breakpoints: { 320: { //当屏幕宽度大于等于320 spaceBetween: 10 }, 768: { //当屏幕宽度大于等于768 spaceBetween: 10 }, 1280: { //当屏幕宽度大于等于1280 spaceBetween: 20 } }, }) //内页二级当前高亮 $(function() { var d = setInterval(function() { var title = $.trim($("div[class*='e_breadcrumb'] .p_breadcrumbItem:eq(2)").text()); if(title != "") { $("div[class*='e_loop'] .menuBox .p_list .p_loopitem a:contains("+title+")").parents(".p_loopitem").addClass("active"); } },500); }); //Wow.js if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ new WOW().init(); }; //滑动向上 function topMove(el, topTarget) { topTarget = topTarget || 10; $(el).css("position", "relative").hover(function() { $(this).stop().animate({top: -topTarget}, 300); }, function() { $(this).stop().animate({top: 0}, 300); }); }; $(function() { topMove("#c_static_001-16611497276740 .swiper-slide"); }); //澳门新葡萄新京5303TAB切换 $(function(){ $("#c_introl_detail_004_P_045-1682048108615 .e_html-118 .nav-wrap ul li:eq(0)").addClass("oncurrent"); let right = $("#c_introl_detail_004_P_045-1682048108615 .e_container-33 .cbox-33-1").children().hide().first().show().end(); $("#c_introl_detail_004_P_045-1682048108615 .e_html-118 .nav-wrap ul li").click(function(){ $(this).addClass("oncurrent").siblings().removeClass("oncurrent"); var index = $(this).index(); right.hide().filter(":eq("+index+")").fadeIn(100); }); }); $(function(){ $("#c_static_001-1677477927424 .e_html-19 .nav-wrap ul li:eq(0)").addClass("oncurrent"); $("#c_static_001-1677477927424 .e_html-19 .nav-wrap ul li").click(function(){ $(this).addClass("oncurrent").siblings().removeClass("oncurrent"); var index = $(this).index(); var $parent = $(this).parents("#c_static_001-1677477927424"); $parent.nextAll("div:lt(3)").hide().filter(":eq("+index+")").fadeIn(100); }); }); $(function(){ $("#c_static_001-16822352559800 .e_html-19 .nav-wrap ul li:eq(0)").addClass("oncurrent"); $("#c_static_001-16822352559800 .e_html-19 .nav-wrap ul li").click(function(){ $(this).addClass("oncurrent").siblings().removeClass("oncurrent"); var index = $(this).index(); var $parent = $(this).parents("#c_static_001-16822352559800"); $parent.nextAll("div:lt(2)").hide().filter(":eq("+index+")").fadeIn(100); }); }); //底部导航JS $(function(){ var _li =$('.top-nav-wrap').children('.top-nav'); _li.each(function(i, e) { $(this).addClass('btlink'+(i+1)); }); var _width = $(window).width(); if(_width < 768) { $('.top-nav-wrap .top-nav').each(function(){ var _this = $(this); _this.click(function(){ if(_this.hasClass('cur')) { _this.removeClass('cur'); _this.find('.footer-sub-hides').stop().slideUp(); }else { _this.addClass('cur').siblings().removeClass('cur'); _this.find('.footer-sub-hides').stop().slideDown().siblings().find('.footer-sub-hides').stop().slideUp(); _this.find('.footer-sub-hides').addClass('cur'); } }) }); } }) // 内页业务概况 var domWith = $(document).width(); console.log(domWith); // 点击一级下的图标 $('.iconfont1').on('click', function () { // 自身的 图标旋转180度 , // 同级的 图标恢复原样 , 二级 收起; // 自身的 二级展开 $(this).toggleClass('rotate') .parents('li').siblings('li').find('.ejBox').slideUp().end().find('.iconfont1').removeClass( 'rotate').end() .end().find('.ejBox').stop().slideToggle(); }) if (domWith > 768) { // 三级显示 $('.ejLi').hover(function () { // 图标 转向 $(this).find('.iconfont2').addClass('icf').end() .find('.sjBox').show(); }, function () { // 图标复原 $(this).find('.iconfont2').removeClass('icf').end() .find('.sjBox').hide(); }) } else { // 移动端 点击出现 $('.moveBtn').on('click', function () { // 按钮隐藏 $(this).css({ 'opacity': 0 }, 500) // 内容滑出 $('.contentBox').animate({ "left": 0 }, 500) }) // 移动端 点击收回 $('.backBtn').on('click', function () { // 按钮显示 $('.moveBtn').css({ 'opacity': 1 }, 500) // 内容收回 $('.contentBox').animate({ "left": "100%" }, 500) }) // 移动端二级 点击事件 $('.iconfont2').on('click', function () { // 蓝线的显示与隐藏 $(this).siblings('.line_right').toggleClass('line_show'); // 自身 三级下拉 ,其它的隐藏 $(this).toggleClass('jsDeg') .parents('.ejLi').find('.sjBox').slideToggle().end() .siblings('.ejLi').find('.sjBox').slideUp() .end().find('.iconfont2').removeClass('jsDeg'); }) } //招聘列表 $(function () { $('.joblist .job_item').on('click', function () { $(this).parent().siblings('.job_neirong').slideToggle() .parent().siblings('.joblist').children('.job_neirong').slideUp(); $(this).parent().parent().toggleClass("j_cur"); $(this).parent().parent().siblings('.j_cur').removeClass("j_cur"); }); // 默认第一条展开,不需要可以直接注释 // $('.position_list > .p_list > .joblist:nth-child(1) .job_item').trigger('click'); }); //产品分类 $(function() { let windName = window.location.pathname; let time = setInterval(function() { let m = $(".p_loopitem a").attr("href"); if (m) { console.log(m); $(".p_loopitem a").each(function() { let l_m = $(this).attr("href") if (l_m == windName) { $(this).parents('.p_loopitem').addClass("active") } }); clearInterval(time); } }, 100); $('.cateGoryArr').click(function() { $(this).parent().next().next('.openthisMenu').animate({ height: 'toggle' }); }); }); //底部新闻 var mySwiper = new Swiper('#c_static_001_P_7180-1692341395068 .e_loop-88', { autoplay: true, slidesPerView: 1, slidesPerColumn:1, spaceBetween: 10, pagination: { el: "#c_static_001_P_7180-1692341395068 .e_loop-88 .swiper-pagination", clickable: true, }, navigation: { nextEl: "#c_static_001_P_7180-1692341395068 .swiper-button-next", prevEl: "#c_static_001_P_7180-1692341395068 .swiper-button-prev", }, observer:true, observeParents:true, breakpoints: { //当宽度小于等于480 480 : { slidesPerView: 1, spaceBetween: 10 }, //当宽度小于等于768 768 : { slidesPerView: 1, spaceBetween: 10 }, //当宽度小于等于980 980 : { slidesPerView: 2, spaceBetween: 10 }, //当宽度小于等于980 1366 : { slidesPerView: 3, spaceBetween: 10 } }, })