//=== viewid:dh_style_28_1616376114779 ===// /*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_28_1616376114779 ===// 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_28_1616376114779(){ $("#dh_style_28_1616376114779 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1616376114779(); }) $(function(){ $("#dh_style_28_1616376114779 .fa-navicon").click(function(){ $("#dh_style_28_1616376114779").addClass('clearTransform'); $("#dh_style_28_1616376114779 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1616376114779(); $("#dh_style_28_1616376114779 .subBox").css("top",$("#dh_style_28_1616376114779 .menuUl_box").height()); if($("#dh_style_28_1616376114779 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1616376114779 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1616376114779 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1616376114779 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1616376114779 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1616376114779 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1616376114779 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1616376114779 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1616376114779 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1616376114779 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1616376114779 .menuStyle_28').append(``); $('#dh_style_28_1616376114779 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1616376114779 .menuStyle_28').append(``); },100); }); //=== viewid:banner_style_11_1633575669807 ===// //=== viewid:banner_style_11_1633575669807 ===// $(document).ready(function(){ arrowShow(); $(window).resize(function(){ arrowShow(); }); // 绠ご鏄剧ず function arrowShow(){ if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){ $("#banner_style_11_1633575669807 .bannerStyle_11 .awesome-font").show().siblings().hide(); }else{ $("#banner_style_11_1633575669807 .bannerStyle_11 .awesome-font").hide().siblings().show(); } } var datestay=parseFloat('3')*1000; var timeAnimi=parseFloat('0.5')*1000; var obj=$("#banner_style_11_1633575669807"); if(obj&&obj.length>0){ var timeoutObj=null; var nowItem=0; var father=obj.find(".bannerStyle_11 .main_image ul"); var Ulen = father.children("li").length; father.children("li").eq(nowItem).css({"display":"block","float":"none","left":"0%","top":"0px","position":"absolute"}).siblings("li").css({"display":"block","float":"none","left":"100%","top":"0px","position":"absolute"}); obj.find(".bannerStyle_11 .flicking_con").children("div").eq(0).addClass("cur_two").siblings().removeClass("cur_two"); obj.find(".bannerStyle_11 .flicking_con").children("div").click(function(){ if(Ulen>1 && $(this).index() != nowItem){ var now=nowItem; var next=$(this).index(); obj.find(".bannerStyle_11 .flicking_con").children("div").eq(next).addClass("cur_two").siblings().removeClass("cur_two"); father.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimi,function(){ if(typeof(callback)=="function"){ timeoutObj=setTimeout(function(){ callback(callback); },datestay); } }); father.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimi); nowItem=next; } }); obj.hover(function(){ if(timeoutObj){ window.clearTimeout(timeoutObj); } },function(){ timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); }); $("#banner_style_11_1633575669807 .arrowLeft").click(function(){ animiOut(); }); $("#banner_style_11_1633575669807 .arrowRight").click(function(){ animiIn(); }); var touchVal=null; document.addEventListener("touchstart", function(e){ if($(e.target).is(obj)||$(e.target).parents("#"+obj.attr("id")).length>0){ touchVal={}; touchVal.downX=e.touches[0].clientX; if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } }, false); document.addEventListener("touchmove", function(e){ if(touchVal&&touchVal.downX){ touchVal.moveX=e.touches[0].clientX-touchVal.downX; if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } }, false); document.addEventListener("touchend", function(e){ if(touchVal&&touchVal.moveX){ if(touchVal.moveX>30){ animiOut(animiIn); }else if(touchVal.moveX<-30){ animiIn(animiIn); } if (e.preventDefault) { e.preventDefault(); } else { e.returnvalue = false; } } touchVal=null; }, false); function animiIn(callback){ if(timeoutObj){ window.clearTimeout(timeoutObj); } if(Ulen>1){ var now=nowItem; var next=now+1; if(next>=Ulen){ next=0; } obj.find(".bannerStyle_11 .flicking_con").children("div").eq(next).addClass("cur_two").siblings().removeClass("cur_two"); father.children("li").eq(now).stop().animate({"left":"-100%"},timeAnimi,function(){ if(typeof(callback)=="function"){ timeoutObj=setTimeout(function(){ callback(callback); },datestay); } }); father.children("li").eq(next).css({"left":"100%"}).stop().animate({"left":"0%"},timeAnimi); nowItem=next; } } function animiOut(){ if(timeoutObj){ window.clearTimeout(timeoutObj); } if(Ulen>1){ var now=nowItem; var next=now-1; if(next<0){ next=Ulen-1; } obj.find(".bannerStyle_11 .flicking_con").children("div").eq(next).addClass("cur_two").siblings().removeClass("cur_two"); father.children("li").eq(now).stop().animate({"left":"100%"},timeAnimi,function(){ if(typeof(callback)=="function"){ timeoutObj=setTimeout(function(){ callback(callback); },datestay); } }); father.children("li").eq(next).css({"left":"-100%"}).stop().animate({"left":"0%"},timeAnimi); nowItem=next; } } timeoutObj=setTimeout(function(){ animiIn(animiIn); },datestay); } }); //=== viewid:newsList_style_18_1611906296376 ===// //-- $(function(){ var viewid="newsList_style_18_1611906296376"; var sys_url="viewid=newsList_style_18_1611906296376&name=newsList&style=style_18&langid=0&pageid=105050&viewCtrl=newsList&isfb=1"; var moreParams=''; if(typeof(history.pushState) != 'undefined'){ var hstate=JSON.stringify(history.state); if(hstate!='null'&& hstate!=null){ eval('var hjson = ' + hstate); moreParams=hjson.moreParamsnewsList_style_18_1611906296376; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:video_style_02_1611905906400 ===// $(document).ready(function(){ }); //=== viewid:video_style_02_1611905906400 ===// $(function(){ if('true' == '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_1611905906400").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1611905906400 = $("#myVideovideo_style_02_1611905906400"); setTimeout(function(){ $videovideo_style_02_1611905906400[0].play(true); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1611905906400[0].pause(true); time++; if($videovideo_style_02_1611905906400[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1611905906400(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1611905906400(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1611905906400(); if('true' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1611905906400(); },50); } }, false); } } function doPlayvideo_style_02_1611905906400(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1611905906400 = $("#myVideovideo_style_02_1611905906400") $videovideo_style_02_1611905906400[0].play(true) }) } function doPausevideo_style_02_1611905906400(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1611905906400 = $("#myVideovideo_style_02_1611905906400") $videovideo_style_02_1611905906400[0].pause(true) }) } $("#myVideovideo_style_02_1611905906400")[0].addEventListener("play", function(){//鎾斁浜嬩欢 $("#myVideovideo_style_02_1611905906400")[0].setAttribute('poster', ''); }); }) //=== viewid:video_style_02_1611905906400 ===// var video = $("#video_style_02_1611905906400 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(); } } }); if(typeof WeixinJSBrdgeReady=="object" && typeof WeixinJSBridge.invoke == "function"){ video.play() }else{ if (document.addEventListener) { document.addEventListener("WeixinJSBridgeReady", function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchstart', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); document.addEventListener('touchend', function () { if(video.currentTime == 0 || video.currentTime == 0.01){ video.play(); } }, false); } else if (document.attachEvent) { document.attachEvent("WeixinJSBridgeReady", function () { video.play(); }); document.attachEvent("onWeixinJSBridgeReady", function () { video.play(); }); } } } //=== viewid:qqol_style_05_1578119997432 ===// $('#qqol_style_05_1578119997432 .item_box.backup').click(function(){ $('html , body').animate({scrollTop: 0},'slow'); }); //=== viewid:qqol_style_05_1578119997432 ===// //璐墿杞 if(typeof showcart !== 'function'){ function showcart(){ var langid = 0; if (langid==0 && BodyIsFt) langid = 1; if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){ location.href = "//s145js.nicebox.cn/exusers/u_cart.php?idweb=53721&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="鏌ョ湅璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="//s145js.nicebox.cn/exusers/u_cart.php?idweb=53721&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_05_1578119997432 .qq_pc').hide(); $('#qqol_style_05_1578119997432 .qq_mobile').show(); } function isMobile() { var userAgentInfo = navigator.userAgent; var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"]; var mobile_flag = false; //鏍规嵁userAgent鍒ゆ柇鏄惁鏄墜鏈 for (var v = 0; v < mobileAgents.length; v++) { if (userAgentInfo.indexOf(mobileAgents[v]) > 0) { mobile_flag = true; break; } } var screen_width = window.screen.width; var screen_height = window.screen.height; //鏍规嵁灞忓箷鍒嗚鲸鐜囧垽鏂槸鍚︽槸鎵嬫満 if(screen_width < 500 && screen_height < 800){ mobile_flag = true; } return mobile_flag; } //=== viewid:qqol_style_05_1578119997432 ===// // 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟 function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/\'/g, "'"); s = s.replace(/\"/g, """); s = s.replace(/\n/g, "
"); return s; } function html_decode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); s = s.replace(/ /g, " "); s = s.replace(/'/g, "\'"); s = s.replace(/"/g, "\""); s = s.replace(/
/g, "\n"); return s; } //=== viewid:copyright_style_01_1615625731763 ===//