//=== viewid:qqol_style_08_1683636143490 ===// $(function(){ if($('body').width() < 640){ // 是否苹果safari浏览器 var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 && ua.indexOf('linux') == -1 && ua.indexOf('android') == -1) { $('#qqol_style_08_1683636143490 .qq_view>a').each(function(){ let mobileHref = $(this).attr('mobilehref'); $(this).attr('href',mobileHref); }); }else if(ua.indexOf('baidu') > -1){ // PS:百度浏览器无法跳转qq的,因为百度内部屏蔽了跳转协议,为的是不让百度自己的流量窜到敌站。除非百度自己开放接口,否则无法解决。 $('#qqol_style_08_1683636143490 .qq_view>a').each(function(){ $(this).attr('href','javascript:;'); }); } // 选择颜色 $('#qqol_style_08_1683636143490 .info_view').each(function(){ $(this).click(function(){ $(this).find('.menu_con').toggle(); $(this).siblings().find('.menu_con').hide(); if($(this).find('.menu_ico').hasClass('mobile_ico_cur')){ $(this).find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur'); }else{ $(this).find('.menu_ico').addClass('mobile_ico_cur').removeClass('mobile_ico_notcur'); } $(this).siblings().find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur'); }); }); // 选择颜色 $('#qqol_style_08_1683636143490 .link_view').each(function(){ $(this).on('touchstart',function(){ $(this).siblings().find('.menu_con').hide(); $(this).find('.menu_ico').addClass('mobile_ico_cur').removeClass('mobile_ico_notcur'); $(this).siblings().find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur'); }); $(this).on('touchend',function(){ $(this).find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur'); }); }); }else{ $('#qqol_style_08_1683636143490 .main_li').hover(function(){ $(this).find('.menu_con').show(); $(this).siblings().find('.menu_con').hide(); },function(){}); $('#qqol_style_08_1683636143490 .main_li .menu_con').hover(function(){ $(this).show(); },function(){ $(this).hide(); }); } }) //=== viewid:qqol_style_08_1683636143490 ===// //购物车 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 = "//s143js.nicebox.cn/exusers/u_cart.php?idweb=43749&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="查看购物车"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/u_cart.php?idweb=43749&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //判断是否是手机,用于处理QQ电脑端及手机端链接不一致问题 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_08_1683636143490 .qq_pc').hide(); $('#qqol_style_08_1683636143490 .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_08_1683636143490 ===// // 对输入内容中的尖括号、引号等进行转义 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:dh_style_39_1700202391517 ===// /*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_39_1700202391517 ===// 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_39_1700202391517(){ $("#dh_style_39_1700202391517 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_39_1700202391517(); }) $(function(){ $("#dh_style_39_1700202391517 .fa-navicon").click(function(){ $("#dh_style_39_1700202391517").addClass('clearTransform'); $("#dh_style_39_1700202391517 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_39_1700202391517(); $("#dh_style_39_1700202391517 .subBox").css("top",$("#dh_style_39_1700202391517 .menuUl_box").height()); if($("#dh_style_39_1700202391517 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_39_1700202391517 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_39_1700202391517 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_39_1700202391517 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_39_1700202391517 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_39_1700202391517 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_39_1700202391517 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_39_1700202391517 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_39_1700202391517 .subBox").hide(); }) //风格41 42 } }) //=== viewid:lang_style_1_1709694073480,lang_style_14_1709694344920,video_style_02_1699926344214 ===// $(document).ready(function(){ }); //=== viewid:homelink_style_02_1701159224177 ===// //-- $(function(){ var viewid="homelink_style_02_1701159224177"; var sys_url="viewid=homelink_style_02_1701159224177&name=homelink&style=style_02&langid=0&pageid=555143&viewCtrl=default&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.moreParamshomelink_style_02_1701159224177; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:homelink_style_02_1701411684438,productList_style_23_1699863055053,tab_style_03_1709778060939,homelink_style_02_1701159224177 ===// //=== viewid:video_style_02_1699926344214 ===// $(function(){ if('true' == 'true' || '1' == '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_1699926344214").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1699926344214 = $("#myVideovideo_style_02_1699926344214"); setTimeout(function(){ $videovideo_style_02_1699926344214[0].play(true); if('true' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1699926344214[0].pause(true); time++; if($videovideo_style_02_1699926344214[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1699926344214(); if('true' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停 setTimeout(function(){ doPausevideo_style_02_1699926344214(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1699926344214(); if('true' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停 setTimeout(function(){ doPausevideo_style_02_1699926344214(); },50); } }, false); } } function doPlayvideo_style_02_1699926344214(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1699926344214 = $("#myVideovideo_style_02_1699926344214") $videovideo_style_02_1699926344214[0].play(true) }) } function doPausevideo_style_02_1699926344214(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1699926344214 = $("#myVideovideo_style_02_1699926344214") $videovideo_style_02_1699926344214[0].pause(true) }) } }) //=== viewid:video_style_02_1699926344214 ===// var video = $("#video_style_02_1699926344214 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:copyright_style_01_1660990229104 ===// //=== viewid:footerCustom_textlist_01_1702434921951,footerCustom_textlist_01_1702434980976 ===// 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 = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=43749&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML=""; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="https://s143js.nicebox.cn/exusers/u_cart.php?idweb=43749&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } }