//=== viewid:dh_style_28_1662515309473 ===//
$(function(){
$("#dh_style_28_1662515309473 li a").attr("target","_blank");
})
//=== viewid:dh_style_28_1662515309473 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
var is_mobile_boolean = is_mobile();
$(function(){
/*pc,鎵嬫満鏄剧ず闅愯棌*/
$("#dh_style_28_1662515309473 li").each(function(){
if($(this).find("ul") && $(this).find("ul").length != 0){
$(this).children("a").removeAttr('href');
if(is_mobile_boolean){
$(this).children("a").attr('onclick','navSwtich(this)');
}
}
});
})
//=== viewid:dh_style_28_1662515309473 ===//
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_1662515309473(){
$("#dh_style_28_1662515309473 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1662515309473();
})
$(function(){
$("#dh_style_28_1662515309473 .fa-navicon").click(function(){
$("#dh_style_28_1662515309473").addClass('clearTransform');
$("#dh_style_28_1662515309473 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1662515309473();
$("#dh_style_28_1662515309473 .subBox").css("top",$("#dh_style_28_1662515309473 .menuUl_box").height());
if($("#dh_style_28_1662515309473 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1662515309473 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1662515309473 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1662515309473 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1662515309473 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1662515309473 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1662515309473 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1662515309473 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1662515309473 .subBox").hide();
})
//椋庢牸41 42
}
})
var color = $('#dh_style_28_1662515309473 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1662515309473 .menuStyle_28').append(``);
$('#dh_style_28_1662515309473 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1662515309473 .menuStyle_28').append(``);
},100);
});
//=== viewid:clock_style_1_1662516122036 ===//
$(document).ready(function(){
});
//=== viewid:clock_style_1_1662516122036 ===//
//--
$(function(){
var viewid="clock_style_1_1662516122036";
var sys_url="viewid=clock_style_1_1662516122036&name=clock&style=style_1&langid=0&pageid=470533&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.moreParamsclock_style_1_1662516122036;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:clock_style_1_1662516122036 ===//
var timeclock_style_1_1662516122036 = "2024-03-12 23:59:59";
var endDayclock_style_1_1662516122036 = new Date(Date.parse(timeclock_style_1_1662516122036));
// var weekNum = endDayclock_style_1_1662516122036.getDay(); //杩斿洖0-6 0瀵瑰簲鐨勬槸鍛ㄦ棩
var starttimeclock_style_1_1662516122036 = timeclock_style_1_1662516122036.replace(new RegExp("-","gm"),"/");
var dayArrclock_style_1_1662516122036 = new Array(),hourArrclock_style_1_1662516122036 = new Array(),minuteArrclock_style_1_1662516122036 = new Array(),secondArrclock_style_1_1662516122036 = new Array();
function getTimeFunc_clock_style_1_1662516122036() {
var endTimeclock_style_1_1662516122036 = (new Date(starttimeclock_style_1_1662516122036)).getTime();
var nowTimeclock_style_1_1662516122036 = new Date();
nowTimeclock_style_1_1662516122036 = nowTimeclock_style_1_1662516122036.getTime();
var centerTimeclock_style_1_1662516122036 = endTimeclock_style_1_1662516122036 - nowTimeclock_style_1_1662516122036;
let daysclock_style_1_1662516122036 = Math.floor(centerTimeclock_style_1_1662516122036 / (1000 * 60 * 60 * 24));
銆€銆€let hoursclock_style_1_1662516122036 = Math.floor((centerTimeclock_style_1_1662516122036 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
銆€銆€let minutesclock_style_1_1662516122036 = Math.floor((centerTimeclock_style_1_1662516122036 % (1000 * 60 * 60)) / (1000 * 60));
銆€銆€let secondsclock_style_1_1662516122036 = Math.floor(centerTimeclock_style_1_1662516122036 % (1000 * 60) / 1000);
var timerclock_style_1_1662516122036 = '';
if( centerTimeclock_style_1_1662516122036 <= 0 && timerclock_style_1_1662516122036) {
clearInterval(timerclock_style_1_1662516122036);
daysclock_style_1_1662516122036 = hoursclock_style_1_1662516122036 = minutesclock_style_1_1662516122036 = secondsclock_style_1_1662516122036 = 0;
}
if( centerTimeclock_style_1_1662516122036 <= 0) {
daysclock_style_1_1662516122036 = hoursclock_style_1_1662516122036 = minutesclock_style_1_1662516122036 = secondsclock_style_1_1662516122036 = 0;
}
// 椋庢牸6娓叉煋
// 椋庢牸7娓叉煋
var html_days = '',html_hours = '',html_minutes = '',html_seconds = '';
}
getTimeFunc_clock_style_1_1662516122036();
var timerclock_style_1_1662516122036 = setInterval(getTimeFunc_clock_style_1_1662516122036,1000);
//=== viewid:clock_style_1_1662516122036 ===//
$(function () {
start_clock_clock_style_1_1662516122036();
});
function start_clock_clock_style_1_1662516122036() {
setTimeout(update_clock_clock_style_1_1662516122036, 1000);
}
function update_clock_clock_style_1_1662516122036() {
var clock = $('#clock_style_1_1662516122036 .clock'),
options = {
'timezone':clock.attr('data-timezone'),
'with_leading_zeros':clock.attr('data-with_leading_zeros'),
'hour_format':clock.attr('data-hour_format'),
'template':clock.attr('data-template')
},
time = get_time_info(options);
clock.find('.year').html(time['year']);
clock.find('.month').html(time['month']);
clock.find('.date').html(time['date']);
clock.find('.hours').html(time['hours']);
clock.find('.minutes').html(time['minutes']);
clock.find('.seconds').html(time['seconds']);
clock.find('.am-pm').html(time['am-pm']);
clock.find('.year').html(time['year']);
setTimeout(update_clock_clock_style_1_1662516122036, 1000);
}
function get_time_info(options) {
var date = get_time_in_zone(options.timezone), result;
result = {
'year' : date.getFullYear(),
'month' : _val(date.getMonth() + 1, options.with_leading_zeros),
'date' : _val(date.getDate(), options.with_leading_zeros),
'hours' : _val(options.hour_format == 12 && date.getHours() > 12 ? date.getHours() % 12 : date.getHours(), options.with_leading_zeros),
'minutes' : _val(date.getMinutes(), true),
'seconds' : _val(date.getSeconds(), true),
'am-pm' : date.getHours() < 12 ? 'AM' : 'PM',
'week-index' : date.getDay()
};
var weeks, months, am_pm;
switch(options.template) {
case 'english':
weeks = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'];
result['month'] = months[result['month'] - 1];
break;
case 'default': default:
weeks = ['鏄熸湡澶?, '鏄熸湡涓€', '鏄熸湡浜?, '鏄熸湡涓?, '鏄熸湡鍥?, '鏄熸湡浜?, '鏄熸湡鍏?];
am_pm = ['涓婂崍', '涓嬪崍'];
result['am-pm'] = result['am-pm'] == 'am' || result['am-pm'] == 'AM' ? am_pm[0] : am_pm[1];
break;
}
result['week-name'] = weeks ? weeks[result['week-index']] : '';
return result;
}
function get_timezone_offset(timezone) {
var timezone_list = {
'Etc/GMT+5': -5,
'UTC': 0,
'GMT+0': 0,
'Etc/GMT-8': 8,
'PRC': 8,
'Etc/GMT-9': 9
};
return timezone_list[timezone] !== undefined ? timezone_list[timezone] : 0;
}
function get_utc_time() {
var date = new Date(), local = date.getTime(), offset = date.getTimezoneOffset() * 60000;
return local + offset;
}
function get_time_in_zone(timezone) {
return new Date(get_utc_time() + 3600000 * get_timezone_offset(timezone));
}
function _val(val, with_leading_zeros) {
return '' + (val < 10 && with_leading_zeros ? '0' : '') + val;
}
//=== viewid:text_style_04_1662516323615 ===//
//=== viewid:text_style_04_1662516323615 ===//
if(false) {
if(0 == 2 || 0 == 3){
$('#text_style_04_1662516323615 #listUl1 li').each(function (i) {
if (i < 1) {
$(this).show();
} else {
$(this).hide();
}
})
}
}
$(function(){
var box1 = $('#text_style_04_1662516323615 .conDiv');
var box2 = $('#text_style_04_1662516323615 .listDiv');
var ul1 = $('#text_style_04_1662516323615 #listUl1');
var ul2 = $('#text_style_04_1662516323615 #listUl2');
var item_num = 0, main_num = 0, padding_num = 0, margin_num = 0, type_num = 0;
var direction = 0;
var rollDirection = 'left';
if(!false){
function heightFunc(){
$('#text_style_04_1662516323615 #listUl1 li').each(function(i){
if( direction == 2 || direction == 3) {
padding_num = parseFloat($(this).css('paddingBottom')) + parseFloat($(this).css('paddingTop'));
margin_num = parseFloat($(this).css('marginBottom')) + parseFloat($(this).css('marginBottom'));
type_num = $(this).height();
}else{
padding_num = parseFloat($(this).css('paddingLeft')) + parseFloat($(this).css('paddingRight'));
margin_num = parseFloat($(this).css('marginLeft')) + parseFloat($(this).css('marginRight'));
$(this).width('auto');
ul2.find('li').eq(i).width('auto');
type_num = $(this).width();
}
if (i < 1) {
item_num += type_num + padding_num + margin_num;
}
main_num += type_num + padding_num + margin_num;
});
if( direction == 2 || direction == 3 ) {
rollDirection = 'top';
box1.height(item_num);
}else{
rollDirection = 'left';
ul1.css('width','auto');
ul2.css('width','auto');
box2.width(main_num*2+5);
if(main_num <= $('#text_style_04_1662516323615 .scrollDiv').width()){
ul1.width($('#text_style_04_1662516323615 .scrollDiv').width());
ul2.width($('#text_style_04_1662516323615 .scrollDiv').width());
box2.width($('#text_style_04_1662516323615 .scrollDiv').width()*2+5);
main_num = $('#text_style_04_1662516323615 .scrollDiv').width();
}
}
}
heightFunc();
$(window).resize(function(){
item_num = 0;
main_num = 0;
heightFunc();
});
ul2.html(ul1.html());
var value = 0;
var speed = 40;
if( direction == 0 || direction == 3) {
box2.css(rollDirection,'0px');
}else{
box2.css(rollDirection,-main_num+'px');
}
function scrollFunc(){
if(direction == 0 || direction == 3){
if(parseInt(box2.css(rollDirection)) <= -main_num) {
value = 0;
}else{
value --;
}
}else{
if(parseInt(box2.css(rollDirection)) >= 0) {
value = -main_num;
}else{
value = parseInt(box2.css(rollDirection)) + 1;
}
}
box2.css(rollDirection,value+'px');
}
var timer = setInterval(scrollFunc,speed);
box1.mouseover(function(){
clearInterval(timer);
}).mouseout(function(){
timer = setInterval(scrollFunc,speed);
});
}
});
//=== viewid:qqol_style_05_1662543356067 ===//
$('#qqol_style_05_1662543356067 .item_box.backup').click(function(){
$('html , body').animate({scrollTop: 0},'slow');
});
//=== viewid:qqol_style_05_1662543356067 ===//
//璐墿杞
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 = "//s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&act=show&lang="+langid+"&ismobile=1";
}else{
document.getElementById("boxName").innerHTML="鏌ョ湅璐墿杞?;
if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳";
document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/u_cart.php?idweb=25415&act=show&lang="+langid+"&v=9";
box.Show({width:'1000px', height:'600px'});
}
}
}
//鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰
var mobile_flag = isMobile();
if(mobile_flag){
$('#qqol_style_05_1662543356067 .qq_pc').hide();
$('#qqol_style_05_1662543356067 .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_05_1662543356067 ===//
// 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟
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, "\n");
return s;
}
//=== viewid:dh_style_47_1691244610968 ===//
$(function(){
//涓嬬骇鏍忕洰灞曞紑鏀剁缉
$('.menuStyle_47 .mainMenuText,.menuStyle_47 .subMenu02Text').unbind('click').click(function(){
$(this).siblings('.menuUl').slideToggle();
$(this).children('.fa.fa-angle-down').toggleClass('open');
$(this).parent().siblings().children('.menuUl').slideUp();
$(this).parent().siblings().children('.mainMenuText,.subMenu02Text').children('.fa.fa-angle-down').removeClass('open');
});
//鐐瑰嚮鏍忕洰鏁翠綋灞曞紑
$('.menuStyle_47 .menuBtn .menuIcon').unbind('click').click(function(){
$(this).parent().siblings('.bgView').show();
$(this).parents('.style_47.dh').addClass('clearTransform');
});
//鐐瑰嚮鏍忕洰鏁翠綋鏀剁缉
$('.menuStyle_47 .bgView,.menuStyle_47 .closeBtn').unbind('click').click(function(){
hideDhFunc($(this).parents('.menuStyle_47'));
});
//鏍忕洰鏁翠綋鏀剁缉浜嬩欢
function hideDhFunc(parentObj){
parentObj.find('.bgView').hide();
}
//鐐瑰嚮璺宠浆
$('.menuStyle_47 .menuLink').unbind('click').click(function(){
let modelParent = $(this).parents('.menuStyle_47');
let newWinShow = modelParent.attr('newWinShow'); //on
let sonLength = $(this).siblings('.fa-angle-down').length;
if(newWinShow != 'on' || sonLength==0){
stopPropagation();
window.open($(this).attr('url'),modelParent.attr('target'));
}
});
$('.menuStyle_47 .hideBgView').unbind('click').click(function(){
stopPropagation();
});
//闃绘鍐掓场
function stopPropagation(e) {
e = e ||window.event;
if(e.stopPropagation) { //W3C闃绘鍐掓场鏂规硶
e.stopPropagation();
} else{
e.cancelBubble = true; //IE闃绘鍐掓场鏂规硶
}
}
});
//=== viewid:dh_style_47_1691244610968 ===//
$(function(){
$("#dh_style_47_1691244610968 li a").attr("target","_blank");
})
//=== viewid:dh_style_47_1691244610968 ===//
/*pc,鎵嬫満鏄剧ず闅愯棌*/
function is_mobile(){
return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
var is_mobile_boolean = is_mobile();
$(function(){
/*pc,鎵嬫満鏄剧ず闅愯棌*/
$("#dh_style_47_1691244610968 li").each(function(){
if($(this).find("ul") && $(this).find("ul").length != 0){
$(this).children("a").removeAttr('href');
if(is_mobile_boolean){
$(this).children("a").attr('onclick','navSwtich(this)');
}
}
});
})
//=== viewid:dh_style_47_1691244610968 ===//
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_47_1691244610968(){
$("#dh_style_47_1691244610968 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_47_1691244610968();
})
$(function(){
$("#dh_style_47_1691244610968 .fa-navicon").click(function(){
$("#dh_style_47_1691244610968").addClass('clearTransform');
$("#dh_style_47_1691244610968 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_47_1691244610968();
$("#dh_style_47_1691244610968 .subBox").css("top",$("#dh_style_47_1691244610968 .menuUl_box").height());
if($("#dh_style_47_1691244610968 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_47_1691244610968 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_47_1691244610968 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_47_1691244610968 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_47_1691244610968 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_47_1691244610968 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_47_1691244610968 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_47_1691244610968 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_47_1691244610968 .subBox").hide();
})
//椋庢牸41 42
}
})
//=== viewid:homelink_style_04_1652857544761 ===//
function mobileFunc() {
$('#homelink_style_04_1652857544761 .link_ul').removeClass('slideUp').removeClass('slideDown');
$('#homelink_style_04_1652857544761 .home-icon,#homelink_style_04_1652857544761 .bbx-iconfont').click(function(){
if($('#homelink_style_04_1652857544761 .link_ul').hasClass('slideDown')) {
$('#homelink_style_04_1652857544761 .link_ul').removeClass('slideDown').addClass('slideUp');
}else {
$('#homelink_style_04_1652857544761 .link_ul').removeClass('slideUp').addClass('slideDown');
}
});
}
mobileFunc();
//=== viewid:homelink_style_04_1652857544761 ===//
//--
$(function(){
var viewid="homelink_style_04_1652857544761";
var sys_url="viewid=homelink_style_04_1652857544761&name=homelink&style=style_04&langid=0&pageid=470533&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.moreParamshomelink_style_04_1652857544761;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:homelink_style_04_1652857544761,productList_style_03_1603591718715,prodKind_style_17_1603676322074,prodKind_style_08_1652858864913,productList_style_03_1657622201010 ===//
//=== viewid:productList_style_03_1603591718715 ===//
var sys_url_productList_style_03_1603591718715="viewid=productList_style_03_1603591718715&name=productList&style=style_03&langid=0&pageid=470533&viewCtrl=default&father_width=99.93333333333332%25";
//=== viewid:productList_style_03_1603591718715 ===//
//--
$(function(){
var viewid="productList_style_03_1603591718715";
var sys_url="viewid=productList_style_03_1603591718715&name=productList&style=style_03&langid=0&pageid=470533&viewCtrl=default&father_width=99.93333333333332%25&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_03_1603591718715;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_03_1603591718715,productList_style_03_1657622201010 ===//
var showSub = '0';
//=== viewid:productList_style_03_1603591718715 ===//
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=25415&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=25415&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=25415&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=25415&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_03_1603591718715 .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:searchbox_style_02_1627875156023 ===//
$("#searchbox_style_02_1627875156023 .search-btn").click(function(){
var kw=$("#searchbox_style_02_1627875156023 .search_input").val();
var gourl = $(this).attr("attrhref");
href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+kw;
window.open(href);
})
function searchOne(lname){
var gourl = $(lname).attr("attrhref");
href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"pkeyword="+$(lname).html();
window.open(href);
}
$("#searchbox_style_02_1627875156023 .search_input").val(decodeURIComponent(Request("pkeyword")));
function goSearch(form) {
console.log('form: ', form);
$(form).find('.search-btn').trigger('click');
return false;
}
//=== viewid:prodKind_style_17_1603676322074 ===//
$(document).ready(function(){
});
//=== viewid:prodKind_style_17_1603676322074 ===//
//--
$(function(){
var viewid="prodKind_style_17_1603676322074";
var sys_url="viewid=prodKind_style_17_1603676322074&name=prodKind&style=style_17&langid=0&pageid=470533&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_1603676322074;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:prodKind_style_17_1603676322074 ===//
$(document).ready(function(){
$(function(){
var obj = $("#prodKind_style_17_1603676322074");
var is_set_height = {"oneSet":true,"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_08_1652858864913 ===//
//--
$(function(){
var viewid="prodKind_style_08_1652858864913";
var sys_url="viewid=prodKind_style_08_1652858864913&name=prodKind&style=style_08&langid=0&pageid=470533&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_08_1652858864913;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:prodKind_style_08_1652858864913 ===//
var is_show = 0; //鍒ゆ柇鑿滃崟鏄剧ず鐨勫彉閲
//鍒濆鍙婃仮澶嶆牱寮
function chushi(){
$('#prodKind_style_08_1652858864913 .prodcateStyle_8').css({position:'relative',top:'none',left:'none',width:'auto',height:'auto'});
$('#prodKind_style_08_1652858864913 .cate_scroll').css({height:'auto',overflowY:'auto'});
$('#prodKind_style_08_1652858864913').parents().css('zIndex','10');
$('html,body').css('overflow','auto');
}
//鐐瑰嚮璁╁垎绫昏彍鍗曟樉绀洪殣钘
$('#prodKind_style_08_1652858864913 .cate_title').click(function(){
if( is_show == 0){
$('#prodKind_style_08_1652858864913 .catebg').show();
var cate_title_height = $('#prodKind_style_08_1652858864913 .cate_title').height(); //鑾峰彇鑿滃崟鏍囬楂樺害
if(Number($('.bottomMenu.123').length) == 1){ //鍒ゆ柇搴曢儴瀵艰埅鏄惁瀛樺湪
var bottomheight = $('.bottomMenu').height() + cate_title_height; //瀛樺湪灏卞姞涓婅彍鍗曟爣棰樺拰搴曢儴瀵艰埅鐨勯珮搴
$('#prodKind_style_08_1652858864913 .cate_scroll').css('height','calc(100% - '+bottomheight+'px)'); //绠楀嚭婊氬姩鏄剧ず鐨勯珮搴
}else{
$('#prodKind_style_08_1652858864913 .cate_scroll').css('height','calc(100% - '+cate_title_height+'px)'); //娌℃湁搴曢儴瀵艰埅鐨勬椂鍊欙紝绠楀嚭婊氬姩鏄剧ず鐨勯珮搴
}
//婊氬姩锛屽浐瀹氬畾浣嶏紝灞傜骇锛宐ody绂佹婊氬姩
$('#prodKind_style_08_1652858864913 .cate_scroll').css('overflowY','scroll');
$('#prodKind_style_08_1652858864913 .prodcateStyle_8').css({position:'fixed',top:0,left:0,width:'100%',height:'100%'});
$('#prodKind_style_08_1652858864913').parents().css('zIndex','99999');
$('html,body').css('overflow','hidden');
is_show = 1;
}else{
$('#prodKind_style_08_1652858864913 .catebg').hide();
chushi();
is_show = 0;
}
});
//鏂囨。瀹藉害鍙樺寲鏃?鑿滃崟鐨勬樉绀洪殣钘
$(window).resize(function(){
if( $('html,body').width() > 640 ){
$('#prodKind_style_08_1652858864913 .catebg').show();
chushi();
}else{
if(is_show = 1){
$('#prodKind_style_08_1652858864913 .catebg').hide();
chushi();
is_show = 0;
}
}
});
//=== viewid:productList_style_03_1657622201010 ===//
var sys_url_productList_style_03_1657622201010="viewid=productList_style_03_1657622201010&name=productList&style=style_03&langid=0&pageid=470533&viewCtrl=default&father_width=99.93333333333332%25";
//=== viewid:productList_style_03_1657622201010 ===//
//--
$(function(){
var viewid="productList_style_03_1657622201010";
var sys_url="viewid=productList_style_03_1657622201010&name=productList&style=style_03&langid=0&pageid=470533&viewCtrl=default&father_width=99.93333333333332%25&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_03_1657622201010;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:productList_style_03_1657622201010 ===//
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=25415&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=25415&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=25415&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=25415&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_03_1657622201010 .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:image_style_11_1604972721248 ===//
$(function(){
let obj = $("#image_style_11_1604972721248");
let picItems = obj.find("li.imgItems");
let num = 0;
let picBox;
picItems.click(function(){
let topH = $(window).scrollTop();
let index = $(this).index();
let curPic = $(this).find(".theimgdiv").css("backgroundImage");
let curIcon,curIconStyle,curPicStyle;
if(curPic){
curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",'');
curPicStyle = '';
curIcon = '';
curIconStyle = 'display:none;';
}else{
curPic = '';
curPicStyle = 'display:none;';
curIcon = $(this).find(".bbx-new-font").text();
curIconStyle = $(this).find(".bbx-new-font").attr('style');
}
num = index;
let html = "