//=== viewid:dh_style_28_1683867859931,dh_style_28_1683960397826 ===// /*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_1683867859931 ===// 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_1683867859931(){ $("#dh_style_28_1683867859931 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1683867859931(); }) $(function(){ $("#dh_style_28_1683867859931 .fa-navicon").click(function(){ $("#dh_style_28_1683867859931").addClass('clearTransform'); $("#dh_style_28_1683867859931 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1683867859931(); $("#dh_style_28_1683867859931 .subBox").css("top",$("#dh_style_28_1683867859931 .menuUl_box").height()); if($("#dh_style_28_1683867859931 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1683867859931 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1683867859931 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1683867859931 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1683867859931 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1683867859931 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1683867859931 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1683867859931 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1683867859931 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1683867859931 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1683867859931 .menuStyle_28').append(``); $('#dh_style_28_1683867859931 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1683867859931 .menuStyle_28').append(``); },100); }); //=== viewid:homelink_style_02_1683998067921,homelink_style_02_1683998076613,homelink_style_02_1683998084919,homelink_style_02_1683998093749,homelink_style_02_1683998106529,homelink_style_02_1683997925752,homelink_style_02_1683957368552,homelink_style_02_1683997733973,homelink_style_02_1684069468828,homelink_style_02_1683997745324,homelink_style_02_1683997977169,productList_style_23_1683958182685 ===// //=== viewid:productList_style_23_1683958182685 ===// var showSub = '0'; //=== viewid:productList_style_23_1683958182685 ===// if(typeof addcart !== 'function'){ function addcart(pid,is_virtual,idspecprice,idpackage){ var lang=0; if(lang == '0'){ lang = Default_isFT; if(BodyIsFt == '0'){ lang = BodyIsFt; }else if(BodyIsFt == '1'){ lang = BodyIsFt; } } var packStr = ''; if(typeof (idpackage) != 'undefined'){ packStr = "&idpackage="+idpackage; } if(is_mobile()){ var locationUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&lang="+lang+"&act=add&ismobile=1" + pid + (idspecprice ? idspecprice : ""); } var res = "0"; if(res == '1' && is_virtual == 0){ locationUrl+= "&use_ajax=1&callback=?"; $.getJSON(locationUrl,function(ret){ if(ret.i_AddFlag){ $.alerts.dialogClass = 'success'; alert(ret.message); } }); }else{ window.location = locationUrl; } }else{ var locationUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr; if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice; if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅 locationUrl = "http://admin.cnwcloud.cn/exusers/u_cart.php?idweb=70307&lang="+lang+"&act=add&ispc=1" + pid + (idspecprice ? idspecprice : ""); } document.getElementById("boxName").innerHTML="鍔犲叆璐墿杞?; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src=locationUrl; box.Show({width:"840px",height:"420px"}); } } } function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } $(function(){ $('#productList_style_23_1683958182685 .prod_infos .end_time').each(function(){ purchase_clock(this);//寮€鍚€掕鏃 }); }); //鎷艰喘鍊掕鏃 function purchase_clock(obj) { var time = parseInt($(obj).attr('data-time')); if (time > 0) { var str = ''; var num = 0; num = parseInt(time/86400); if(num > 0)str += num.toString() + '澶?; time -= num * 86400; num = parseInt(time/3600); if(num > 0)str += num.toString() + '鏃?; time -= num * 3600; num = parseInt(time/60); if(num > 0)str += num.toString() + '鍒?; time -= num * 60; if(num > 0)str += time.toString() + '绉?; $(obj).text(str).attr('data-time', parseInt($(obj).attr('data-time')) - 1); setTimeout(function(){ purchase_clock(obj); }, 1000); } else { $(obj).text('0澶?鏃?鍒?绉?); } } //=== viewid:text_style_15_1683951130314,text_style_15_1683951619505,text_style_15_1683951409988,text_style_15_1683951607873,text_style_15_1683951671297,copyright_style_01_1683952349518,text_style_15_1684046148273,text_style_15_1684046265323,text_style_15_1684046283257,text_style_15_1684046328020,text_style_15_1684048509969,text_style_15_1684048569816 ===//