/*****************/ var globalJs = globalJs || {}; (function($) { function stopBubble(e) { // 如果传入了事件对象,那么就是非ie浏览器 if (e && e.stopPropagation) { //因此它支持W3C的stopPropagation()方法 e.stopPropagation(); } else { //否则我们使用ie的方法来取消事件冒泡 window.event.cancelBubble = true; } } var tap = "ontouchstart" in document ? "touchend" : "click"; var winWt = parseInt($(window).width()), winHt = parseInt($(window).height()); //实现滚动条无法滚动 var winHadntScroll = function(e) { e.preventDefault(); }; /***禁止滑动***/ function scrollStop() { var h = $(window).height(); document.body.style.overflow = "hidden"; document.addEventListener("touchmove", winHadntScroll, { passive: false }); //禁止页面滑动 } /***取消滑动限制***/ function scrollMove() { document.body.style.overflow = ""; //出现滚动条 document.removeEventListener("touchmove", winHadntScroll, { passive: false }); } /// 锚点跳转 globalJs.anchorMove = function(id, fn) { // function anchorMove(id, fn) { var $obj = $(id), moveFun = fn; var oh = $obj.offset().top - parseInt($(".header").outerHeight()); $("html,body").animate({ scrollTop: oh, }, 300, function() { if (moveFun) moveFun(); } ); // } } /// 竖向滚动条 if ($(".scrollbox").length > 0) { $(".scrollbox").mCustomScrollbar({ scrollInertia: 1000, advanced: { updateOnContentResize: true, }, }); } /// 横向滚动条 if ($(".scrollbox2").length > 0) { $(".scrollbox2").mCustomScrollbar({ axis: "x", mouseWheel: true, advanced: { updateOnContentResize: true, }, }); } // 页面滚动wow.js再ie9以上引用 globalJs.wow = new WOW({ boxClass: "wow", animateClass: "animated", offset: 100, mobile: true, live: true, }); // if (!/msie [6|7|8|9]/i.test(navigator.userAgent)) { // wow.init(); // } // 模态框 $(".modal").on("shown.bs.modal", function() { $("body").addClass("modal-open"); }); $(".modal").on("hidden.bs.modal", function() { if ($(this).find("video").length) { var videoId = $(this).find(".video-js").attr("id"); var myplayer = videojs(videoId); myplayer.pause(); myplayer.currentTime(0); } }); $(".modal-close") .off(tap) .on(tap, function() { var $modal = $(this).parents(".modal"); $modal.modal("hide"); }); // 判断设备 var os = (function() { var ua = navigator.userAgent, isWindowsPhone = /(?:Windows Phone)/.test(ua), isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone, isAndroid = /(?:Android)/.test(ua), isIOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), isFireFox = /(?:Firefox)/.test(ua), isChrome = /(?:Chrome|CriOS)/.test(ua), isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)), isPhone = /(?:iPhone)/.test(ua) && !isTablet, isPc = !isPhone && !isAndroid && !isSymbian; return { isTablet: isTablet, isPhone: isPhone, isAndroid: isAndroid, isIOS: isIOS, isPc: isPc, }; })(); // 判断是否微信 function is_weixin() { var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { return true; } else { return false; } } if (!os.isPc) { $("body").addClass("is-iphone"); } else { $("body").addClass("is-pc"); } if (os.isAndroid) { $("body").addClass("is-android"); } if (os.isIOS) { $("body").addClass("is-ios"); } if (is_weixin()) { $("body").addClass("is-wx"); } else { $("body").addClass("not-wx"); } // 单选框 $(".check-list label").on(tap, function() { $(this) .parent("li") .addClass("is-checked") .siblings() .removeClass("is-checked"); }); // 视频 $(".btn-open_video").on(tap, function() { $(".modal-video").modal("show"); }); $('[data-toggle="tab"]').on(tap, function() { var id = $(this).attr("href"), $lis = $(this).parent("li"); $(this).tab("show"); $lis.addClass("active").siblings().removeClass("active"); }); $(window).on('scroll', function() { var winWt = parseInt($(window).width()), winHt = parseInt($(window).height()); var wintop = $(window).scrollTop(); if (wintop > winHt / 2) { $('.fixed-nav').css('display', 'block'); } else { $('.fixed-nav').hide(); } }); /******************************/ // PC端导航 // $(".head-navlist > li").on("mouseenter", function() { // $(this) // .addClass("active") // .find(".subnav-box") // .stop(true, true) // .slideDown(0) // .end() // .siblings("li") // .removeClass("active") // .find(".subnav-box") // .hide(); // // $('.header .had-subnav.activeD::after').hide() // $('.header').addClass('xial') // if ($(this).hasClass("had-subnav")) $(".header").addClass("open-subnav1"); // }) // .on("mouseleave", function() { // $(this).removeClass("active").find(".subnav-box").hide(); // $(".header").removeClass("open-subnav"); // $(".head-navlist > li.current").addClass("active"); // $(".head-navlist .activeW").addClass("activeX"); // // $(this).find(".activeW").addClass("activeX"); // $('.header').removeClass('xial') // }); // 鼠标经过页头事件 // PC端导航 $(".head-navlist").on("mouseenter", function() { $('header .subnav-box').fadeIn(50, function() { }) $('.header').addClass('xial') }) .on("mouseleave", function() { $('header .subnav-box').fadeOut(50, function() { }) $('.header').removeClass('xial') }); // $(".home-search .box").on(tap, function(e) { // e.stopPropagation(); // $(this).parent().find(".pop").fadeIn(50, function() { // $("body").toggleClass("xial") // }) // }) // 回到顶部 $('.backtop').hide(); $(window).scroll(function() { if ($(this).scrollTop() > 100) { $('.backtop').fadeIn(); } else { $('.backtop').fadeOut(); } }); $('.back-top').on('click', function() { $('html,body').animate({ 'scrollTop': '0' }) }) // 底部技术支持 if ($('.foot-jszc_swip').length) { var footJsSwip = new Swiper('.foot-jszc_swip', { direction: 'vertical', autoplay: { delay: 1000, disableOnInteraction: false, }, loop: true, observer: true, observeParents: true, }); } // 导航 $(window).scroll(function() { if ($(window).scrollTop() > 0) { $('body').addClass('head-white'); $(".header").on("mouseleave", function() { $('body').addClass('head-white') }) } else if ($(window).scrollTop() < 2) { $('body').removeClass('head-white'); $(".header").on("mouseleave", function() { $('body').removeClass('head-white') }) } }); var windowWidth = $(window).width() // 搜索栏 $('.gg-search').on('click', function(e) { $('.search-box').slideToggle(300, 'linear'); stopBubble(e) $('body').toggleClass("head-white1") $('.ph-nav-box').removeClass('on') $('.ph-nav-box').removeClass('open') $('.head-menu_open').removeClass('on') $('.head-menu_open').removeClass('open') $('body').toggleClass("head-white-s") $('body').removeClass("head-white-c") $('body').removeClass("open") }) // 搜索框冒泡 $(document).on('click', function(e) { $('.search-box').slideUp(300, 'linear'); $('body').removeClass("head-white1") $('body').removeClass("head-white-s") }) $('.search-box .global-inner').on('click', function(e) { e.stopPropagation(); e.preventDefault(); }) // 移动端导航 $(".head-menu_open").on('click', function() { // $('body').toggleClass("head-white1") $('body').toggleClass("open") $(this).toggleClass("open") $(".ph-nav-box").toggleClass("on"); // if ($(this).hasClass("open")) { // scrollStop(); // } else { // scrollMove(); // } if ($('body').hasClass('head-white1')) { $('body').addClass('head-white1') } else { $('body').removeClass('head-white1') } // $('body').toggleClass("head-white1") $('body').toggleClass('head-white-c') $('body').removeClass('head-white-s') }); $('.headItem').click(function() { $(this).find('.headB').stop(true).slideToggle(200) }) $(".ph-nav-box .lvbox").each(function() { $(this).siblings(".lv").find("em").show(); }); $(".lv1 em").on('click', function() { $(this).parents(".lv1").toggleClass("on").end() .parents(".lv1").siblings(".lv2box").stop(true, true).slideToggle(300).end() .parent("li").siblings().find(".lvbox").slideUp(300).siblings(".lv").removeClass("on"); }); $(".lv2 em").on('click', function() { $(this).parents(".lv2").toggleClass("on").end() .parents(".lv2").siblings(".lv3box").stop(true, true).slideToggle(300).end() .parents(".item").siblings().find(".lvbox").removeClass("on").slideUp(300).siblings(".lv").removeClass("on"); }); $(".lv3 em").on('click', function() { $(this).parents(".lv3").toggleClass("on").end() .parents(".lv3").siblings(".lv4box").stop(true, true).slideToggle(300).end() .parents(".item").siblings().find(".lvbox").slideUp(300).siblings(".lv").removeClass("on"); }); /*** 公共 ****/ // 公共样式 // 添加wow // PC端频道页banner轮播 if ($('.public-banner').length > 0) { var publicBanner = new Swiper(".public-banner", { speed: 500, watchOverflow: true, slidesPerView: 1, disableOnInteraction: false, autoplay: { delay: 5000, stopOnLastSlide: false, disableOnInteraction: true, }, observeParents: true, observer: true, navigation: { nextEl: ".public-banner-btn-next", prevEl: ".public-banner-btn-prev", }, pagination: { el: ".public-banner-btn", clickable: true, }, }); if (publicBanner.slides.length <= 1) { $(".public-banner-btn").hide(); $(".public-banner-btn-next").hide(); $(".public-banner-btn-prev").hide(); $(".public-banner").addClass("swiper-no-swiping"); } } // globalJs.stopBubble = function(e) { // 如果传入了事件对象,那么就是非ie浏览器 if (e && e.stopPropagation) { //因此它支持W3C的stopPropagation()方法 e.stopPropagation(); } else { //否则我们使用ie的方法来取消事件冒泡 window.event.cancelBubble = true; } } // 筛选下拉框 globalJs.bytedSelectEvent = function() { // 下拉框展开 $('.byted-select').off(tap).on(tap, function(e) { var $selectWap = $(this).parents('.byted-select-wrapper'), $popover = $selectWap.find('.byted-popover-wrapper'), $boxitem = $selectWap.parent(); globalJs.stopBubble(e); if ($selectWap.hasClass('is-open')) { $selectWap.removeClass('is-open'); $popover.hide(); } else { $selectWap.addClass('is-open'); $popover.stop(true, true).slideDown(100); } $boxitem .siblings() .find('.byted-select-wrapper').removeClass('is-open') .find('.byted-popover-wrapper').hide(); }); $('.byted-popover-wrapper').on(tap, function(e) { globalJs.stopBubble(e); }); $(document).on(tap, function(e) { $('.byted-popover-wrapper').hide(); $('.byted-select-wrapper').removeClass('is-open'); }); // 普通下拉选中 $('.byted-option-list li').on(tap, function() { var val = $(this).attr('data-title'); var $selectWap = $(this).parents('.byted-select-wrapper'), $selectInput = $selectWap.find('.byted-select-input'); setTimeout(function() { $selectInput.html(val); $(this).addClass('current').siblings().removeClass('current'); $('.byted-popover-wrapper').hide(); $('.byted-select-wrapper').removeClass('is-open'); }, 100) }); } globalJs.bytedSelectResult = function(obj) { var result = []; result[0] = $(obj).parents('.byted-option-list').attr('id') ? $(obj).parents('.byted-option-list').attr('id') : null; result[1] = $(obj).attr('data-val'); return result; } // 二阶栏目 if ($('.secon-column-swiper').length > 0) { var publicBanner = new Swiper(".secon-column-swiper", { speed: 500, spaceBetween: 58, watchOverflow: true, slidesPerView: 'auto', disableOnInteraction: false, // autoplay: { // delay: 5000, // stopOnLastSlide: false, // disableOnInteraction: true, // }, observeParents: true, observer: true, navigation: { nextEl: ".secon-column-next", prevEl: ".secon-column-prev", }, }); if (publicBanner.slides.length <= 6) { $(".secon-column-next").hide(); $(".secon-column-prev").hide(); $(".secon-column-swiper").addClass("swiper-no-swiping"); } } // 分享页面 $(".icon-list-box .item:last-child").on(tap, function() { $(this).find(".pop").show() $(".share-pop").show() }) $(".icon-list-box .item .pop .close1").on(tap, function(e) { // scrollStop() e.stopPropagation(); $(".icon-list-box .item .pop").hide() }) $(".share-pop .know").on(tap, function(e) { e.stopPropagation(); $(".share-pop").hide() // scrollMove() }) // 产品选择栏目 if ($('.product-choose-swiper').length > 0) { var productChooseSwiper = new Swiper(".product-choose-swiper", { observeParents: true, observer: true, slidesPerView: 'auto', }); if (winWt > 992) { if (productChooseSwiper.slides.length <= 3) { $('.product-choose-swiper .swiper-slide').css('width', '33.33%') } else { $('.product-choose-swiper .swiper-slide').css('width', '25%') } if (productChooseSwiper.slides.length <= 2) { $('.product-choose-swiper .swiper-slide').css('width', '50%') } if (productChooseSwiper.slides.length <= 1) { $('.product-choose-swiper .swiper-slide').css('width', '100%') } $('.product-choose-swiper .swiper-slide').on(tap, function() { // $(this).addClass('active').siblings().removeClass('active'); var index1 = $(this).index() productChooseSwiper.slideTo(index1, 1000, false); }); } else { $('.product-choose-swiper .swiper-slide').on(tap, function() { $(this).addClass('active').siblings().removeClass('active'); var index2 = $(this).index() productChooseSwiper.slideTo(index2, 1000, false); }); } if ($('.product-choose-swiper .swiper-slide').length > 0) { $('.product-choose-swiper').show() } else { $('.product-choose-swiper').hide() $('.product-brief').css('margin-top', '4em') } } $('.form1 input').focus(function() { $(this).css("background-color", "#f5f5f5"); }); $('.form1 textarea').focus(function() { $(this).css("background-color", "#f5f5f5"); }); $('.product-brief .desc .del').on(tap, function() { $('.pop-market').show() }); $('.pop-market .close1').on(tap, function() { $('.pop-market').hide() }); var productBriefSwiper = new Swiper(".product-brief-swiper", { breakpoints: { 0: { slidesPerView: 1, }, 992: { slidesPerView: 'auto', }, }, navigation: { nextEl: ".product-brief-next", prevEl: ".product-brief-prev", }, }); if (productBriefSwiper.slides.length <= 1) { $(".product-brief-next").hide(); $(".product-brief-prev").hide(); $(".product-brief-swiper").addClass("swiper-no-swiping"); } $(document).ready(function() { globalJs.bytedSelectEvent(); }); var systemSwiper = new Swiper(".system-swiper", { breakpoints: { 0: { }, 992: { slidesPerView: 2, }, }, navigation: { nextEl: ".system-swiper-next", prevEl: ".system-swiper-prev", }, }); // console.log(systemSwiper.slides.length); if (systemSwiper.slides.length <= 2) { $('.system-swiper-next').hide() $('.system-swiper-prev').hide() $('.system-swiper').addClass("swiper-no-swiping"); } // 联系我们 var interleaveOffset = 0.5; //视差比值 var swiperOptions = { // loop: true, speed: 1000, // slidesPerView: 1, grabCursor: true, watchSlidesProgress: true, mousewheelControl: true, keyboardControl: true, navigation: { nextEl: ".relation-button-next", prevEl: ".relation-button-prev" }, pagination: { el: ".relation-pagination", clickable: true, }, on: { init: function() { $('.relation-swiper .order-list .item').removeClass('active').eq(0).addClass('active') $('.relation-swiper .swiper-slide').eq(0).find('.desc').addClass('scaleUpDown') }, progress: function(swiper) { for (var i = 0; i < swiper.slides.length; i++) { var slideProgress = swiper.slides[i].progress; var innerOffset = swiper.width * interleaveOffset; var innerTranslate = slideProgress * innerOffset; swiper.slides[i].querySelector(".slide-inner").style.transform = "translate3d(" + innerTranslate + "px, 0, 0)"; } }, touchStart: function(swiper) { for (var i = 0; i < swiper.slides.length; i++) { swiper.slides[i].style.transition = ""; } }, setTransition: function(swiper, speed) { for (var i = 0; i < swiper.slides.length; i++) { swiper.slides[i].style.transition = speed + "ms"; swiper.slides[i].querySelector(".slide-inner").style.transition = speed + "ms"; } }, slideChangeTransitionStart: function() { // console.log(111); var $slide = $(this.slides[this.activeIndex]); $slide.find('.desc').addClass('scaleUpDown') .end() .siblings().find('.desc').removeClass('scaleUpDown'); $('.relation-swiper .order-list .item').removeClass('active').eq(this.activeIndex).addClass('active') }, // slideChangeTransitionEnd: function() { // var $slide = $(this.slides[this.activeIndex]); // // console.log(this.activeIndex); // $slide.find('.desc').addClass('scaleUpDown') // .end() // .siblings().find('.desc').removeClass('scaleUpDown'); // $('.relation-swiper .order-list .item').removeClass('active').eq(this.activeIndex).addClass('active') // }, } }; $('.relation-swiper .order-list .item').on(tap, function() { // var $active1 = $(this.activeIndex) // console.log($active1); // var index3 = active1 + 1 // $(this).addClass('active').siblings().removeClass('active') var index3 = $(this).index() relationSwiper.slideTo(index3, 1000, false); // console.log($slide); $('.relation-swiper .swiper-slide-active').find('.desc').addClass('scaleUpDown') .end() .siblings().find('.desc').removeClass('scaleUpDown'); }) var relationSwiper = new Swiper(".relation-swiper", swiperOptions); // swiper $('.relation-swiper .swiper-button-prev').mouseover(function() { $(this).addClass('on'); $('.relation-swiper .swiper-button-next').removeClass('on') }) $('.relation-swiper .swiper-button-prev').mouseleave(function() { $(this).removeClass('on'); $('.relation-swiper .swiper-button-next').addClass('on') }) // 加入我们 var occupationSwiper = new Swiper(".occupation-swiper", { observeParents: true, observer: true, effect: "fade", parallax: true, speed: 1000, pagination: { el: ".occupation-pagination", clickable: true, }, on: { init: function() { $('.occupation-swiper .list .item').on(tap, function() { $(this).addClass('active').siblings().removeClass('active') var index4 = $(this).index() occupationSwiper.slideTo(index4, 1000, false); }) $('.occupation .occupation-swiper .swiper-slide').eq(0).find('.box').addClass('scaleUpDown') }, slideChangeTransitionEnd: function() { $('.occupation-swiper .list .item').removeClass('active').eq(this.activeIndex).addClass('active') // var $slide = $(this.slides[this.activeIndex]); }, slideChangeTransitionStart: function() { // console.log(111); var $slide = $(this.slides[this.activeIndex]); $slide.find('.box').addClass('scaleUpDown') .end() .siblings().find('.box').removeClass('scaleUpDown'); // $('.relation-swiper .order-list .item').removeClass('active').eq(this.activeIndex).addClass('active') }, } }); $('.occupation-swiper .list .item').on(tap, function() { $(this).addClass('active').siblings().removeClass('active') var index4 = $(this).index() occupationSwiper.slideTo(index4, 1000, false); $('.occupation .occupation-swiper .swiper-slide').find('.box').removeClass('scaleUpDown'); $('.occupation .occupation-swiper .swiper-slide-active').find('.box').addClass('scaleUpDown') .end() .siblings().find('.box').removeClass('scaleUpDown'); }) // 获得荣誉 var obtainHonorSwiper = new Swiper(".obtain-honor-swiper", { // slidesPerView: 3, // spaceBetween: 35, autoplay: true, loop: true, breakpoints: { 0: { slidesPerView: 1, spaceBetween: 20, slidesPerGroup: 1, }, 992: { slidesPerView: 3, spaceBetween: 35, slidesPerGroup: 3, }, }, pagination: { el: ".obtain-honor-pagination", clickable: true, }, }); if (winWt > 992) { if (obtainHonorSwiper.slides.length <= 3) { $(".obtain-honor-pagination").hide(); $(".obtain-honor-swiper").addClass("swiper-no-swiping"); } } var dutySwiper = new Swiper(".duty-swiper", { slidesPerView: 1, spaceBetween: 30, autoplay: true, // effect: "fade", speed: 800, pagination: { el: ".duty-pagination", clickable: true, }, on: { init: function() { $('.duty-swiper .swiper-slide').eq(0).find('.desc').addClass('scaleUpDown') }, slideChangeTransitionEnd: function() { var $slide = $(this.slides[this.activeIndex]); $slide.find('.desc').addClass('scaleUpDown') .end() .siblings().find('.desc').removeClass('scaleUpDown'); }, } }); // 五星行为 var starsSwiper = new Swiper(".stars-swiper", { slidesPerView: 2.767, spaceBetween: 200, speed: 1200, loop: true, centeredSlides: true, breakpoints: { 0: { slidesPerView: 1, spaceBetween: 20, }, 992: { slidesPerView: 2.767, spaceBetween: 200, }, }, pagination: { el: ".stars-pagination", clickable: true, }, navigation: { nextEl: ".stars-button-next", prevEl: ".stars-button-prev", }, on: { transitionStart: function(swiper) { var activeIndex = swiper.activeIndex; // alert(this.activeIndex); // var indexItem = this.realIndex // console.log(indexItem); setTimeout(() => { $(swiper.slides[activeIndex]).addClass('is-active_after'); $(swiper.slides[activeIndex]).siblings().removeClass('is-active_after'); }, 100); }, }, }); var adminSwiper = new Swiper(".admin-swiper", { slidesPerView: 4, spaceBetween: 33.33, speed: 1000, breakpoints: { 0: { slidesPerView: 1, spaceBetween: 20, }, 992: { slidesPerView: 4, spaceBetween: 33.33, }, }, pagination: { el: ".admin-pagination", clickable: true, }, }); $('.party-system .culture-list .doc-editor p').addClass('wow fadeInUp2') $('.reinforce .spirit-list .doc-editor p').addClass('wow fadeInUp2') // 判断 if (winWt > 992) { if ($('.product-brief .desc .list .item').length <= 2) { $('.product-brief .desc .list').css('flex-wrap', 'nowrap') } } if ($('.prodel-del1-item1 .public-tit').length > 0) { $('.prodel-del1-item1').show() } else { $('.prodel-del1-item1').hide() } if ($('.prodel-del1-item2 .public-tit').length > 0) { $('.prodel-del1-item2').show() } else { $('.prodel-del1-item2').hide() } // 关于我们加载动效 ---首页 $('.general .general-box .image').addClass('wow fadeInUp2') $('.general .general-box .desc .bd').addClass('wow fadeInUp2') $('.general .general-box .desc .list').addClass('wow fadeInUp2') $('.general .general-box .desc .list').attr('data-wow-delay', '.2s') $('.general .general-box2').addClass('wow fadeInUp2') $('.about-video').addClass('wow fadeInUp2') // 关于我们党建 ---坚持党的领导 $('.keep .boxes').addClass('wow fadeInUp2') $('.reinforce .reinforce-five .tit').addClass('wow fadeInUp2') $('.reinforce .spirit-list .tit').addClass('wow fadeInUp2') $('.reinforce .reinforce-five .image').addClass('wow fadeInUp2') $('.reinforce .spirit-list .item').addClass('wow fadeInUp2') $('.culture-list').addClass('wow fadeInUp2') // 关于我们--荣誉 $('.honor-box .title-box').addClass('wow fadeInUp2') $('.obtain-honor-swiper-box').addClass('wow fadeInUp2') $('.obtain-honor-swiper-box').attr('data-wow-delay', '.2s') $('.honor-list-desc .list .item').addClass('wow fadeInUp2') $('.honor-list-desc .list .item').attr('data-wow-delay', '.2s') // 关于我们--合作共赢 $('.public-tit-special').addClass('wow fadeInUp2') $('.navigator .list .item').addClass('wow fadeInUp2') $('.navigator .list .item').eq(2).attr('data-wow-delay', '.4s') $('.navigator .list .item').eq(3).attr('data-wow-delay', '.6s') $('.idea .image-box').addClass('wow fadeInUp2') $('.daka .image-box').addClass('wow fadeInUp2') $('.stars-swiper-box').addClass('wow fadeInUp2') $('.stars-swiper-box').attr('data-wow-delay', '.2s') $('.idea .image-box').attr('data-wow-delay', '.2s') $('.daka .image-box').attr('data-wow-delay', '.2s') $('.admin-swiper .swiper-slide').addClass('wow fadeInUp2') $('.admin-swiper .swiper-slide').eq(1).attr('data-wow-delay', '.2s') $('.admin-swiper .swiper-slide').eq(2).attr('data-wow-delay', '.4s') $('.admin-swiper .swiper-slide').eq(3).attr('data-wow-delay', '.6s') $('.admin-swiper .swiper-slide').eq(4).attr('data-wow-delay', '.8s') // 关于我们--联系我们 $('.relation-box').addClass('wow fadeInUp2') $('.relation-box').attr('data-wow-delay', '.2s') $('.form').addClass('wow fadeInUp2').attr('data-wow-delay', '.2s') // 产品中心 --首页 $('.product-core-list').addClass('wow fadeInUp2') $('.product-core-list').attr('data-wow-delay', '.2s') $('.product-approve .bgk').addClass('wow fadeInUp2') $('.product-approve .product-approve-box').attr('data-wow-delay', '.2s') $('.product-center .product-center-list .item').addClass('wow fadeInUp2') // 产品详情 $('.product-brief').addClass('wow fadeInUp2') $('.prodel-del-public .desc-del .item').addClass('wow fadeInUp2') $('.prodel-del-public .desc-del .item').attr('data-wow-delay', '.2s') // 合作共赢 $('.win .list .item').addClass('wow fadeInUp2') $('.win .list .item').eq(1).attr('data-wow-delay', '.2s') $('.win .list .item').eq(2).attr('data-wow-delay', '.4s') $('.win .list .item').eq(3).attr('data-wow-delay', '.6s') $('.public-tit').addClass('wow fadeInUp2') $('.system-swiper-box').addClass('wow fadeInUp2') $('.p-news-list .news-list .item').addClass('wow fadeInUp2') $('.global-paging').addClass('wow fadeInUp2') $('.del-tip').addClass('wow fadeInUp2') // 新闻 $('.newsdel-editor').addClass('wow fadeInUp2') $('.del-tip').addClass('wow fadeInUp2').attr('data-wow-delay', '.2s') $('.newsdel-editor').addClass('wow fadeInUp2').attr('data-wow-delay', '.4s') $('.recommend .news-list .item').addClass('wow fadeInUp2') $('.recommend .news-list .item').eq(0).attr('data-wow-delay', '.2s') $('.recommend .news-list .item').eq(1).attr('data-wow-delay', '.4s') $('.recommend .news-list .item').eq(2).attr('data-wow-delay', '.6s') $('.recommend .more-more').addClass('wow fadeInUp2') $('.certification-list .item').addClass('wow fadeInUp2') $('.notice-list').addClass('wow fadeInUp2') $('.news-list').addClass('wow fadeInUp2') // 社会责任 $('.mission-box').addClass('wow fadeInUp2') $('.duty').addClass('wow fadeInUp2') $('.fund .image').addClass('wow fadeInUp2') $('.fund .fund-box').addClass('wow fadeInUp2') // 加入我们 $('.occupation-swiper-box').addClass('wow fadeInUp2') $('.care .care-box img').addClass('wow fadeInUp2') $('.guard .list .item').addClass('wow fadeInUp2') $('.guard .list .item').eq(0).attr('data-wow-delay', '.2s') $('.guard .list .item').eq(1).attr('data-wow-delay', '.4s') $('.guard .list .item').eq(2).attr('data-wow-delay', '.6s') $('.guard .list .item').eq(3).attr('data-wow-delay', '.8s') // 投资者关系 $('.share').addClass('wow fadeInUp2') $('.share .more-more').addClass('wow fadeInUp2') $('.investor-relation-box').addClass('wow fadeInUp2') // 弹窗 $('.pop-market .public-tit').removeClass('wow fadeInUp2') $(document).ready(function() { globalJs.bytedSelectEvent(); }); if (!/msie [6|7|8|9]/i.test(navigator.userAgent)) { globalJs.wow.init(); } // $(window).scroll(function() { // // console.log(zhi1, 'zhi1'); // var gund1 = $(window).scrollTop() // // console.log(gund1, 'gund1'); // if (gund1 >= zhi1) { // // console.log('+++'); // $('body').addClass('home-bottom') // } // }) // 添加新锚点 // if (winWt > 992) { if ($('.public-column').length) { var newId = '
' $('.public-column').before(newId) } // } })(jQuery);