//=== viewid:dh_style_11_1551066852823 ===//
/*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_11_1551066852823 ===//
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_11_1551066852823(){
$("#dh_style_11_1551066852823 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_11_1551066852823();
})
$(function(){
$("#dh_style_11_1551066852823 .fa-navicon").click(function(){
$("#dh_style_11_1551066852823").addClass('clearTransform');
$("#dh_style_11_1551066852823 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_11_1551066852823();
$("#dh_style_11_1551066852823 .subBox").css("top",$("#dh_style_11_1551066852823 .menuUl_box").height());
if($("#dh_style_11_1551066852823 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_11_1551066852823 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_11_1551066852823 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_11_1551066852823 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_11_1551066852823 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_11_1551066852823 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_11_1551066852823 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_11_1551066852823 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_11_1551066852823 .subBox").hide();
})
//椋庢牸41 42
}
})
//=== viewid:lang_style_13_1584449733825 ===//
$(document).ready(function(){
});
//=== viewid:lang_style_13_1584449733825 ===//
$('#lang_style_13_1584449733825 .lang_main').mousemove(function(){
$('#lang_style_13_1584449733825 .lang_content').show();
}).mouseout(function(){
$('#lang_style_13_1584449733825 .lang_content').hide();
});
//=== viewid:lang_style_13_1584451289291 ===//
$('#lang_style_13_1584451289291 .lang_main').mousemove(function(){
$('#lang_style_13_1584451289291 .lang_content').show();
}).mouseout(function(){
$('#lang_style_13_1584451289291 .lang_content').hide();
});
//=== viewid:banner_style_01_1558503694333 ===//
//=== viewid:banner_style_01_1558503694333 ===//
$(document).ready(function(){
arrowShow();
$(window).resize(function(){
arrowShow();
});
// 绠ご鏄剧ず
function arrowShow(){
if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767) || navigator.userAgent.indexOf('Mac OS X') != -1){
$("#banner_style_01_1558503694333 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_01_1558503694333 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:banner_style_01_1558503694333 ===//
/*
* Banner 杞挱鍥剧被
*/
var intervaltimer;
function Banner(config) {
this._default = {
'list':[],
'length':0,
'current':0,
'timer':undefined, // 璁℃椂鍣
'view':undefined, // 瑙嗗浘
'flick':undefined, // 鍦嗙偣閫夋嫨鍣
'duration':3, // 鍒囨崲鏃堕棿闂撮殧
'animation':0.5 // 鍔ㄧ敾鏃堕棿
};
config = $.extend(true, this._default, config);
this.config = config;
this.init(config);
}
Banner.prototype.init = function(config) {
this.animateStyle = 'normal'; // 鍔ㄧ敾鏁堟灉 ( 鏍规嵁鍔ㄧ敾鏁堟灉, 涓嶅悓鐨勬柟娉曟湁涓嶅悓鐨勫疄鐜 )
this.direction = 'right'; // 褰撳墠婊氬姩鏂瑰悜
this.view = this.config.view;
this.config.length = this.config.list.length;
this.config.flick = this.view ? this.view.find(".bannerStyle_1 .flicking_con > a") : undefined;
};
// 璁$畻涓嬩竴涓鏄剧ず鐨勫浘鐗囩殑绱㈠紩
// by: 濡傛灉娌℃湁浼犲叆鍙傛暟, 鍒欎娇鐢ㄩ厤缃腑鐨勬暟鎹畉his.config.current, 鍚﹀垯浣跨敤浼犲叆鐨勫弬鏁
Banner.prototype.nextIndex = function(by) {
by === undefined && (by = this.config.current);
var next = this.direction == 'right' ? by + 1 : by - 1;
next >= this.config.length && (next = 0);
next < 0 && (next = this.config.length - 1);
return next;
};
//鍥剧墖閾炬帴
$url_html = new Array();
$i = 0;
$url_len = 4;
$url_html[0] = "";
$url_html[1] = "";
$url_html[2] = "";
$url_html[3] = "";
$('#banner_style_01_1558503694333 a.img_url').attr('href',$url_html[$i]);
// 璺冲埌鎸囧畾鍥剧墖
Banner.prototype.animateIndex = function(index) {
this.endAnimate();
if(index >= 0 && index < this.config.length && this.config.current != index) {
if(this.config.current < index) {
this.direction = 'right';
this.config.current = index - 1;
} else {
this.direction = 'left';
this.config.current = index + 1;
}
this.showIndex(this.config.current);
this.startAnimate();
}
};
// 鍚戝彸鍔ㄧ敾
Banner.prototype.startAnimateRight = function() {
this.direction = 'right';
this.startAnimate();
};
// 鍚戝乏鍔ㄧ敾
Banner.prototype.startAnimateLeft = function() {
this.direction = 'left';
this.startAnimate();
};
// 缁撴潫鍔ㄧ敾
Banner.prototype.endAnimate = function() {
clearTimeout(this.config.timer);
};
// 缁撴潫鍔ㄧ敾
Banner.prototype.hoverEndAnimate = function() {
var that = this;
intervaltimer = setInterval(function(){
clearTimeout(that.config.timer);
},100);
};
Banner.prototype.startAnimate = function() {
switch(this.animateStyle) {
case 'normal':
// 榛樿鏁堟灉
this.endAnimate();
if(this.config.length > 1) {
var prev = this.config.current, next = this.nextIndex(),
end = this.direction == 'right' ? {prev:"-100%", current:"100%"} : {prev:"100%", current:"-100%"}; // 鍓嶄竴涓浘鐗囧拰褰撳墠鍥剧墖鐨勬渶鍚庡仠鐣欎綅缃
this.config.flick.eq(next).addClass("on").siblings().removeClass("on");
// 鎵ц鍔ㄧ敾
var banner = this;
this.imgs.eq(prev).stop().animate({"left":end.prev}, this.config.animation, function(){
banner.config.timer = setTimeout(function(){
banner.startAnimate();
},banner.config.duration);
});
this.imgs.eq(next).css({"left":end.current}).stop().animate({"left":"0%"}, this.config.animation);
this.config.current = next;
}
break;
case 'rotate-3d':
// 3D鏃嬭浆鏁堟灉
this.endAnimate();
this.updateBgImg();
if(this.config.length > 1) {
var prev = this.config.current, next = this.nextIndex();
this.config.flick.eq(next).addClass("on").siblings().removeClass("on");
this.config.current = next;
this.parts.css("transform", "rotateX(" + ((this.direction == 'right' ? ++this.rotate : --this.rotate) * 90) + "deg)");
var banner = this;
this.config.timer = setTimeout(function(){
banner.startAnimate();
},banner.config.duration);
}
$('#banner_style_01_1558503694333 a.img_url').attr('href',$url_html[this.config.current]);
break;
}
};
// 鎸囧畾鏄剧ず鐨勫浘鐗
Banner.prototype.showIndex = function(index) {
switch(this.animateStyle) {
case 'normal':
// 榛樿鏁堟灉
this.imgs.eq(index).css("left","0%").siblings(".img-item").css("left","100%");
this.config.flick.eq(index).addClass("on").siblings().removeClass("on");
break;
case 'rotate-3d':
// 3D鏃嬭浆鏁堟灉
this.updateFaceBottonTopImg(index);
this.config.flick.eq(index).addClass("on").siblings().removeClass("on");
break;
}
};
/*
* ********************************************
* 3D鏃嬭浆鏁堟灉 鐗规湁鍑芥暟 begin
*/
// 姣忔鏃嬭浆鍓嶉兘闇€瑕佹洿鏂拌儗閮ㄧ殑鍥剧墖
Banner.prototype.updateBgImg = function() {
// 璁$畻鑳岄儴瑕佹樉绀虹殑鍥剧墖
var bg_image_index = this.nextIndex(this.nextIndex());
// index: 璁$畻鑳屾櫙鍥剧墖褰撳墠鏄剧ず鍦ㄥ摢涓猧mg涓? 鎬诲叡鏈?涓浘鐗? 鍒嗗埆浣嶄簬姝i潰/搴曢儴/鑳岄儴/椤堕儴, 绱㈠紩鍒嗗埆涓?, 1, 2, 3 )
var c, index = (c = (this.rotate + 2) % 4) >= 0 ? c : c + 4;
var banner = this;
// console.log('绗?,index,'涓潰-浣跨敤鏇存柊涓虹',bg_image_index,'寮犲浘');
this.parts && this.parts.each(function () {
$(this).find('.img:eq('+index+')').css({'background-image': 'url("'+banner.config.list[bg_image_index]+'")'});
});
};
// 鏇存柊姝i潰/椤堕儴/搴曢儴鐨勫浘鐗
// index: 瑕佹樉绀哄摢寮犲浘鐗
// 澶囨敞: 鍥犱负鎬诲叡鏈夊洓涓潰鐨勫浘鐗囬渶瑕佹洿鏂? 鍒濆鍖栨椂, 姝i潰/椤堕儴/搴曢儴鐨勫浘鐗囧彧闇€鏇存柊涓€娆″嵆鍙 (鑳岄儴鐨勫浘鐗囧湪姣忔鏃嬭浆鍓嶉兘闇€瑕佹洿鏂?
Banner.prototype.updateFaceBottonTopImg = function(index) {
// face, bottom, top: 璁$畻姝i潰/椤堕儴/搴曢儴鍥剧墖褰撳墠鏄剧ず鍦ㄥ摢涓猧mg涓? 鎬诲叡鏈?涓浘鐗? 鍒嗗埆浣嶄簬姝i潰/搴曢儴/鑳岄儴/椤堕儴, 绱㈠紩鍒嗗埆涓?, 1, 2, 3 )
var c, face = (c = this.rotate % 4) >= 0 ? c : c + 4, bottom, top;
bottom = face + 1; bottom >= this.config.length && (bottom = 0);
top = face - 1; top < 0 && (top = this.config.length - 1);
var banner = this;
this.parts && this.parts.each(function () {
// console.log('绗?,face,'涓潰-浣跨敤鏇存柊涓虹',index,'寮犲浘');
$(this).find('.img:eq('+face+')').css({'background-image': 'url("'+banner.config.list[index]+'")'});
// console.log('绗?,bottom,'涓潰-浣跨敤鏇存柊涓虹',index < banner.config.length - 1 ? index + 1 : 0,'寮犲浘');
$(this).find('.img:eq('+bottom+')').css({'background-image': 'url("'+banner.config.list[index < banner.config.length - 1 ? index + 1 : 0]+'")'});
// console.log('绗?,top,'涓潰-浣跨敤鏇存柊涓虹',index > 0 ? index - 1 : banner.config.length - 1,'寮犲浘');
$(this).find('.img:eq('+top+')').css({'background-image': 'url("'+banner.config.list[index > 0 ? index - 1 : banner.config.length - 1]+'")'});
});
};
// 鍒濆鍖栨棆杞儴鍒咜 璁剧疆3d鏃嬭浆鐨勫洓涓潰鐨勫浘鐗? index琛ㄧず榛樿鏄剧ず鍝紶鍥剧墖
Banner.prototype.initImgPart = function(index) {
var banner = this;
this.parts && this.parts.each(function () {
$(this).find('.img').each(function (i) {
var j = 0;
switch (i) {
case 0: j = index; break; // 姝i潰
case 1: j = index + 1; break; // 搴曢儴
case 2: break; // 鑳岄儴
case 3: j = index - 1; break; // 椤堕儴
}
j >= banner.config.length && (j = 0);
j < 0 && (j = banner.config.length - 1);
$(this).css({'background-image': 'url("'+banner.config.list[j]+'")', 'background-repeat':'no-repeat', 'background-color':'#fff'});
});
});
};
// 鏇存柊鏃嬭浆閮ㄥ垎: 涔嬫墍浠ヤ娇鐢ㄥ畾鏃跺櫒, 鏄洜涓烘棤娉曞疄鏃惰幏鍙栨ā鍧楀搴
Banner.prototype.updateImgPart = function() {
this.parts && this.parts.each(function(index) {
$(this).css({
"left":$(this).width() * index + "px"
});
$(this).find(".img").css({
"background-position": -$(this).width() * index + "px"
});
});
var banner = this;
setTimeout(function () {
banner.updateImgPart();
}, 800);
};
/*
* 3D鏃嬭浆鏁堟灉 鐗规湁鍑芥暟 end
* ********************************************
*/
// 鍥剧墖鏁版嵁
var list_banner_style_01_1558503694333 = [];
list_banner_style_01_1558503694333.push('/userimg/4253/pkgimg/banner/20190522134242794.jpg');list_banner_style_01_1558503694333.push('https://cdn.yun.sooce.cn/6/4253/png/1583308661034f2c3a3fd8165a2ba.png?version=1583308663');list_banner_style_01_1558503694333.push('https://cdn.yun.sooce.cn/6/4253/png/15844169388134afedaf4e4934e39.png?version=0');list_banner_style_01_1558503694333.push('https://cdn.yun.sooce.cn/6/4253/png/15844156306577f7a53efc341e7ef.png?version=0');
var banner_banner_style_01_1558503694333; // 杞挱鍥惧璞
$(function(){
// 鍒涘缓杞挱鍥
$arrHref = new Array();
banner_banner_style_01_1558503694333 = new Banner({
'list':list_banner_style_01_1558503694333,
'view':$('#banner_style_01_1558503694333'),
'duration':parseFloat('3') * 1000,
'animation':parseFloat('0.5') * 1000
});
banner_banner_style_01_1558503694333.animateStyle = 'normal';
banner_banner_style_01_1558503694333.imgs = banner_banner_style_01_1558503694333.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_01_1558503694333.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_01_1558503694333.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗
banner_banner_style_01_1558503694333.showIndex(banner_banner_style_01_1558503694333.config.current);
// 鐩戝惉 鐐瑰嚮鍦嗙偣
banner_banner_style_01_1558503694333.config.flick.click(function(){
banner_banner_style_01_1558503694333.animateIndex($(this).index());
$('#banner_style_01_1558503694333 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 鐩戝惉 榧犳爣鎮诞鏃
banner_banner_style_01_1558503694333.view.hover(
function(){
banner_banner_style_01_1558503694333.hoverEndAnimate();
banner_banner_style_01_1558503694333.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_01_1558503694333.config.timer = setTimeout(function(){
banner_banner_style_01_1558503694333.startAnimateRight();
},banner_banner_style_01_1558503694333.config.duration);
banner_banner_style_01_1558503694333.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳
banner_banner_style_01_1558503694333.view.find(".btn_prev").click(function() {
banner_banner_style_01_1558503694333.startAnimateLeft();
});
banner_banner_style_01_1558503694333.view.find(".btn_next").click(function() {
banner_banner_style_01_1558503694333.startAnimateRight();
});
// 鐩戝惉 瑙︽懜浜嬩欢
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_01_1558503694333.view) || $(e.target).closest("#"+banner_banner_style_01_1558503694333.view.attr("id")).length > 0) {
touchVal = {};
touchVal.downX = e.touches[0].clientX; // 璁板綍瑙︽懜璧峰浣嶇疆
}
}, false);
document.addEventListener("touchmove", function(e){
if(touchVal && touchVal.downX) {
touchVal.moveX = e.touches[0].clientX - touchVal.downX; // 璁$畻瑙︽懜涓殑鍋忕Щ浣嶇疆
}
}, false);
document.addEventListener("touchend", function(e){
if(touchVal && touchVal.moveX){
if(touchVal.moveX > 30){
banner_banner_style_01_1558503694333.startAnimateLeft(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_01_1558503694333.startAnimateRight(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 杩愯
banner_banner_style_01_1558503694333.config.timer = setTimeout(function(){
banner_banner_style_01_1558503694333.startAnimateRight();
}, banner_banner_style_01_1558503694333.config.duration);
});
//=== viewid:image_style_03_1583396796795 ===//
$(function(){
var obj = $("#image_style_03_1583396796795");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("
脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796822 ===//
$(function(){
var obj = $("#image_style_03_1583396796822");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796809 ===//
$(function(){
var obj = $("#image_style_03_1583396796809");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583406410372 ===//
$(function(){
var obj = $("#image_style_03_1583406410372");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583406420953 ===//
$(function(){
var obj = $("#image_style_03_1583406420953");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796826 ===//
$(function(){
var obj = $("#image_style_03_1583396796826");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796833 ===//
$(function(){
var obj = $("#image_style_03_1583396796833");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796839 ===//
$(function(){
var obj = $("#image_style_03_1583396796839");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583396796830 ===//
$(function(){
var obj = $("#image_style_03_1583396796830");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583417329455 ===//
$(function(){
var obj = $("#image_style_03_1583417329455");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583417438376 ===//
$(function(){
var obj = $("#image_style_03_1583417438376");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583406807068 ===//
$(function(){
var obj = $("#image_style_03_1583406807068");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583406817164 ===//
$(function(){
var obj = $("#image_style_03_1583406817164");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1583406829648 ===//
$(function(){
var obj = $("#image_style_03_1583406829648");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:newsList_style_02_1551088431889 ===//
//--
$(function(){
var viewid="newsList_style_02_1551088431889";
var sys_url="viewid=newsList_style_02_1551088431889&name=newsList&style=style_02&langid=0&pageid=189895&viewCtrl=newsList&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.moreParamsnewsList_style_02_1551088431889;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_25_1584182068238 ===//
//--
$(function(){
var viewid="newsList_style_25_1584182068238";
var sys_url="viewid=newsList_style_25_1584182068238&name=newsList&style=style_25&langid=0&pageid=189895&viewCtrl=newsList&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.moreParamsnewsList_style_25_1584182068238;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_02_1584322336212 ===//
var sys_url_newsList_style_02_1584322336212="viewid=newsList_style_02_1584322336212&name=newsList&style=style_02&langid=0&pageid=189895&viewCtrl=newsList";
//=== viewid:newsList_style_02_1584322336212 ===//
//--
$(function(){
var viewid="newsList_style_02_1584322336212";
var sys_url="viewid=newsList_style_02_1584322336212&name=newsList&style=style_02&langid=0&pageid=189895&viewCtrl=newsList&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.moreParamsnewsList_style_02_1584322336212;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_12_1584321877397 ===//
// $(function(){
// // 鏍峰紡鎺у埗
// ;
// // $('.boxNewsListStyle_12 .newLeft').css("height",""+(parseInt($('.boxNewsListStyle_12 .newLeft').css("width"))*2/3)+"px");
// // 鍒嗗壊绾
// $('.boxNewsListStyle_12 .modSet').first().show();
// $('.boxNewsListStyle_12 .modSet').first().siblings('.boxNewsListStyle_12 .modSet').hide();
// var i=0;
// $('.boxNewsListStyle_12 .newsLi').eq(i).css({background:'#eee'});
// var timer = setInterval(function(){
// $('.boxNewsListStyle_12 .modSet').eq(i).stop().show();
// $('.boxNewsListStyle_12 .newsLi').eq(i).css({background:'#eee'});
// $('.boxNewsListStyle_12 .modSet').eq(i).siblings('.boxNewsListStyle_12 .modSet').hide();
// $('.boxNewsListStyle_12 .newsLi').eq(i).siblings('.boxNewsListStyle_12 .newsLi').css({background:''});
// if( i >= $('.boxNewsListStyle_12 .modSet').length-1){
// i = 0;
// }else{
// i++;
// }
// },3000);
// });
//=== viewid:newsList_style_12_1584321877397 ===//
//--
$(function(){
var viewid="newsList_style_12_1584321877397";
var sys_url="viewid=newsList_style_12_1584321877397&name=newsList&style=style_12&langid=0&pageid=189895&viewCtrl=newsList&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.moreParamsnewsList_style_12_1584321877397;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_12_1584321877397 ===//
$(function(){
var i=0;
var timer;
var lastnum = $("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .leftLi").length-1;
Carousel(1);
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .prevNews").click(function(){
//鏆傚仠 i閫€涓€鏍 鍐嶅惊鐜
clearInterval(timer);
i = i == 0 ? lastnum : i - 1;
Carousel(1);
})
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .nextNews").click(function(){
//鏆傚仠 i杩涗竴鏍 鍐嶅惊鐜
clearInterval(timer);
i = i >= lastnum ? 0 : i + 1;
Carousel(1);
})
function setIntervalFun(){
timer = setInterval(function(){
i = i >= lastnum ? 0 : i + 1;
Carousel(0);
},3000);
}
function Carousel(val){
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .leftLi").eq(i).stop().show();
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .newsLi").eq(i).addClass('cur_item').siblings().removeClass('cur_item');
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .leftLi").eq(i).siblings("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .leftLi").hide();
$("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .newsLi").eq(i).siblings("#newsList_style_12_1584321877397 .boxNewsListStyle_12 .newsLi").css({background:''});
if(val === 1) setIntervalFun();
}
});
//=== viewid:tab_style_03_1551081397105 ===//
var sys_url_productList_style_01_1551081067226="viewid=productList_style_01_1551081067226&name=productList&style=style_01&langid=0&pageid=189895&viewCtrl=default";
//=== viewid:tab_style_03_1551081397105 ===//
//--
$(function(){
var viewid="productList_style_01_1551081067226";
var sys_url="viewid=productList_style_01_1551081067226&name=productList&style=style_01&langid=0&pageid=189895&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_1551081067226;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1551081397105 ===//
var showSub = '0';
//=== viewid:tab_style_03_1551081397105 ===//
//=== viewid:tab_style_03_1551081397105 ===//
//--
$(function(){
var viewid="productList_style_01_1551081459296";
var sys_url="viewid=productList_style_01_1551081459296&name=productList&style=style_01&langid=0&pageid=189895&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_1551081459296;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1551081397105 ===//
//--
$(function(){
var viewid="productList_style_01_1551081582896";
var sys_url="viewid=productList_style_01_1551081582896&name=productList&style=style_01&langid=0&pageid=189895&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_1551081582896;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1551081397105 ===//
//--
$(function(){
var viewid="productList_style_01_1551081780064";
var sys_url="viewid=productList_style_01_1551081780064&name=productList&style=style_01&langid=0&pageid=189895&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_1551081780064;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1551081397105 ===//
$(function(){
tab_style03_init("div_tab_style_03_1551081397105",5);
setClick_Choice("div_tab_style_03_1551081397105");
$("#tab_style_03_1551081397105 .tab_nav").hide();
$("#tab_style_03_1551081397105 .tab_box").css({top:'0px',bottom:'0px',right:'0px',left:'0px',height:'100%',width:'100%'});
});
//=== viewid:tab_style_03_1551081397105 ===//
//=== viewid:tab_style_03_1551081397105 ===//
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=4253&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=4253&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=4253&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=4253&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_1551081067226 .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:tab_style_03_1551081397105 ===//
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=4253&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=4253&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=4253&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=4253&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_1551081459296 .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:tab_style_03_1551081397105 ===//
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=4253&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=4253&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=4253&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=4253&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_1551081582896 .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:tab_style_03_1551081397105 ===//
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=4253&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=4253&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=4253&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=4253&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_1551081780064 .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:newsList_style_02_1551151812523 ===//
//--
$(function(){
var viewid="newsList_style_02_1551151812523";
var sys_url="viewid=newsList_style_02_1551151812523&name=newsList&style=style_02&langid=0&pageid=189895&viewCtrl=newsList&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.moreParamsnewsList_style_02_1551151812523;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:image_style_03_1582184457651 ===//
$(function(){
var obj = $("#image_style_03_1582184457651");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_03_1582395975356 ===//
$(function(){
var obj = $("#image_style_03_1582395975356");
var imgBox;
var imgStyle_3 = obj.find(".imgStyle_3");
imgStyle_3.click(function(){
var curPic = $(this).find("img").attr("src");
var imgboxhtml = $("脳
");
$("body").append(imgboxhtml);
imgBox = $(".imgBox");
$("body").find(".imageButton>.closeShowPic").click(function(){
$(".imgBox").remove();
$("body").removeClass("pos_fixed");
})
var imgH = imgBox.find("img").height();
var winH = $('window').height();
if(imgH>winH){
$("body").addClass("pos_fixed");
imgBox.addClass("scroll");
imgBox.animate({"scrollTop":"0px"},0)
}
})
})
//=== viewid:image_style_04_1551090775117 ===//
$(function(){
let obj = $("#image_style_04_1551090775117");
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 = "";
let picBoxhtml = $(html);
//"+""+"涓轰簡韬插紑鍥剧墖寤舵椂鍔犺浇鐨勪唬鐮佹浛鎹
$("body").append(picBoxhtml);
picBox = $(".imgShowBox");
pdSize();
//鍒ゆ柇涓嬩竴寮犲拰涓婁竴寮犳寜閽殑鏄剧ず
if(picItems.length == 1){
$("body").find(".imgButton>.nextImg,.imgButton>.prevImg").css("visibility","hidden")
}
if(picItems.length-1 == $(this).index()){
$("body").find(".imgButton>.nextImg").css("visibility","hidden")
}
if($(this).index() == 0){
$("body").find(".imgButton>.prevImg").css("visibility","hidden")
}
//鍏抽棴
$("body").find(".imgButton>.closeShowPic").click(function(){
$(".imgShowBox").remove();
$("body").removeClass("pos_fixed");
$(window).scrollTop(topH);
});
//涓嬩竴寮
$("body").find(".imgButton>.nextImg").click(function(){
$(".imgShowBox img").css("max-height","none");
let len = obj.find("li:has('.imgCont')").length;
$(this).siblings().css("visibility","visible");
num++;
if(num >= len){ num = len-1; }
if(num == len-1){ $(this).css("visibility","hidden"); }
curPics();
pdSize();
});
//涓婁竴寮
$("body").find(".imgButton>.prevImg").click(function(){
$(".imgShowBox img").css("max-height","none");
$(this).siblings().css("visibility","visible");
num--;
if(num <= 0){
num = 0;
$(this).css("visibility","hidden");
}
curPics();
pdSize();
});
});
//鍒囨崲澶у浘
function curPics(){
let that = obj.find("li").eq(num);
let curPic = that.find(".theimgdiv").css("backgroundImage");
let curIcon,curIconStyle,curPicStyle;
let boxImg = picBox.find("img");
let boxIcon = picBox.find(".bbx-new-font");
if(curPic){
curPic = curPic.replace('url(','').replace(')','').replaceAll('"','').replaceAll("'",'');
boxImg.attr("src",curPic);
boxImg.show(0);
boxIcon.hide(0);
}else{
curIcon = that.find(".bbx-new-font").text();
curIconStyle = that.find(".bbx-new-font").attr('style');
boxIcon.text(curIcon);
boxIcon.attr('style',curIconStyle);
boxImg.hide(0);
}
}
//鍒ゆ柇灞曞紑鏄剧ず鏁堟灉
function pdSize(){
let imgH = picBox.find("img").height();
let winH = $(window).height();
if(imgH>winH){
$("body").addClass("pos_fixed");
picBox.addClass("scroll");
picBox.animate({"scrollTop":"0px"},200);
}else{
$("body").removeClass("pos_fixed");
picBox.removeClass("scroll");
$(".imgShowBox img").css("max-height","80%");
}
}
})
//=== viewid:qqol_style_01_1583726788186 ===//
/*
* ***************************************************************
* 鐗囨鍒楄〃绫
*/
function FragmentList(config) {
this._default = {
'prefix':'fragment-',
'css':{}
};
config = $.extend(true, this._default, config);
this.config = config;
this.list = [];
this.object = $('');
// 鎵ц閰嶇疆
this.init(config);
}
/*
* 鍒濆鍖
*/
FragmentList.prototype.init = function(config) {
config.css && this.object.css(config.css);
};
/*
* 娣诲姞
*/
FragmentList.prototype.append = function (fragment) {
this.list.push(fragment);
};
/*
* 鑾峰彇jquery瀵硅薄
*/
FragmentList.prototype.get = function () {
this.object.addClass(this.config.prefix + 'list').children().remove();
for(var i = 0, len = this.list.length, html = ''; i < len; ++i) {
html += this.list[i].html();
}
return this.object.html(html);
};
/*
* 杈撳嚭
*/
FragmentList.prototype.html = function () {
return this.get().prop('outerHTML');
};
/*
* ***************************************************************
* 鐗囨绫
*/
Fragment.prototype.prefix = 'fragment-';
function Fragment(config) {
(!config.init || Util.prototype.type(config.init) != 'function') && (config.init = function () {});
!config.html && (config.html = '');
this._default = {
'name':'item'
};
config = $.extend(true, this._default, config);
// 鍒涘缓jquery瀵硅薄
config.data && (config.html = Util.prototype.replace(config.html, Util.prototype.toArray(config.data)));
this.object = $(config.html).addClass((config.name != 'item' ? this.prefix + 'item': '') + ' ' + this.prefix + config.name);
config.init(this.object);
delete config.html; // jquery瀵硅薄鍒涘缓鍚? config.html 涓嶅啀浣跨敤
this.config = config;
// 鎵ц閰嶇疆
this.init(config);
}
/*
* 澶嶅埗
*/
Fragment.prototype.clone = function () {
return new Fragment($.extend(true, {}, this.config));
};
/*
* 鍒濆鍖
*/
Fragment.prototype.init = function(config) {
config.css && this.object.css(config.css);
};
/*
* 淇敼鏍峰紡
*/
Fragment.prototype.css = function(css) {
css && this.object.css(css);
return this;
};
/*
* 杈撳嚭
*/
Fragment.prototype.html = function () {
return this.object.prop('outerHTML');
};
/*
* 浣跨敤鎸囧畾鏁版嵁鏇存柊鑷繁
*/
Fragment.prototype.data = function (data) {
this.object.html(Util.prototype.replace(this.html(), Util.prototype.toArray(data)));
return this;
};
/*
* ***************************************************************
* 杈规爮绫
*/
function Sidebar(config) {
this._default = {
// 榛樿閰嶇疆, 甯搁噺, 涓嶅簲璇ヤ慨鏀? 瀵硅薄鍒濆鍖栨椂鍙鐩
'template':'sidebar',
'expand':true, // 榛樿灞曞紑杩樻槸闅愯棌
'css':undefined,
'main':{'width':'120px', 'position':'right'},
'border':{'width':'1px', 'color':'#ccc', 'radius':'2px'},
'button':{'width':'26px', 'color':'#333', 'font-size':'12px', 'background-color':'#ececec', 'radius':'5px'},
'close':{'hide':false, 'height':'25px', 'font-size':'12px', 'padding':'0 .6em 0 .3em'},
'show':{'start':undefined, 'end':undefined}, // 鏄剧ず寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁
'end':{'start':undefined, 'end':undefined} // 闅愯棌寮€濮嬪拰缁撴潫鏃惰鎵ц鐨勫嚱鏁
};
config = $.extend(true, this._default, config);
this.config = config;
// dom 缁撴瀯
var temp = $('.'+config.template+':first');
temp.hide();
this.main = temp.clone().removeClass(config.template).show();
this.main.data('instance', this); // dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄
config.css && this.main.addClass(config.css);
// 涓昏灞炴€
this.width = config.main.width;
this.position = config.main.position;
this.main.addClass(this.position);
this.position_rev = this.position == 'right' ? 'left' : 'right';
this.wrapper = this.main.children('.wrapper');
this._close = this.wrapper.children('.close');
this.button = this.main.children('.button');
// 瀛愬厓绱犵殑 dom 缁撴瀯鐨 data 涓繚瀛樼被瀵硅薄
this._close.data('parent', this);
this.button.data('parent', this);
// 鎵ц閰嶇疆
this.init(config);
}
/*
* 鍒濆鍖
*/
Sidebar.prototype.init = function(config) {
this.initMain();
this.initWrapper(config);
this.initButton(config);
// 鍨傜洿灞呬腑鍚? 绉诲姩鍒癰ody鏈€鍚
this.verticalCenter().appendTo('body');
config.expand ? this.show(false) : this.hide(false);
this.main.show();
// 瀛樺偍鎵€鏈夌殑瀵硅薄鍒皐indow涓 (鍚庢湡浼氫娇鐢?
!window.online_service_list && (window.online_service_list = []);
window.online_service_list.push(this);
$(window).resize(this.onWindowResize);
};
/*
* 鍒濆鍖 - main
*/
Sidebar.prototype.initMain = function() {
this.main.hide().css({
'height':'auto',
'position':'fixed',
'z-index':'100000000',
'top':'0px',
'width':this.width
});
this.main.css(this.position, '0px');
// 绉诲叆绉诲嚭鏃
this.main.hover(
function () {
$(this).data('instance').show();
},
function () {
if(!$(this).hasClass('animate-showing')) {
$(this).data('instance').hide();
}
}
);
};
/*
* 鍒濆鍖 - wrapper
*/
Sidebar.prototype.initWrapper = function(config) {
this.wrapper.css({
'border': config.border.width +' solid ' + config.border.color,
'border-radius':config.border.radius,
'-moz-border-radius':config.border.radius
});
this._close.css({
'display':config.close.hide ? 'none' : 'block',
'position':'absolute',
'top':'0px',
'right':'0px',
'height':config.close.height,
'line-height':config.close.height,
'font-size':config.close['font-size'],
'padding':config.close.padding,
'cursor':'pointer'
}).click(function () {
var instance = $(this).data('parent');
Sidebar.prototype.hide.call(instance);
if(typeof($("img").lazyload)=="function"){
//寮傛鍔犺浇鍥剧墖
setTimeout(function(){
$("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false});
},500);
}
}).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰
};
/*
* 闅愯棌Sidebar
* animate: 鏄惁甯﹀姩鐢
*/
Sidebar.prototype.hide = function (animate) {
animate === undefined && (animate = true);
var instance = this, width = '-'+this.width, end = this.position == 'right' ? {right :width} : {left :width},
btn_width = '-'+instance.config.button.width, btn_end = instance.position == 'right' ? {left :btn_width} : {right :btn_width};
instance.onHide('start');
if(animate) {
instance.main.animate(end, 'fast', function() {
instance.button.show().animate(btn_end, 'fast');
instance.onHide('end');
});
} else {
instance.main.css(end);
instance.button.show().css(btn_end);
instance.onHide('end');
}
};
/*
* 闅愯棌Sidebar寮€濮嬪拰缁撴潫鏃
*/
Sidebar.prototype.onHide = function (status) {
var func;
if(this.config.hide) {
switch(status) {
case 'start':
Util.prototype.type(func = this.config.hide.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁
break;
case 'end':
Util.prototype.type(func = this.config.hide.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁
break;
}
}
};
/*
* 鍒濆鍖 - button
*/
Sidebar.prototype.initButton = function(config) {
var width = config.button.width;
this.button.hide().css({
'position':'absolute',
'top':'0%',
'width':width,
'line-height':'1.35em',
'padding':'.5em 0',
'font-size':config.close['font-size'],
'color':config.button.color,
'background-color':config.button['background-color'],
'cursor':'pointer',
'word-wrap':'break-word',
'word-break':'break-all'
});
var radius = config.button.radius;
if(this.position == 'right') {
this.button.css({
'border-top-left-radius':radius,
'border-bottom-left-radius':radius
});
} else {
this.button.css({
'border-top-right-radius':radius,
'border-bottom-right-radius':radius
});
}
this.button.css(this.position_rev, '0px');
// 鐐瑰嚮鏃
this.button.click(function () {
var instance = $(this).data('parent');
Sidebar.prototype.show.call(instance);
}).attr({'onselectstart':'return false', 'unselectable':'on'}); // [鍏煎]绂佹閫夋嫨鏂囨湰
};
/*
* 鏄剧ずSidebar
* animate: 鏄惁甯﹀姩鐢
*/
Sidebar.prototype.show = function (animate) {
animate === undefined && (animate = true);
var instance = this, end = instance.position == 'right' ? {right :0} : {left :0};
instance.onShow('start');
if(animate) {
instance.onAnimate('showing');
instance.main.animate(end, 'fast', function() {
instance.onAnimate();
instance.button.hide(); // Bug淇: 棰濆闅愯棌涓€娆
instance.onShow('end');
});
} else {
instance.main.css(end);
instance.onShow('end');
}
// 鏄剧ず寮€濮嬪悗, 涓嶇鏄惁鏈夊姩鐢? 鎸夐挳搴旇椹笂闅愯棌
instance.button.hide();
instance.button.css(instance.position_rev,'0px');
};
/*
* 鏄剧ずSidebar寮€濮嬪拰缁撴潫鏃
*/
Sidebar.prototype.onShow = function (status) {
var func;
if(this.config.show) {
switch (status) {
case 'start':
Util.prototype.type(func = this.config.show.start) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁
break;
case 'end':
Util.prototype.type(func = this.config.show.end) == 'function' && func(); // 鎵ц鑷畾涔夊嚱鏁
break;
}
}
};
/*
* 璁剧疆瀹炴椂鍔ㄧ敾鐘舵€
* status: 涓虹┖鏃惰〃绀哄姩鐢荤粨鏉
*/
Sidebar.prototype.onAnimate = function(status) {
Util.prototype.removeClass(this.main, 'animate-');
status && this.main.addClass('animate-'+status);
};
/*
* 绐楀彛澶у皬鏀瑰彉鏃
*/
Sidebar.prototype.onWindowResize = function() {
for(var i = 0, len = window.online_service_list.length; i < len; ++i) {
window.online_service_list[i].verticalCenter();
}
};
/*
* 鍦ㄧ獥鍙e瀭鐩村眳涓
*/
Sidebar.prototype.verticalCenter = function() {
var h1 = this.main.height(), h2 =$(window).height();
if(h1 && h2) {
this.main.css('top', ((h2 - h1) / 2) + 'px');
}
return this.main;
};
/*
* 娣诲姞鍐呭
*/
Sidebar.prototype.append = function(obj) {
this.wrapper.append(obj);
this.verticalCenter();
};
/*
* ***************************************************************
* 宸ュ叿绫
*/
function Util() {
}
/*
* 杩斿洖瀵硅薄绫诲瀷
*/
Util.prototype.type = function(obj) {
var type = obj === undefined ? 'undefined' : (obj === null ? 'null' : undefined); // 鍏煎鏃х増js瑙f瀽鍣
return type ? type : Object.prototype.toString.call(obj).slice(8, -1).toLowerCase();
};
/*
* 妫€娴嬪璞$被鍨
*/
Util.prototype.is = function(obj, type) {
var cls = this.type(obj);
return obj !== undefined && obj !== null && cls.toLowerCase() === type.toLowerCase();
};
/*
* 灞炴€ф墿灞? 澧炲己鐗 )
* 娉ㄦ剰: 涓€鑸繁搴﹀鍒? 鍙洿鎺ヤ娇鐢 $.extend(true, target, source)
*/
Util.prototype.extend = function(target, source, is_deep, is_add) {
is_deep === undefined && (is_deep = true); // 濡傛灉鍊间篃鏄璞? 鏄惁瀵瑰€间篃璋冪敤extend
is_add === undefined && (is_add = true); // 濡傛灉鐩爣瀵硅薄涓病鏈夋簮瀵硅薄鐨勯敭, 鏄惁鍏佽鏂板閿€
for (var p in source) {
if (source.hasOwnProperty(p) && (is_add || target.hasOwnProperty(p))) {
// 鎵цextend
if(is_deep && this.is(target[p], 'object') && this.is(source[p], 'object')) {
this.extend(target[p], source[p]);
} else {
target[p] = source[p];
}
}
}
return target;
};
/*
* 鍒犻櫎class( 鍒犻櫎鎸囧畾鍚嶇О鐨刢lass鍜屾墍鏈変互鎸囧畾鍚嶇О寮€澶寸殑class )
*/
Util.prototype.removeClass = function(obj, rm) {
obj.attr('class', function () {
var regExp = new RegExp(rm + '\\S*', 'g');
return Util.prototype.clear($(this).attr('class').replace(regExp, ''));
});
return obj;
};
/*
* 鍒犻櫎鍓嶅悗绌虹櫧
*/
Util.prototype.trim = function(s){
return s.replace(/(^\s*)|(\s*$)/g,'');
};
/*
* 鍚堝苟涓棿澶氫釜绌虹櫧涓轰竴涓
*/
Util.prototype.clear = function(s){
return s.replace(/(^\s*)|(\s*$)|(\s{2,})/g,'');
};
/*
* 瀵硅薄杞暟缁
*/
Util.prototype.toArray = function(obj) {
var array = [], p, item;
for (p in obj) {
if (obj.hasOwnProperty(p)) {
item = [p];
item.push(this.is(obj[p], 'object') ? this.toArray(obj[p]) : obj[p]);
array.push(item);
}
}
return array;
};
/*
* 浣跨敤鎸囧畾鐨勯敭鍊兼暟缁勬浛鎹竴涓瓧绗︿覆
* 澶囨敞: 瀛楃涓蹭腑閿互{{}}鏍囪
* 澶囨敞: data: 浜岀淮鏁扮粍, 涓€缁存暟缁勭殑姣忎竴椤规槸涓€涓暱搴︿负浜岀殑鍐呭眰鏁扮粍, 鍐呭眰鏁扮粍鐨勭涓€椤逛负閿? 绗簩椤逛负鍊
*/
Util.prototype.replace = function(s, data) {
var i, len, reg_str = [], reg;
for(i = 0, len = data.length; i < len; ++i) {
reg_str.push('({{' + data[i][0] + '}})');
}
// 姝e垯鏇挎崲
reg = new RegExp(reg_str.join('|'), 'g');
return s.replace(reg, replace);
// 鎵ц鏇挎崲鐨勫嚱鏁
function replace(){
// arguments 涓寘鍚殑鏄? 瀛楃涓蹭腑褰撳墠浣嶇疆鍖归厤鍒扮殑瀛楃涓? 绗?涓?)鍖归厤鍒扮殑瀛楃涓? ..., 绗琻-1涓?)鍖归厤鍒扮殑瀛楃涓? 褰撳墠鍖归厤鐨勪綅缃? 鏁翠釜瀛楃涓
// 浠庣储寮曚负1寮€濮? 绗竴涓笉涓簎ndefined鐨勯」鐨勭储寮曞€煎噺涓€鍗充负鍖归厤鍒扮殑閿殑绱㈠紩
for(var i = 1, len = arguments.length; i < len; ++i) {
if(arguments[i] !== undefined) {
return data[--i][1];
}
}
}
};
//=== viewid:qqol_style_01_1583726788186 ===//
//璐墿杞
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=4253&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=4253&act=show&lang="+langid+"&v=9";
box.Show({width:'1000px', height:'600px'});
}
}
}
//鍒ゆ柇鏄惁鏄墜鏈?鐢ㄤ簬澶勭悊QQ鐢佃剳绔強鎵嬫満绔摼鎺ヤ笉涓€鑷撮棶棰
var mobile_flag = isMobile();
if(mobile_flag){
$('#qqol_style_01_1583726788186 .qq-btn-pc').hide();
$('#qqol_style_01_1583726788186 .qq-btn-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_01_1583726788186 ===//
function remove_qqol_qqol_style_01_1583726788186(){
$('body > .online-service.qqol-qqol_style_01_1583726788186').remove();
}
// 鍒涘缓鍦ㄧ嚎瀹㈡湇
$(function () {
// 娓呯悊鏃х殑
remove_qqol_qqol_style_01_1583726788186();
// 鍒涘缓杈规爮
var sidebar = new Sidebar({
'template': 'online-template',
'css': 'qqol-qqol_style_01_1583726788186',
'expand': false,
'main': {'width':'170px', 'position': 'right'},
'border': {'color': '#2b55ff', 'width': '1px', 'radius': '10px'},
'button': {'color': '#fff', 'background-color': '#2b55ff', 'radius': '5px'},
'close': {'hide': true}
});
// 鐗囨妯℃澘
var qqOnlineStr = ''; // 鍥炬爣涓嶈兘鏄剧ず鏃? 鏇存崲QQ鍙风爜璁╁叾鏄剧ず
// 鍒涘缓鐗囨
Fragment.prototype.prefix = 'ol-';
// 鍒涘缓鐗囨鍒楄〃
var fragmentList = new FragmentList({
'prefix':'ol-',
'css':{'padding':'0 12px'}
});
fragmentList.append(new Fragment({
'name': 'text',
'html': '鏈嶅姟鐑嚎
',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name': 'text',
'html': '86-020-86038373
',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name':'separator',
'css':{'height':'2px', 'background-color':'#a0a0a0'}
}));
fragmentList.append(new Fragment({
'name': 'text',
'html': '鑱旂郴鏂瑰紡
',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name': 'text',
'html': '浼犵湡锛?86-20)36023289
',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name': 'text',
'html': '閭锛歡zbaiyuan@vip.sina.com
',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name': 'text',
'html': '鍦板潃锛氬箍宸炲競鐧戒簯鍖鸿殞婀栫櫧璞″箔宸ヤ笟鍥?/div>',
'css':{'margin':'.5em 0'}
}));
fragmentList.append(new Fragment({
'name': 'image',
'html': '
',
'css':{'margin':'.5em 0', 'text-align':'center'}
}));
// 娣诲姞鍒拌竟鏍
var list = fragmentList.get();
!list.children().length && list.html('
鍐呭鍒楄〃涓虹┖锛?/p>');
sidebar.append(list);
if(typeof($("img").lazyload)=="function"){
$("img").lazyload({effect: "fadeIn",threshold:0,failure_limit:20,skip_invisible:false});
}
});
//=== viewid:qqol_style_01_1583726788186 ===//
// 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟
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;
}