//=== 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,video_style_02_1681184982194,video_style_02_1603843709494 ===//
$(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=299563&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,qqol_style_05_1605081629390 ===//
// 瀵硅緭鍏ュ唴瀹逛腑鐨勫皷鎷彿銆佸紩鍙风瓑杩涜杞箟
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:banner_style_01_1604715099967,banner_style_01_1605324711600,tab_style_03_1657758631131 ===//
//=== viewid:banner_style_01_1604715099967 ===//
$(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_1604715099967 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_01_1604715099967 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:banner_style_01_1604715099967 ===//
/*
* 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 = 3;
$url_html[0] = "";
$url_html[1] = "";
$url_html[2] = "";
$('#banner_style_01_1604715099967 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_1604715099967 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_1604715099967 = [];
list_banner_style_01_1604715099967.push('https://cdn.yun.sooce.cn/6/25415/jpg/170908592381160d31eb37595dd44584be5ef363283e3.jpg?imageMogr2/thumbnail/1920x&version=1709085926');list_banner_style_01_1604715099967.push('https://cdn.yun.sooce.cn/6/25415/jpg/1658556832531d249617d17170bc5.jpg?imageMogr2/thumbnail/1920x&version=0');list_banner_style_01_1604715099967.push('https://cdn.yun.sooce.cn/6/25415/jpg/1607155829394baf40ff51a327f1c.jpg?imageMogr2/thumbnail/1920x&version=0');
var banner_banner_style_01_1604715099967; // 杞挱鍥惧璞
$(function(){
// 鍒涘缓杞挱鍥
$arrHref = new Array();
banner_banner_style_01_1604715099967 = new Banner({
'list':list_banner_style_01_1604715099967,
'view':$('#banner_style_01_1604715099967'),
'duration':parseFloat('3') * 1000,
'animation':parseFloat('0.5') * 1000
});
banner_banner_style_01_1604715099967.animateStyle = 'normal';
banner_banner_style_01_1604715099967.imgs = banner_banner_style_01_1604715099967.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_01_1604715099967.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_01_1604715099967.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗
banner_banner_style_01_1604715099967.showIndex(banner_banner_style_01_1604715099967.config.current);
// 鐩戝惉 鐐瑰嚮鍦嗙偣
banner_banner_style_01_1604715099967.config.flick.click(function(){
banner_banner_style_01_1604715099967.animateIndex($(this).index());
$('#banner_style_01_1604715099967 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 鐩戝惉 榧犳爣鎮诞鏃
banner_banner_style_01_1604715099967.view.hover(
function(){
banner_banner_style_01_1604715099967.hoverEndAnimate();
banner_banner_style_01_1604715099967.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_01_1604715099967.config.timer = setTimeout(function(){
banner_banner_style_01_1604715099967.startAnimateRight();
},banner_banner_style_01_1604715099967.config.duration);
banner_banner_style_01_1604715099967.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳
banner_banner_style_01_1604715099967.view.find(".btn_prev").click(function() {
banner_banner_style_01_1604715099967.startAnimateLeft();
});
banner_banner_style_01_1604715099967.view.find(".btn_next").click(function() {
banner_banner_style_01_1604715099967.startAnimateRight();
});
// 鐩戝惉 瑙︽懜浜嬩欢
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_01_1604715099967.view) || $(e.target).closest("#"+banner_banner_style_01_1604715099967.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_1604715099967.startAnimateLeft(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_01_1604715099967.startAnimateRight(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 杩愯
banner_banner_style_01_1604715099967.config.timer = setTimeout(function(){
banner_banner_style_01_1604715099967.startAnimateRight();
}, banner_banner_style_01_1604715099967.config.duration);
});
//=== viewid:banner_style_01_1605324711600 ===//
$(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_1605324711600 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_01_1605324711600 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:banner_style_01_1605324711600 ===//
/*
* 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_1605324711600 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_1605324711600 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_1605324711600 = [];
list_banner_style_01_1605324711600.push('https://cdn.yun.sooce.cn/6/25415/jpg/1709085923794378732995a161631cc32f68b3aa5b2a8.jpg?imageMogr2/thumbnail/1800x&version=1709085926');list_banner_style_01_1605324711600.push('https://cdn.yun.sooce.cn/6/25415/jpg/1658556505348dca908f74cd27299.jpg?imageMogr2/thumbnail/1800x&version=0');list_banner_style_01_1605324711600.push('https://cdn.yun.sooce.cn/6/25415/jpg/160715486294012ee47094ebdb502.jpg?imageMogr2/thumbnail/1800x&version=0');list_banner_style_01_1605324711600.push('https://cdn.yun.sooce.cn/6/25415/jpg/16071548629311917d4be15afdfbe.jpg?imageMogr2/thumbnail/1800x&version=0');
var banner_banner_style_01_1605324711600; // 杞挱鍥惧璞
$(function(){
// 鍒涘缓杞挱鍥
$arrHref = new Array();
banner_banner_style_01_1605324711600 = new Banner({
'list':list_banner_style_01_1605324711600,
'view':$('#banner_style_01_1605324711600'),
'duration':parseFloat('3') * 1000,
'animation':parseFloat('0.5') * 1000
});
banner_banner_style_01_1605324711600.animateStyle = 'normal';
banner_banner_style_01_1605324711600.imgs = banner_banner_style_01_1605324711600.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_01_1605324711600.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_01_1605324711600.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗
banner_banner_style_01_1605324711600.showIndex(banner_banner_style_01_1605324711600.config.current);
// 鐩戝惉 鐐瑰嚮鍦嗙偣
banner_banner_style_01_1605324711600.config.flick.click(function(){
banner_banner_style_01_1605324711600.animateIndex($(this).index());
$('#banner_style_01_1605324711600 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 鐩戝惉 榧犳爣鎮诞鏃
banner_banner_style_01_1605324711600.view.hover(
function(){
banner_banner_style_01_1605324711600.hoverEndAnimate();
banner_banner_style_01_1605324711600.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_01_1605324711600.config.timer = setTimeout(function(){
banner_banner_style_01_1605324711600.startAnimateRight();
},banner_banner_style_01_1605324711600.config.duration);
banner_banner_style_01_1605324711600.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳
banner_banner_style_01_1605324711600.view.find(".btn_prev").click(function() {
banner_banner_style_01_1605324711600.startAnimateLeft();
});
banner_banner_style_01_1605324711600.view.find(".btn_next").click(function() {
banner_banner_style_01_1605324711600.startAnimateRight();
});
// 鐩戝惉 瑙︽懜浜嬩欢
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_01_1605324711600.view) || $(e.target).closest("#"+banner_banner_style_01_1605324711600.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_1605324711600.startAnimateLeft(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_01_1605324711600.startAnimateRight(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 杩愯
banner_banner_style_01_1605324711600.config.timer = setTimeout(function(){
banner_banner_style_01_1605324711600.startAnimateRight();
}, banner_banner_style_01_1605324711600.config.duration);
});
//=== viewid:counter_style_3_1657693016270 ===//
//--
$(function(){
var viewid="counter_style_3_1657693016270";
var sys_url="viewid=counter_style_3_1657693016270&name=counter&style=style_3&langid=0&pageid=299563&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.moreParamscounter_style_3_1657693016270;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:counter_style_3_1657693016270 ===//
$(function(){
if(!false){
function Timeing(config) {
this._default = {
'arrayObj':[], //鎬绘暟瀛
'arrayTimeObj':[], //姣?.1绉掗€掑鏁板瓧
'arrayIndexObj':[], //鍒濆鍊?
'arrayLockObj':[], //鏄惁璁$畻瀹屾垚锛屽畬鎴愬悗涓簍rue
'timeNum':30, //璁$畻鎵€闇€鏃堕棿锛岄粯璁や负3绉
'begin':new Date(), //寮€濮嬫椂闂达紝鐢ㄦ潵璁$畻鑰楁椂澶氬皯
'timer':undefined, //瀹氭椂鍣
'id':'', //瑙嗗浘id
'start':false //閬垮厤婊氬睆鏃堕噸澶嶈Е鍙戠敓鎴愯鏁板櫒
};
config = $.extend(true, this._default, config);
this.config = config;
this.init(config);
}
//鍒濆鍖栧悇鏁扮粍
Timeing.prototype.init = function(config) {
var _this = this;
$('#'+_this.config.id+' .numberLi').each(function(i){
_this.config.arrayObj.push($(this).find('.num').html());
_this.config.arrayTimeObj.push($(this).find('.num').html()/_this.config.timeNum);
_this.config.arrayIndexObj.push(0);
_this.config.arrayLockObj.push(false);
$(this).find('.num').html(0);
});
}
//瑙勫畾鏃堕棿璁$畻瀹屾暟瀛
Timeing.prototype.getNumFun = function(config){
var _this = this;
let time_in = new Date().getTime();
let time_in_id = new Date().getTime()+'counter_style_3_1657693016270';
let setIntervalTime = 0;
if (!_this.config.arrayLockObj.every(item => {return item})) {
window.counterTimer[time_in_id] = setInterval(function () {
for(let key in window.counterTimer){
let keyArr = key.split('counter');
let modelId = 'counter'+keyArr[1];
if(modelId == 'counter_style_3_1657693016270' && keyArr[0] > time_in){
clearInterval(window.counterTimer[key]);
}
}
for (var i = 0; i < _this.config.arrayObj.length; i++) {
if(_this.config.arrayLockObj[i]){
continue
}
_this.config.arrayIndexObj[i] += _this.config.arrayTimeObj[i];
if (Math.abs(_this.config.arrayIndexObj[i]) < Math.abs(_this.config.arrayObj[i])) {
$('#'+_this.config.id+' .numberLi').eq(i).find('.num').html(Math.ceil(_this.config.arrayIndexObj[i]));
}
if (Math.abs(_this.config.arrayIndexObj[i]) - Math.abs(_this.config.arrayObj[i]) >= 0) {
//console.info(_this.config.arrayIndexObj[i],_this.config.arrayTimeObj[i],new Date()-_this.config.begin);//璁$畻鏃堕棿
$('#'+_this.config.id+' .numberLi').eq(i).find('.num').html(_this.config.arrayObj[i]);
_this.config.arrayLockObj[i] = true;
}
}
if (_this.config.arrayLockObj.every(item => {return item}) && window.counterTimer) {
clearInterval(window.counterTimer[time_in_id]);
}
}, 100);
}
}
//缁戝畾婊氬姩浜嬩欢瑙﹀彂锛岃繘鍏ュ彲瑙嗚寖鍥村悗寮€濮嬭鏁板姛鑳
Timeing.prototype.bindLoad = function(config){
var _this = this;
if(($(window).height() + $(window).scrollTop()) > $("#"+_this.config.id).offset().top) {
_this.getNumFun();
}
$("#"+_this.config.id).one("appear", function() {
_this.getNumFun();
});
let fullpageObj = $("#"+_this.config.id).parents('.fullpage_div');
if(fullpageObj &&fullpageObj.length>0 && !fullpageObj.hasClass('active')){ //瀛樺湪浜庢粴灞忛〉闈㈠苟涓斾笉鏄涓€灞
if(!_this.config.start){ //娌″紑濮嬭繃
// 婊氬睆--榧犳爣婊氬姩鏃
$(window).on("mousewheel DOMMouseScroll", function (e) {
var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
(e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox
if(fullpageObj.hasClass('active')){ _this.triggerScroll(); }
})
// 婊氬睆--榧犳爣鐐瑰嚮鍒囨崲鏃
$("#fp-nav>ul>li").click(function(){
console.log('鐐瑰嚮鐐瑰嚮');
setTimeout(function(){
if(fullpageObj.hasClass('active')){ _this.triggerScroll(); }
},50);
});
// 婊氬睆--鎵嬫満婊戝姩
$('body').on('touchmove',function(){
if(fullpageObj.hasClass('active')){ _this.triggerScroll(); }
});
}
}
$(window).bind("scroll", function(event) {
var fold;
if(!_this.config.start){
fold = $(window).height() + $(window).scrollTop();
if(fold >= $("#"+_this.config.id).offset().top) {
_this.triggerScroll();
}
}
});
}
//婊氬睆瑙﹀彂浜嬩欢
Timeing.prototype.triggerScroll = function(config){
var _this = this;
_this.config.begin = new Date();
_this.config.start = true;
_this.getNumFun();
}
var timeingcounter_style_3_1657693016270 = new Timeing({
'timeNum':20,
'id':'counter_style_3_1657693016270'});
timeingcounter_style_3_1657693016270.init();
timeingcounter_style_3_1657693016270.bindLoad();
}
});
//=== viewid:video_style_02_1603843709494 ===//
$(function(){
if('false' == 'true' || '0' == '1'){ //鑷姩鎾斁鎴栭€夋嫨棣栧抚鍋氬皝闈
let u = navigator.userAgent;
let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios
if(isAndroid){
setTimeout(function(){ document.getElementById("myVideovideo_style_02_1603843709494").addEventListener("durationchange", androidShow());},300);
}else if(isiOS){
iosShow();
}
}
function androidShow(){
let $videovideo_style_02_1603843709494 = $("#myVideovideo_style_02_1603843709494");
setTimeout(function(){
$videovideo_style_02_1603843709494[0].play(true);
if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠
let time = 0;
let timer = setInterval(function(){
$videovideo_style_02_1603843709494[0].pause(true);
time++;
if($videovideo_style_02_1603843709494[0].paused && time>=6 ){
clearInterval(timer);
}
},100);
}
},50);
}
function iosShow(){
if (window.WeixinJSBridge) {
doPlayvideo_style_02_1603843709494();
if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠
setTimeout(function(){ doPausevideo_style_02_1603843709494(); },50);
}
} else {
document.addEventListener("WeixinJSBridgeReady", function(){
doPlayvideo_style_02_1603843709494();
if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠
setTimeout(function(){ doPausevideo_style_02_1603843709494(); },50);
}
}, false);
}
}
function doPlayvideo_style_02_1603843709494(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1603843709494 = $("#myVideovideo_style_02_1603843709494")
$videovideo_style_02_1603843709494[0].play(true)
})
}
function doPausevideo_style_02_1603843709494(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1603843709494 = $("#myVideovideo_style_02_1603843709494")
$videovideo_style_02_1603843709494[0].pause(true)
})
}
$("#myVideovideo_style_02_1603843709494")[0].addEventListener("play", function(){//鎾斁浜嬩欢
$("#myVideovideo_style_02_1603843709494")[0].setAttribute('poster', '');
});
})
//=== viewid:video_style_02_1603843709494 ===//
var video = $("#video_style_02_1603843709494 video")[0];
if(video) {
video.addEventListener('playing',function(){
var this1 = this;
this1.play();
for(var j=$('video').length-1; j>=0; j--) {
var this2 = $('video')[j];
if(this1 !== this2) {
this2.pause();
}
}
});
}
//=== viewid:tab_style_03_1657758631131 ===//
$(function(){
tab_style03_init("div_tab_style_03_1657758631131",5);
setHover_Choice("div_tab_style_03_1657758631131");
$("#tab_style_03_1657758631131 .tab_nav").show();
$("#tab_style_03_1657758631131 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''});
});
//=== viewid:tab_style_03_1657961927284,tab_style_03_1657758631131,tab_style_03_1657848889056 ===//
//=== viewid:tab_style_03_1657758631131 ===//
$(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_06_1657761726215 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_06_1657761726215 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:tab_style_03_1657758631131 ===//
$(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_1657765335292 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_01_1657765335292 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:tab_style_03_1657758631131 ===//
/*
* 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 = 6;
$url_html[0] = "";
$url_html[1] = "";
$url_html[2] = "";
$url_html[3] = "";
$url_html[4] = "";
$url_html[5] = "";
$('#banner_style_06_1657761726215 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_06_1657761726215 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_06_1657761726215 = [];
list_banner_style_06_1657761726215.push('/sytp/yhg.jpg');list_banner_style_06_1657761726215.push('/sytp/yhl.jpg');list_banner_style_06_1657761726215.push('/sytp/thg.jpg');list_banner_style_06_1657761726215.push('/sytp/dhg.jpg');list_banner_style_06_1657761726215.push('/sytp/mg.jpg');list_banner_style_06_1657761726215.push('/sytp/lg.jpg');
var banner_banner_style_06_1657761726215; // 杞挱鍥惧璞
$(function(){
// 鍒涘缓杞挱鍥
$arrHref = new Array();
banner_banner_style_06_1657761726215 = new Banner({
'list':list_banner_style_06_1657761726215,
'view':$('#banner_style_06_1657761726215'),
'duration':parseFloat('3') * 1000,
'animation':parseFloat('0.5') * 1000
});
banner_banner_style_06_1657761726215.animateStyle = 'normal';
banner_banner_style_06_1657761726215.imgs = banner_banner_style_06_1657761726215.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_06_1657761726215.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_06_1657761726215.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗
banner_banner_style_06_1657761726215.showIndex(banner_banner_style_06_1657761726215.config.current);
// 鐩戝惉 鐐瑰嚮鍦嗙偣
banner_banner_style_06_1657761726215.config.flick.click(function(){
banner_banner_style_06_1657761726215.animateIndex($(this).index());
$('#banner_style_06_1657761726215 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 鐩戝惉 榧犳爣鎮诞鏃
banner_banner_style_06_1657761726215.view.hover(
function(){
banner_banner_style_06_1657761726215.hoverEndAnimate();
banner_banner_style_06_1657761726215.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_06_1657761726215.config.timer = setTimeout(function(){
banner_banner_style_06_1657761726215.startAnimateRight();
},banner_banner_style_06_1657761726215.config.duration);
banner_banner_style_06_1657761726215.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳
banner_banner_style_06_1657761726215.view.find(".btn_prev").click(function() {
banner_banner_style_06_1657761726215.startAnimateLeft();
});
banner_banner_style_06_1657761726215.view.find(".btn_next").click(function() {
banner_banner_style_06_1657761726215.startAnimateRight();
});
// 鐩戝惉 瑙︽懜浜嬩欢
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_06_1657761726215.view) || $(e.target).closest("#"+banner_banner_style_06_1657761726215.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_06_1657761726215.startAnimateLeft(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_06_1657761726215.startAnimateRight(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 杩愯
banner_banner_style_06_1657761726215.config.timer = setTimeout(function(){
banner_banner_style_06_1657761726215.startAnimateRight();
}, banner_banner_style_06_1657761726215.config.duration);
});
//=== viewid:tab_style_03_1657758631131 ===//
/*
* 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_1657765335292 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_1657765335292 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_1657765335292 = [];
list_banner_style_01_1657765335292.push('/sytp/wg1.jpg');list_banner_style_01_1657765335292.push('/sytp/zg.jpg');list_banner_style_01_1657765335292.push('/sytp/mj.jpg');list_banner_style_01_1657765335292.push('/sytp/s1.jpg');
var banner_banner_style_01_1657765335292; // 杞挱鍥惧璞
$(function(){
// 鍒涘缓杞挱鍥
$arrHref = new Array();
banner_banner_style_01_1657765335292 = new Banner({
'list':list_banner_style_01_1657765335292,
'view':$('#banner_style_01_1657765335292'),
'duration':parseFloat('3') * 1000,
'animation':parseFloat('0.5') * 1000
});
banner_banner_style_01_1657765335292.animateStyle = 'normal';
banner_banner_style_01_1657765335292.imgs = banner_banner_style_01_1657765335292.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_01_1657765335292.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_01_1657765335292.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 鏄剧ず鎸囧畾绱㈠紩鐨勫浘鐗
banner_banner_style_01_1657765335292.showIndex(banner_banner_style_01_1657765335292.config.current);
// 鐩戝惉 鐐瑰嚮鍦嗙偣
banner_banner_style_01_1657765335292.config.flick.click(function(){
banner_banner_style_01_1657765335292.animateIndex($(this).index());
$('#banner_style_01_1657765335292 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 鐩戝惉 榧犳爣鎮诞鏃
banner_banner_style_01_1657765335292.view.hover(
function(){
banner_banner_style_01_1657765335292.hoverEndAnimate();
banner_banner_style_01_1657765335292.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_01_1657765335292.config.timer = setTimeout(function(){
banner_banner_style_01_1657765335292.startAnimateRight();
},banner_banner_style_01_1657765335292.config.duration);
banner_banner_style_01_1657765335292.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 鐩戝惉 鐐瑰嚮宸﹀彸鎸夐挳
banner_banner_style_01_1657765335292.view.find(".btn_prev").click(function() {
banner_banner_style_01_1657765335292.startAnimateLeft();
});
banner_banner_style_01_1657765335292.view.find(".btn_next").click(function() {
banner_banner_style_01_1657765335292.startAnimateRight();
});
// 鐩戝惉 瑙︽懜浜嬩欢
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_01_1657765335292.view) || $(e.target).closest("#"+banner_banner_style_01_1657765335292.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_1657765335292.startAnimateLeft(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_01_1657765335292.startAnimateRight(); // 瑙︽懜鐢熸晥
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 杩愯
banner_banner_style_01_1657765335292.config.timer = setTimeout(function(){
banner_banner_style_01_1657765335292.startAnimateRight();
}, banner_banner_style_01_1657765335292.config.duration);
});
//=== viewid:newsList_style_18_1657788259864 ===//
//--
$(function(){
var viewid="newsList_style_18_1657788259864";
var sys_url="viewid=newsList_style_18_1657788259864&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657788259864;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_18_1657788542682 ===//
//--
$(function(){
var viewid="newsList_style_18_1657788542682";
var sys_url="viewid=newsList_style_18_1657788542682&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657788542682;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:newsList_style_18_1657788549628 ===//
//--
$(function(){
var viewid="newsList_style_18_1657788549628";
var sys_url="viewid=newsList_style_18_1657788549628&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657788549628;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1657848889056 ===//
//--
$(function(){
var viewid="newsList_style_18_1657849542413";
var sys_url="viewid=newsList_style_18_1657849542413&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657849542413;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1657848889056 ===//
//--
$(function(){
var viewid="newsList_style_18_1657849774833";
var sys_url="viewid=newsList_style_18_1657849774833&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657849774833;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1657848889056 ===//
//--
$(function(){
var viewid="newsList_style_18_1657849881586";
var sys_url="viewid=newsList_style_18_1657849881586&name=newsList&style=style_18&langid=0&pageid=299563&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_18_1657849881586;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1657848889056 ===//
$(function(){
tab_style03_init("div_tab_style_03_1657848889056",5);
setHover_Choice("div_tab_style_03_1657848889056");
$("#tab_style_03_1657848889056 .tab_nav").show();
$("#tab_style_03_1657848889056 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''});
});
//=== viewid:qqol_style_05_1605081629390 ===//
$('#qqol_style_05_1605081629390 .item_box.backup').click(function(){
$('html , body').animate({scrollTop: 0},'slow');
});
//=== viewid:qqol_style_05_1605081629390 ===//
//璐墿杞
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_1605081629390 .qq_pc').hide();
$('#qqol_style_05_1605081629390 .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: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 = "