//=== viewid:dh_style_35_1554720961241 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile_boolean = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ }) //=== viewid:dh_style_35_1554720961241 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_35_1554720961241(){ $("#dh_style_35_1554720961241 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_35_1554720961241(); }) $(function(){ $("#dh_style_35_1554720961241 .fa-navicon").click(function(){ $("#dh_style_35_1554720961241").addClass('clearTransform'); $("#dh_style_35_1554720961241 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_35_1554720961241(); $("#dh_style_35_1554720961241 .subBox").css("top",$("#dh_style_35_1554720961241 .menuUl_box").height()); if($("#dh_style_35_1554720961241 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_35_1554720961241 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_35_1554720961241 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_35_1554720961241 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_35_1554720961241 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_35_1554720961241 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_35_1554720961241 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_35_1554720961241 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_35_1554720961241 .subBox").hide(); }) //椋庢牸41 42 } }) //=== viewid:productList_style_35_1624326388179,homelink_style_02_1620957737711 ===// //=== viewid:image_style_11_1620958132171 ===// $(function(){ let obj = $("#image_style_11_1620958132171"); let picItems = obj.find("li.imgItems"); let num = 0; let picBox; picItems.click(function(){ let topH = $(window).scrollTop(); let index = $(this).index(); let curPic = $(this).find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); curPicStyle = ''; curIcon = ''; curIconStyle = 'display:none;'; }else{ curPic = ''; curPicStyle = 'display:none;'; curIcon = $(this).find(".bbx-new-font").text(); curIconStyle = $(this).find(".bbx-new-font").attr('style'); } num = index; let html = "
"+curIcon+"
"; let picBoxhtml = $(html); //"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹 $("body").append(picBoxhtml); picBox = $(".imgShowBox"); pdSize(); //鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず if(picItems.length == 1){ $("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden") } if(picItems.length-1 == $(this).index()){ $("body").find(".imgButton>.nextImg").css("visibility","hidden") } if($(this).index() == 0){ $("body").find(".imgButton>.prevImg").css("visibility","hidden") } //鍏抽棴 $("body").find(".imgButton>.closeShowPic").click(function(){ $(".imgShowBox").remove(); $("body").removeClass("pos_fixed"); $(window).scrollTop(topH); }); //涓嬩竴寮 $("body").find(".imgButton>.nextImg").click(function(){ $(".imgShowBox img").css("max-height","none"); let len = obj.find("li:has('.imgCont')").length; $(this).siblings().css("visibility","visible"); num++; if(num >= len){ num = len-1; } if(num == len-1){ $(this).css("visibility","hidden"); } curPics(); pdSize(); }); //涓婁竴寮 $("body").find(".imgButton>.prevImg").click(function(){ $(".imgShowBox img").css("max-height","none"); $(this).siblings().css("visibility","visible"); num--; if(num <= 0){ num = 0; $(this).css("visibility","hidden"); } curPics(); pdSize(); }); }); //鍒囨崲澶у浘 function curPics(){ let that = obj.find("li").eq(num); let curPic = that.find(".theimgdiv").css("backgroundImage"); let curIcon,curIconStyle,curPicStyle; let boxImg = picBox.find("img"); let boxIcon = picBox.find(".bbx-new-font"); if(curPic){ curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",''); boxImg.attr("src",curPic); boxImg.show(0); boxIcon.hide(0); }else{ curIcon = that.find(".bbx-new-font").text(); curIconStyle = that.find(".bbx-new-font").attr('style'); boxIcon.text(curIcon); boxIcon.attr('style',curIconStyle); boxImg.hide(0); } } //鍒ゆ柇灞曞紑鏄剧ず鏁堟灉 function pdSize(){ let imgH = picBox.find("img").height(); let winH = $(window).height(); if(imgH>winH){ $("body").addClass("pos_fixed"); picBox.addClass("scroll"); picBox.animate({"scrollTop":"0px"},200); }else{ $("body").removeClass("pos_fixed"); picBox.removeClass("scroll"); $(".imgShowBox img").css("max-height","80%"); } } }) //=== viewid:video_style_02_1620894928234,video_style_02_1625019003190 ===// $(document).ready(function(){ }); //=== viewid:video_style_02_1625019003190 ===// $(function(){ if('false' == 'true' || '0' == '1'){ //鑷姩鎾斁鎴栭€夋嫨棣栧抚鍋氬皝闈 let u = navigator.userAgent; let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢 let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios if(isAndroid){ setTimeout(function(){ document.getElementById("myVideovideo_style_02_1625019003190").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1625019003190 = $("#myVideovideo_style_02_1625019003190"); setTimeout(function(){ $videovideo_style_02_1625019003190[0].play(true); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1625019003190[0].pause(true); time++; if($videovideo_style_02_1625019003190[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1625019003190(); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1625019003190(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1625019003190(); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1625019003190(); },50); } }, false); } } function doPlayvideo_style_02_1625019003190(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1625019003190 = $("#myVideovideo_style_02_1625019003190") $videovideo_style_02_1625019003190[0].play(true) }) } function doPausevideo_style_02_1625019003190(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1625019003190 = $("#myVideovideo_style_02_1625019003190") $videovideo_style_02_1625019003190[0].pause(true) }) } $("#myVideovideo_style_02_1625019003190")[0].addEventListener("play", function(){//鎾斁浜嬩欢 $("#myVideovideo_style_02_1625019003190")[0].setAttribute('poster', ''); }); }) //=== viewid:video_style_02_1625019003190 ===// var video = $("#video_style_02_1625019003190 video")[0]; if(video) { video.addEventListener('playing',function(){ var this1 = this; this1.play(); for(var j=$('video').length-1; j>=0; j--) { var this2 = $('video')[j]; if(this1 !== this2) { this2.pause(); } } }); } //=== viewid:footerCustom_footerDh_01_1620895826978 ===// $(function(){ if($("#footerCustom_footerDh_01_1620895826978 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#footerCustom_footerDh_01_1620895826978 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) } }) //=== viewid:footerCustom_footerDh_01_1620895826978 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } function _checkWindwo(){ if(is_mobile()){ $("#footerCustom_footerDh_01_1620895826978 .showmobile").show(); $("#footerCustom_footerDh_01_1620895826978 .showpc").hide(); }else{ $("#footerCustom_footerDh_01_1620895826978 .showmobile").hide(); $("#footerCustom_footerDh_01_1620895826978 .showpc").show(); } } _checkWindwo(); $(window).resize(function() { _checkWindwo(); })