//=== viewid:dh_style_28_1603419460274 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
$(function(){
$("#dh_style_28_1603419460274 li").each(function(){
});
})
//=== viewid:dh_style_28_1603419460274 ===//
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_1603419460274(){
$("#dh_style_28_1603419460274 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1603419460274();
})
$(function(){
$("#dh_style_28_1603419460274 .fa-navicon").click(function(){
$("#dh_style_28_1603419460274").addClass('clearTransform');
$("#dh_style_28_1603419460274 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1603419460274();
$("#dh_style_28_1603419460274 .subBox").css("top",$("#dh_style_28_1603419460274 .menuUl_box").height());
if($("#dh_style_28_1603419460274 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1603419460274 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1603419460274 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1603419460274 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1603419460274 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1603419460274 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1603419460274 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1603419460274 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1603419460274 .subBox").hide();
})
//椋庢牸41 42
}
})
var color = $('#dh_style_28_1603419460274 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1603419460274 .menuStyle_28').append(``);
$('#dh_style_28_1603419460274 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1603419460274 .menuStyle_28').append(``);
},100);
});
//=== viewid:lang_style_13_1604070866308,video_style_02_1605253889740 ===//
$(document).ready(function(){
});
//=== viewid:homelink_style_02_1603941759548,homelink_style_02_1603937195453,homelink_style_03_1603537496460,productList_style_11_1618970461439,productList_style_11_1620904974270,productList_style_11_1620904995436,productList_style_11_1620905036980,productList_style_11_1620905255254,productList_style_11_1620905288628 ===//
//=== viewid:searchbox_style_07_1607408498647 ===//
$("#searchbox_style_07_1607408498647 .search-btn").click(function(){
var kw=$("#searchbox_style_07_1607408498647 .search_input").val();
var gourl = $(this).attr("attrhref");
href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+kw;
location.href = href;
})
function searchOne(lname){
var gourl = $(lname).attr("attrhref");
href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+$(lname).html();
location.href = href;
}
$("#searchbox_style_07_1607408498647 .search_input").val(decodeURIComponent(Request("pkeyword")));
function goSearch(form) {
console.log('form: ', form);
$(form).find('.search-btn').trigger('click');
return false;
}
//=== viewid:dh_style_menu2_02_1604973861446,dh_style_menu2_02_1618806032930 ===//
// 椋庢牸style_menu2_03 浜や簰
//=== viewid:productList_style_11_1618970461439 ===//
//--
$(function(){
var viewid="productList_style_11_1618970461439";
var sys_url="viewid=productList_style_11_1618970461439&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1618970461439;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1618970461439,productList_style_11_1620904974270,productList_style_11_1620904995436,productList_style_11_1620905036980,productList_style_11_1620905255254,productList_style_11_1620905288628 ===//
var showSub = '0';
//=== viewid:productList_style_11_1618970461439 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1618970461439 .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:productList_style_11_1620904974270 ===//
//--
$(function(){
var viewid="productList_style_11_1620904974270";
var sys_url="viewid=productList_style_11_1620904974270&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1620904974270;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1620904974270 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1620904974270 .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:productList_style_11_1620904995436 ===//
//--
$(function(){
var viewid="productList_style_11_1620904995436";
var sys_url="viewid=productList_style_11_1620904995436&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1620904995436;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1620904995436 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1620904995436 .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:productList_style_11_1620905036980 ===//
//--
$(function(){
var viewid="productList_style_11_1620905036980";
var sys_url="viewid=productList_style_11_1620905036980&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1620905036980;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1620905036980 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1620905036980 .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:productList_style_11_1620905255254 ===//
//--
$(function(){
var viewid="productList_style_11_1620905255254";
var sys_url="viewid=productList_style_11_1620905255254&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1620905255254;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1620905255254 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1620905255254 .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:productList_style_11_1620905288628 ===//
//--
$(function(){
var viewid="productList_style_11_1620905288628";
var sys_url="viewid=productList_style_11_1620905288628&name=productList&style=style_11&langid=0&pageid=2824087&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_11_1620905288628;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_11_1620905288628 ===//
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://web.szhot.com/exusers/u_cart.php?idweb=125899&lang="+lang+"&pid="+pid+"&act=add&ismobile=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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://web.szhot.com/exusers/u_cart.php?idweb=125899&pid="+pid+"&act=add&lang="+lang+"&ispc=1" + packStr;
if (idspecprice) locationUrl += "&IDSpecPrice["+pid+"]="+idspecprice;
if (isNaN(pid)) {//濡傛灉涓嶆槸鏁板瓧锛岃〃绀烘壒閲忓姞鍏ヨ喘鐗╄溅
locationUrl = "https://web.szhot.com/exusers/u_cart.php?idweb=125899&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_11_1620905288628 .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:prodKind_style_17_1635138596733 ===//
$(document).ready(function(){
});
//=== viewid:prodKind_style_17_1635138596733 ===//
//--
$(function(){
var viewid="prodKind_style_17_1635138596733";
var sys_url="viewid=prodKind_style_17_1635138596733&name=prodKind&style=style_17&langid=0&pageid=2824087&viewCtrl=prodSKind&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.moreParamsprodKind_style_17_1635138596733;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:prodKind_style_17_1635138596733 ===//
$(document).ready(function(){
$(function(){
var obj = $("#prodKind_style_17_1635138596733");
var is_set_height = {"oneSet":false,"twoSet":false,"threeSet":false};
obj.find('#threeHot').parents('.sidebar2').attr('id','twoHot');
obj.find('#twoHot').parents('.sidebar').attr('id','oneHot');
obj.find(".prodcateStyle_17 .sidebar").click(function(e){
$(this).siblings().children(".arrow").removeClass("fa-caret-down").addClass("fa-caret-right");
if($(this).children(".newscate2").css('display')=='none'){
$(this).siblings().find(".newscate2,.newscate3").hide();
$(this).children(".arrow ").removeClass("fa-caret-right").addClass("fa-caret-down");
$(this).children(".newscate2 ").find('.arrow').removeClass("fa-caret-down").addClass("fa-caret-right");
$(this).children(".newscate2").show();
if (is_set_height.oneSet == true) {
$(this).css('height','auto');
}
}else{
$(this).find(".newscate2,.newscate3").hide();
$(this).children(".arrow ").removeClass("fa-caret-down").addClass("fa-caret-right");
e.stopPropagation();
}
diyAutoHeight(this);
})
obj.find(".prodcateStyle_17 .sidebar2").click(function(e){
if (is_set_height.twoSet == true) { $(this).css('height','auto'); }
e.stopPropagation();
diyAutoHeight(this);
});
obj.find(".prodcateStyle_17 .sidebar3").click(function(e){
if (is_set_height.threeSet == true) { $(this).css('height','auto'); }
e.stopPropagation();
diyAutoHeight(this);
});
if(document.body.clientWidth <= 640 ){
obj.find(".prodcateStyle_17 .sidebar2").click(function(e){
if (is_set_height.twoSet == true) { $(this).css('height','auto'); }
e.stopPropagation();
$(this).show();
$(this).children(".newscate3").toggle();
$(this).siblings().children(".newscate3").hide();
diyAutoHeight(this);
});
}
if(document.body.clientWidth >= 641 ){
obj.find(".prodcateStyle_17 .sidebar2").click(function(e){
if (is_set_height.twoSet == true) { $(this).css('height','auto'); }
e.stopPropagation();
$(this).show();
$(this).siblings().children(".newscate3").hide();
$(this).siblings().children(".arrow").removeClass("fa-caret-down").addClass("fa-caret-right");
if($(this).children(".newscate3").css('display')=='none'){
$(this).children(".newscate3").show();
$(this).children(".arrow ").removeClass("fa-caret-right").addClass("fa-caret-down");
} else {
$(this).children(".newscate3").hide();
$(this).children(".arrow ").removeClass("fa-caret-down").addClass("fa-caret-right");
}
diyAutoHeight(this);
});
}
})
});
//=== viewid:prodKind_style_17_1635138596733 ===//
$(function () {
var pgid = '-1';
if(pgid > 0){
$('.prodcateStyle_17 .sidebar').each(function(){
if ($(this).attr('data_pgid') == pgid) {
open_kind($(this));
}
});
$(".prodcateStyle_17 .sidebar2").each(function () {
if ($(this).attr('data_pgid') == pgid) {
open_kind($(this).parentsUntil('.prodcateStyle_17').eq(1));
}
});
$(".prodcateStyle_17 .sidebar3").each(function () {
if ($(this).attr('data_pgid') == pgid) {
open_son_kind($(this).parentsUntil('.prodcateStyle_17').eq(1));
open_kind($(this).parentsUntil('.prodcateStyle_17').eq(3));
}
});
}
});
function open_son_kind(obj) {
obj.children(".newscate3").show();
obj.children(".arrow ").removeClass("fa-caret-right").addClass("fa-caret-down");
}
function open_kind(obj) {
obj.children(".arrow ").removeClass("fa-caret-right").addClass("fa-caret-down");
obj.children(".newscate2 ").find('.arrow').removeClass("fa-caret-down").addClass("fa-caret-right");
obj.children(".newscate2").show();
diyAutoHeight(obj);
}
//=== viewid:dh_style_03_1527932289411 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
$(function(){
$("#dh_style_03_1527932289411 li").each(function(){
});
})
//=== viewid:copyright_style_01_1653372352279 ===//