//=== 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,productList_style_11_1618806839260,productList_style_11_1620350089279,productList_style_11_1620350206187,productList_style_11_1620350307764,productList_style_11_1636358675639,productList_style_05_1498112766363,productList_style_05_1620351013176,productList_style_04_1498112543032,homelink_style_02_1603939414042,homelink_style_02_1603939197741,productList_style_11_1616467805178,productList_style_22_1603534592979,productList_style_23_1603544548302 ===//
//=== viewid:prodKind_style_17_1635138596733,prodKind_style_17_1634713791534,prodKind_style_17_1634712564463,prodKind_style_17_1603533877965 ===//
$(document).ready(function(){
});
//=== viewid:prodKind_style_17_1603533877965 ===//
//--
$(function(){
var viewid="prodKind_style_17_1603533877965";
var sys_url="viewid=prodKind_style_17_1603533877965&name=prodKind&style=style_17&langid=0&pageid=2816319&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_1603533877965;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:prodKind_style_17_1603533877965 ===//
$(document).ready(function(){
$(function(){
var obj = $("#prodKind_style_17_1603533877965");
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,prodKind_style_17_1634713791534,prodKind_style_17_1634712564463,prodKind_style_17_1603533877965 ===//
$(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:productList_style_22_1603534592979 ===//
//--
$(function(){
var viewid="productList_style_22_1603534592979";
var sys_url="viewid=productList_style_22_1603534592979&name=productList&style=style_01&langid=0&pageid=2816319&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_22_1603534592979;
}
}
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,productList_style_11_1618806839260,productList_style_11_1620350089279,productList_style_11_1620350206187,productList_style_11_1620350307764,productList_style_11_1636358675639,productList_style_05_1498112766363,productList_style_05_1620351013176,productList_style_04_1498112543032,productList_style_11_1616467805178,productList_style_22_1603534592979,productList_style_23_1603544548302 ===//
var showSub = '0';
//=== viewid:productList_style_22_1603534592979 ===//
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_22_1603534592979 .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:prodscreen_style_01_1603544522238 ===//
//=== viewid:prodscreen_style_01_1603544522238 ===//
//--
$(function(){
var viewid="prodscreen_style_01_1603544522238";
var sys_url="viewid=prodscreen_style_01_1603544522238&name=prodscreen&style=style_01&langid=0&pageid=2816319&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.moreParamsprodscreen_style_01_1603544522238;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:prodscreen_style_01_1603544522238 ===//
if(0 == 0){
$('#prodscreen_style_01_1603544522238 .showMore').html('鏌ョ湅鏇村');
}else{
$('#prodscreen_style_01_1603544522238 .showMore').html('鍏ㄩ儴鏀惰捣');
}
$('#prodscreen_style_01_1603544522238 .showMore').click(function(){
var show_all = 0;
if(0 == 0){
show_all = 1;
}else{
show_all = 0;
}
RequestURL('prodscreen_style_01_1603544522238','viewid=prodscreen_style_01_1603544522238&name=prodscreen&style=style_01&langid=0&pageid=2816319&viewCtrl=default'+'&show_all='+show_all);
});
//=== viewid:productList_style_23_1603544548302 ===//
var sys_url_productList_style_23_1603544548302="viewid=productList_style_23_1603544548302&name=productList&style=style_23&langid=0&pageid=2816319&viewCtrl=default";
//=== viewid:productList_style_23_1603544548302 ===//
//--
$(function(){
var viewid="productList_style_23_1603544548302";
var sys_url="viewid=productList_style_23_1603544548302&name=productList&style=style_23&langid=0&pageid=2816319&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_23_1603544548302;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_23_1603544548302 ===//
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_23_1603544548302 .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: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 ===//