//=== 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_1701310538766 ===// //-- $(function(){ var viewid="homelink_style_02_1701310538766"; var sys_url="viewid=homelink_style_02_1701310538766&name=homelink&style=style_02&langid=0&pageid=555753&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_1701310538766; } } RequestURL(viewid,sys_url,moreParams); }); //-- //=== viewid:homelink_style_02_1701411684438,productList_style_23_1699863055053,tab_style_03_1709778060939,homelink_style_02_1701159224177,homelink_style_02_1701411826123,homelink_style_02_1701335572781,homelink_style_02_1701310044796,homelink_style_02_1701310538766 ===// //=== viewid:copyright_style_01_1660990229104,text_style_15_1700450000693,text_style_15_1700450000711,text_style_15_1700450000724,text_style_15_1700450000735 ===// //=== viewid:footerCustom_textlist_01_1702434921951,footerCustom_textlist_01_1702434980976,footerCustom_textlist_01_1700038503014,footerCustom_textlist_01_1700101421014 ===// 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'}); } } }