// 浣滆€咃細SKQ // 鏃ユ湡锛?023骞?鏈 // 浣跨敤IE娴忚鍣ㄦ彁绀 function hiUpgrade() { window.AESKey = ""; // 鍒ゆ柇娴忚鍣ㄦ槸鍚︽敮鎸乸laceholder灞炴€ function isSupportPlaceholder() { var input = document.createElement("input"); return "placeholder" in input; } //鍒ゆ柇鏄惁鏄疘E娴忚鍣紝鍖呮嫭Edge娴忚鍣 function IEVersion() { //鍙栧緱娴忚鍣ㄧ殑userAgent瀛楃涓 var userAgent = navigator.userAgent; //鍒ゆ柇鏄惁IE娴忚鍣 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; if (isIE) { // ie10鍙婁互涓 var reIE = new RegExp("MSIE (\\d+\\.\\d+);"); reIE.test(userAgent); var fIEVersion = parseFloat(RegExp["$1"]); if (fIEVersion <= 10 || !isSupportPlaceholder()) { return true; } } else if (!!window.ActiveXObject || "ActiveXObject" in window) { // ie11 return true; } else { return false; } } var tpl = '

鏃犳硶姝e父娴忚鏈綉绔欙紒

1銆佹偍鐨勬祻瑙堝櫒鐗堟湰杩囦綆锛岃鍗囩骇鎮ㄧ殑娴忚鍣ㄣ€侟/p>

2銆佸鏋滄偍鐨勬祻瑙堝櫒鏄渶鏂扮増鏈紝璇饵span>鍒囨崲鍒版瀬閫熸ā寮廃/span>璁块棶銆侟/p>

3銆佹偍浣跨敤鐨勬槸IE娴忚鍣紝璇饵span>浣跨敤涓绘祦娴忚鍣?/span>璁块棶銆侟/p>

涓绘祦娴忚鍣ㄤ笅杞键/span>

'; if (IEVersion()) { document.write(tpl); } } hiUpgrade(); //hover鍦ㄨ嫻鏋滄墜鏈烘棤鏁堢殑瑙e喅鏂规 document.body.addEventListener("touchstart", function () {}); // 闃绘娴忚鍣ㄦ鐨瓔鏁堟灉 document.addEventListener( "touchmove", function (e) { e.preventDefault(); //闃绘榛樿鐨勫鐞嗘柟寮?闃绘涓嬫媺婊戝姩鐨勬晥鏋? }, { passive: false } ); //passive 鍙傛暟涓嶈兘鐪佺暐锛岀敤鏉ュ吋瀹筰os鍜宎ndroid // 闃绘body鍐掓场 document.body.addEventListener("touchmove", function (e) { e.stopPropagation(); }); // 绐楀彛鍙戠敓鏀瑰彉鍒锋柊椤甸潰 // var windoWidth = $(window).width(); // $(window).resize(function () { // if (Math.abs($(this).width() - windoWidth) > 20) { // window.location.href = ""; // } // }); /* //瀵艰埅鏍 */ $(function () { // 鐢佃剳绔鑸垏鎹 $(".categories li").hover( function () { $(this).find(".child_v1").addClass('active'); }, function () { $(this).find(".child_v1").removeClass('active'); } ); $(".search").hover( function () { $(this).find(".form").addClass('active'); }, function () { $(this).find(".form").removeClass('active'); } ); // 鍚戜笅婊氬姩 var scrtop = 0; var v_header = $(".Header"); var v_mainnav = $(".main-nav"); $(window).scroll(function() { scrtop = $(window).scrollTop(); if (scrtop > 70) { v_header.addClass("sticky"); v_mainnav.addClass("sticky"); } else { v_header.removeClass("sticky"); v_mainnav.removeClass("sticky"); } }); var changeType=$('.dlItem'); changeType.eq(0).addClass("active").find("dd").slideDown(300); $.each(changeType,function(){ $(this).on('click',function(){ if(false==$(this).find("dd").is(':visible')){ $(this).addClass("active").siblings().removeClass("active"); $(this).siblings().find("dd").slideUp(300); $(this).find("dd").slideDown(300); }else{ $(this).removeClass("active") $(this).find("dd").slideUp(300); } }) }) // 绉诲姩绔ご閮ㄥ彸渚х偣鍑讳笅鎷 $(".wap-header .wap-click").click(function () { $(this).toggleClass("active"); if($(this).hasClass("active")){ $(this).find("em").text("close") }else{ $(this).find("em").text("Menu") } $(".wapMain").stop().slideToggle(); }); $(".wap-search").click(function () { $(".wap-searchBox").addClass("activeTOP"); $(".wap-header").addClass("activeTOP"); }); $(".wap-searchBox .wap-click").click(function () { $(".wap-searchBox").removeClass("activeTOP"); $(".wap-header").removeClass("activeTOP"); }); // 鎵嬫満绔笅鎷 $(".wapMain ul li a").click(function () { if ($(this).parent().find("ul li").length != 0) { $(this) .parent() .toggleClass("active") .children("ul") .stop() .slideToggle(); return false; } }); }); /* * 棣栭〉鏁堟灉 */ indexHome(); function indexHome() { var Banner = new Swiper(".banner", { speed: 1000, lidesPerView: 1, autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, }, pagination: { el: ".swiper-pagination", clickable :true, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); var indexMod4c = new Swiper(".indexMod4c .newSwiper", { autoHeight: true, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, pagination: { el: ".swiper-pagination", clickable :true, }, breakpoints: { 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 2, spaceBetween: 20, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 20, }, }, }); // 鑽h獕璧勮川 var ryzzOne = new Swiper(".ryzzOne .ryzz1Swiper", { autoHeight: true, navigation: { nextEl: ".swiper-button-next1", prevEl: ".swiper-button-prev1", }, breakpoints: { 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 2, spaceBetween: 20, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 3, spaceBetween: 30, }, }, }); var ryzzTwo = new Swiper(".ryzzTwo .ryzz1Swiper", { autoHeight: true, navigation: { nextEl: ".swiper-button-next2", prevEl: ".swiper-button-prev2", }, breakpoints: { 768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68 slidesPerView: 2, spaceBetween: 20, }, 1280: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280 slidesPerView: 4, spaceBetween:0, }, }, }); } /* * 鍐呴〉鏁堟灉 */ // ------- Parallax ---- function initParallax() { $(".pub_img").parallax("100%", 0.2); // $(".Details_key").parallax("100%", 0.2); } initParallax(); pageSwiperAll(); function pageSwiperAll() { } function nTabs(thisObj,Num){ if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementById(tabObj).getElementsByTagName("li"); $(".SoNav1 li").removeClass("active").eq(Num).addClass("active"); $(".SoNav2 li").removeClass("active").eq(Num).addClass("active"); $(".Solution_One .Solution_v1").removeClass("active").eq(Num).addClass("active"); $(".Solution_Two .dlList").removeClass("active").eq(Num).addClass("active") } $(".Solution_v1 .right .button").click(function () { $("html, body").animate({ scrollTop: 2000 }, 800); return false; }); $(".wapV2 .wapV21 span").click(function () { if ($(this).parents(".item").hasClass("on")) { $(this).parents(".item").removeClass("on"); $(this).parent(".wapV21").siblings(".m-subnav").stop().slideUp(); } else { $(".wapV2 .item").removeClass("on"); $(".m-subnav").stop().slideUp(); $(this).parents(".item").addClass("on"); $(this).parent(".wapV21").siblings(".m-subnav").stop().slideDown(); } }); // 鍥炲埌椤堕儴 $(".backTop").click(function () { $("html, body").animate({ scrollTop: 0 }, 800); return false; }); (function () { window.scrollReveal = new scrollReveal({ mobile: false, reset: false, move: "30px", over: "0.66s", easing: "ease-in-out", viewportFactor: 1, init: true, }); })();