//=== viewid:dh_style_11_1548035594282 ===// /*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_11_1548035594282 ===// 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_11_1548035594282(){ $("#dh_style_11_1548035594282 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_11_1548035594282(); }) $(function(){ $("#dh_style_11_1548035594282 .fa-navicon").click(function(){ $("#dh_style_11_1548035594282").addClass('clearTransform'); $("#dh_style_11_1548035594282 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_11_1548035594282(); $("#dh_style_11_1548035594282 .subBox").css("top",$("#dh_style_11_1548035594282 .menuUl_box").height()); if($("#dh_style_11_1548035594282 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_11_1548035594282 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_11_1548035594282 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_11_1548035594282 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_11_1548035594282 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_11_1548035594282 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_11_1548035594282 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_11_1548035594282 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_11_1548035594282 .subBox").hide(); }) //风格41 42 } }) //=== viewid:qqol_style_06_1575358098491 ===// $('#qqol_style_06_1575358098491 .item_box.backup').click(function(){ $('html , body').animate({scrollTop: 0},'slow'); }); //=== viewid:qqol_style_06_1575358098491 ===// //购物车 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 = "//s207js.nicebox.cn/exusers/u_cart.php?idweb=10155&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML="查看购物车"; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; document.getElementById("showiframe").src="//s207js.nicebox.cn/exusers/u_cart.php?idweb=10155&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } //判断是否是手机,用于处理QQ电脑端及手机端链接不一致问题 var mobile_flag = isMobile(); if(mobile_flag){ $('#qqol_style_06_1575358098491 .qq_pc').hide(); $('#qqol_style_06_1575358098491 .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_06_1575358098491 ===// // 对输入内容中的尖括号、引号等进行转义 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, "\""); s = s.replace(/
/g, "\n"); return s; }