//=== viewid:dh_style_28_1609309284309,dh_style_03_1521620558328 ===//
/*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_1609309284309 ===//
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_1609309284309(){
$("#dh_style_28_1609309284309 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1609309284309();
})
$(function(){
$("#dh_style_28_1609309284309 .fa-navicon").click(function(){
$("#dh_style_28_1609309284309").addClass('clearTransform');
$("#dh_style_28_1609309284309 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1609309284309();
$("#dh_style_28_1609309284309 .subBox").css("top",$("#dh_style_28_1609309284309 .menuUl_box").height());
if($("#dh_style_28_1609309284309 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1609309284309 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1609309284309 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1609309284309 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1609309284309 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1609309284309 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1609309284309 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1609309284309 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1609309284309 .subBox").hide();
})
//椋庢牸41 42
}
})
var color = $('#dh_style_28_1609309284309 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1609309284309 .menuStyle_28').append(``);
$('#dh_style_28_1609309284309 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1609309284309 .menuStyle_28').append(``);
},100);
});
//=== viewid:searchbox_style_03_1609316688819 ===//
function goUrl(formname){
var url = "http://www.baidu.com/baidu";
if (formname.si.value!=""){
formname.ct.value = "2097152";
}
else {
formname.ct.value = "0";
}
formname.action = url;
return true;
}
//=== viewid:homelink_style_01_1519638865656,productList_style_01_1519703974521 ===//
//=== viewid:dh_style_menu2_02_1610699692327 ===//
// 椋庢牸style_menu2_03 浜や簰
//=== viewid:productList_style_01_1519703974521 ===//
var sys_url_productList_style_01_1519703974521="viewid=productList_style_01_1519703974521&name=productList&style=style_01&langid=0&pageid=130762&viewCtrl=default";
//=== viewid:productList_style_01_1519703974521 ===//
//--
$(function(){
var viewid="productList_style_01_1519703974521";
var sys_url="viewid=productList_style_01_1519703974521&name=productList&style=style_01&langid=0&pageid=130762&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.moreParamsproductList_style_01_1519703974521;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_01_1519703974521 ===//
var showSub = '0';
//=== viewid:productList_style_01_1519703974521 ===//
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 = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=9692&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=9692&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 = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=9692&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=9692&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_01_1519703974521 .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澶?鏃?鍒?绉?);
}
}