//=== viewid:dh_style_28_1621237160112 ===//
/*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_1621237160112 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_1621237160112 ===//
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_1621237160112(){
$("#dh_style_28_1621237160112 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1621237160112();
})
$(function(){
$("#dh_style_28_1621237160112 .fa-navicon").click(function(){
$("#dh_style_28_1621237160112").addClass('clearTransform');
$("#dh_style_28_1621237160112 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1621237160112();
$("#dh_style_28_1621237160112 .subBox").css("top",$("#dh_style_28_1621237160112 .menuUl_box").height());
if($("#dh_style_28_1621237160112 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1621237160112 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1621237160112 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1621237160112 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1621237160112 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1621237160112 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1621237160112 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1621237160112 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1621237160112 .subBox").hide();
})
//风格41 42
}
})
var color = $('#dh_style_28_1621237160112 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1621237160112 .menuStyle_28').append(``);
$('#dh_style_28_1621237160112 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1621237160112 .menuStyle_28').append(``);
},100);
});
//=== viewid:dh_style_28_1622535781816 ===//
/*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_1622535781816 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_1622535781816 ===//
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_1622535781816(){
$("#dh_style_28_1622535781816 .menuUl>li").each(function(){
$(this).find(".menuUl03").css("left",'100%');
})
}
$(window).resize(function() {
subLeft_dh_style_28_1622535781816();
})
$(function(){
$("#dh_style_28_1622535781816 .fa-navicon").click(function(){
$("#dh_style_28_1622535781816").addClass('clearTransform');
$("#dh_style_28_1622535781816 .menuUlCopy").each(function(){
$(this).siblings(".fa").show();
})
})
subLeft_dh_style_28_1622535781816();
$("#dh_style_28_1622535781816 .subBox").css("top",$("#dh_style_28_1622535781816 .menuUl_box").height());
if($("#dh_style_28_1622535781816 .menuUl").hasClass("noHover")){
var tabNum = 0;
$("#dh_style_28_1622535781816 .menuUl>li").find(".Onsub").each(function(){
tabNum += 1;
$(this).parent().attr("tabNum",tabNum)
})
$("#dh_style_28_1622535781816 .menuUl>li .Onsub").mouseover(function(){
$("#dh_style_28_1622535781816 .subBox").show();
var index = $(this).parent().attr("tabNum");
$("#dh_style_28_1622535781816 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
$("#dh_style_28_1622535781816 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
})
$("#dh_style_28_1622535781816 .subBox").mouseleave(function(){
$(this).hide();
});
$("#dh_style_28_1622535781816 .menuUl>li .Nosub").mouseover(function(){
$("#dh_style_28_1622535781816 .subBox").hide();
})
//风格41 42
}
})
var color = $('#dh_style_28_1622535781816 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
$('#dh_style_28_1622535781816 .menuStyle_28').append(``);
$('#dh_style_28_1622535781816 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
let that = $(this);
setTimeout(function(){
var hoverColor = that.css('background-color');
$('#dh_style_28_1622535781816 .menuStyle_28').append(``);
},100);
});
//=== viewid:banner_style_01_1625639397948 ===//
//=== viewid:banner_style_01_1625639397948 ===//
$(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_1625639397948 .bannerStyle_1 .awesome-font").show().siblings().hide();
}else{
$("#banner_style_01_1625639397948 .bannerStyle_1 .awesome-font").hide().siblings().show();
}
}
});
//=== viewid:banner_style_01_1625639397948 ===//
/*
* 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: 如果没有传入参数, 则使用配置中的数据this.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 = 2;
$url_html[0] = "";
$url_html[1] = "";
$('#banner_style_01_1625639397948 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_1625639397948 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: 计算背景图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 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]+'")'});
});
};
// 更新正面/顶部/底部的图片
// index: 要显示哪张图片
// 备注: 因为总共有四个面的图片需要更新, 初始化时, 正面/顶部/底部的图片只需更新一次即可 (背部的图片在每次旋转前都需要更新)
Banner.prototype.updateFaceBottonTopImg = function(index) {
// face, bottom, top: 计算正面/顶部/底部图片当前显示在哪个img中( 总共有4个图片, 分别位于正面/底部/背部/顶部, 索引分别为0, 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; // 正面
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_1625639397948 = [];
list_banner_style_01_1625639397948.push('https://cdn.yun.sooce.cn/6/31577/jpg/1624085426937d2ac2f0cd4e8d439.jpg?imageMogr2/thumbnail/2142x&version=1624085450');list_banner_style_01_1625639397948.push('https://cdn.yun.sooce.cn/6/31577/jpg/1629182998610082a0bb5b73aaa6e.jpg?imageMogr2/thumbnail/2142x&version=0');
var banner_banner_style_01_1625639397948; // 轮播图对象
$(function(){
// 创建轮播图
$arrHref = new Array();
banner_banner_style_01_1625639397948 = new Banner({
'list':list_banner_style_01_1625639397948,
'view':$('#banner_style_01_1625639397948'),
'duration':parseFloat('4') * 1000,
'animation':parseFloat('2') * 1000
});
banner_banner_style_01_1625639397948.animateStyle = 'normal';
banner_banner_style_01_1625639397948.imgs = banner_banner_style_01_1625639397948.view.find(".bannerStyle_1 .main_image .img-list").children(".img-item");
banner_banner_style_01_1625639397948.view.find('a').each(function (i) {
$(this).click(function () {
if(!$(this).attr('href')) {
return false;
}
});
});
banner_banner_style_01_1625639397948.view.find('a.picSet').each(function(i){
$arrHref[i] = $(this).attr('href');
});
// 显示指定索引的图片
banner_banner_style_01_1625639397948.showIndex(banner_banner_style_01_1625639397948.config.current);
// 监听 点击圆点
banner_banner_style_01_1625639397948.config.flick.click(function(){
banner_banner_style_01_1625639397948.animateIndex($(this).index());
$('#banner_style_01_1625639397948 a.img_url').attr('href',$url_html[$(this).index()]);
$i = $(this).index();
return false;
});
// 监听 鼠标悬浮时
banner_banner_style_01_1625639397948.view.hover(
function(){
banner_banner_style_01_1625639397948.hoverEndAnimate();
banner_banner_style_01_1625639397948.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeIn();
},
function(){
clearInterval(intervaltimer);
banner_banner_style_01_1625639397948.config.timer = setTimeout(function(){
banner_banner_style_01_1625639397948.startAnimateRight();
},banner_banner_style_01_1625639397948.config.duration);
banner_banner_style_01_1625639397948.view.find(".bannerStyle_1 .btn_prev, .bannerStyle_1 .btn_next").fadeOut()
}
);
// 监听 点击左右按钮
banner_banner_style_01_1625639397948.view.find(".btn_prev").click(function() {
banner_banner_style_01_1625639397948.startAnimateLeft();
});
banner_banner_style_01_1625639397948.view.find(".btn_next").click(function() {
banner_banner_style_01_1625639397948.startAnimateRight();
});
// 监听 触摸事件
var touchVal = null;
document.addEventListener("touchstart", function(e){
if($(e.target).is(banner_banner_style_01_1625639397948.view) || $(e.target).closest("#"+banner_banner_style_01_1625639397948.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_1625639397948.startAnimateLeft(); // 触摸生效
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}else if(touchVal.moveX < -30){
banner_banner_style_01_1625639397948.startAnimateRight(); // 触摸生效
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnvalue = false;
}
}
}
touchVal = null;
}, false);
// 运行
banner_banner_style_01_1625639397948.config.timer = setTimeout(function(){
banner_banner_style_01_1625639397948.startAnimateRight();
}, banner_banner_style_01_1625639397948.config.duration);
});
//=== viewid:image_style_11_1626660572677,image_style_11_1626334997307 ===//
//=== viewid:image_style_11_1626334997296 ===//
var sys_url_image_style_11_1626334997296="viewid=image_style_11_1626334997296&name=image&style=style_11&langid=0&pageid=368131&viewCtrl=photo&father_width=61.3125%25";
//=== viewid:image_style_11_1626334997296 ===//
$(function(){
let obj = $("#image_style_11_1626334997296");
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:video_style_02_1622595704817 ===//
$(document).ready(function(){
});
//=== viewid:video_style_02_1622595704817 ===//
$(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_1622595704817").addEventListener("durationchange", androidShow());},300);
}else if(isiOS){
iosShow();
}
}
function androidShow(){
let $videovideo_style_02_1622595704817 = $("#myVideovideo_style_02_1622595704817");
setTimeout(function(){
$videovideo_style_02_1622595704817[0].play(true);
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
let time = 0;
let timer = setInterval(function(){
$videovideo_style_02_1622595704817[0].pause(true);
time++;
if($videovideo_style_02_1622595704817[0].paused && time>=6 ){
clearInterval(timer);
}
},100);
}
},50);
}
function iosShow(){
if (window.WeixinJSBridge) {
doPlayvideo_style_02_1622595704817();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1622595704817(); },50);
}
} else {
document.addEventListener("WeixinJSBridgeReady", function(){
doPlayvideo_style_02_1622595704817();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1622595704817(); },50);
}
}, false);
}
}
function doPlayvideo_style_02_1622595704817(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1622595704817 = $("#myVideovideo_style_02_1622595704817")
$videovideo_style_02_1622595704817[0].play(true)
})
}
function doPausevideo_style_02_1622595704817(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1622595704817 = $("#myVideovideo_style_02_1622595704817")
$videovideo_style_02_1622595704817[0].pause(true)
})
}
$("#myVideovideo_style_02_1622595704817")[0].addEventListener("play", function(){//播放事件
$("#myVideovideo_style_02_1622595704817")[0].setAttribute('poster', '');
});
})
//=== viewid:video_style_02_1622595704817 ===//
var video = $("#video_style_02_1622595704817 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_1620438591528 ===//
var sys_url_image_style_11_1620440638179="viewid=image_style_11_1620440638179&name=image&style=style_11&langid=0&pageid=368131&viewCtrl=photo";
//=== viewid:tab_style_03_1620438591528 ===//
$(function(){
let obj = $("#image_style_11_1620440638179");
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:tab_style_03_1620438591528 ===//
var sys_url_image_style_11_1620441569630="viewid=image_style_11_1620441569630&name=image&style=style_11&langid=0&pageid=368131&viewCtrl=photo";
//=== viewid:tab_style_03_1620438591528 ===//
$(function(){
let obj = $("#image_style_11_1620441569630");
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:tab_style_03_1620438591528 ===//
var sys_url_image_style_11_1620443500389="viewid=image_style_11_1620443500389&name=image&style=style_11&langid=0&pageid=368131&viewCtrl=photo";
//=== viewid:tab_style_03_1620438591528 ===//
$(function(){
let obj = $("#image_style_11_1620443500389");
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:tab_style_03_1620438591528 ===//
var sys_url_image_style_11_1620444356687="viewid=image_style_11_1620444356687&name=image&style=style_11&langid=0&pageid=368131&viewCtrl=photo";
//=== viewid:tab_style_03_1620438591528 ===//
$(function(){
let obj = $("#image_style_11_1620444356687");
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:tab_style_03_1620438591528 ===//
$(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_1622514239786").addEventListener("durationchange", androidShow());},300);
}else if(isiOS){
iosShow();
}
}
function androidShow(){
let $videovideo_style_02_1622514239786 = $("#myVideovideo_style_02_1622514239786");
setTimeout(function(){
$videovideo_style_02_1622514239786[0].play(true);
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
let time = 0;
let timer = setInterval(function(){
$videovideo_style_02_1622514239786[0].pause(true);
time++;
if($videovideo_style_02_1622514239786[0].paused && time>=6 ){
clearInterval(timer);
}
},100);
}
},50);
}
function iosShow(){
if (window.WeixinJSBridge) {
doPlayvideo_style_02_1622514239786();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1622514239786(); },50);
}
} else {
document.addEventListener("WeixinJSBridgeReady", function(){
doPlayvideo_style_02_1622514239786();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1622514239786(); },50);
}
}, false);
}
}
function doPlayvideo_style_02_1622514239786(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1622514239786 = $("#myVideovideo_style_02_1622514239786")
$videovideo_style_02_1622514239786[0].play(true)
})
}
function doPausevideo_style_02_1622514239786(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1622514239786 = $("#myVideovideo_style_02_1622514239786")
$videovideo_style_02_1622514239786[0].pause(true)
})
}
$("#myVideovideo_style_02_1622514239786")[0].addEventListener("play", function(){//播放事件
$("#myVideovideo_style_02_1622514239786")[0].setAttribute('poster', '');
});
})
//=== viewid:tab_style_03_1620438591528 ===//
var video = $("#video_style_02_1622514239786 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_1620438591528 ===//
$(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_1625638869276").addEventListener("durationchange", androidShow());},300);
}else if(isiOS){
iosShow();
}
}
function androidShow(){
let $videovideo_style_02_1625638869276 = $("#myVideovideo_style_02_1625638869276");
setTimeout(function(){
$videovideo_style_02_1625638869276[0].play(true);
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
let time = 0;
let timer = setInterval(function(){
$videovideo_style_02_1625638869276[0].pause(true);
time++;
if($videovideo_style_02_1625638869276[0].paused && time>=6 ){
clearInterval(timer);
}
},100);
}
},50);
}
function iosShow(){
if (window.WeixinJSBridge) {
doPlayvideo_style_02_1625638869276();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1625638869276(); },50);
}
} else {
document.addEventListener("WeixinJSBridgeReady", function(){
doPlayvideo_style_02_1625638869276();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1625638869276(); },50);
}
}, false);
}
}
function doPlayvideo_style_02_1625638869276(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1625638869276 = $("#myVideovideo_style_02_1625638869276")
$videovideo_style_02_1625638869276[0].play(true)
})
}
function doPausevideo_style_02_1625638869276(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1625638869276 = $("#myVideovideo_style_02_1625638869276")
$videovideo_style_02_1625638869276[0].pause(true)
})
}
$("#myVideovideo_style_02_1625638869276")[0].addEventListener("play", function(){//播放事件
$("#myVideovideo_style_02_1625638869276")[0].setAttribute('poster', '');
});
})
//=== viewid:tab_style_03_1620438591528 ===//
var video = $("#video_style_02_1625638869276 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_1620438591528 ===//
$(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_1625638892066").addEventListener("durationchange", androidShow());},300);
}else if(isiOS){
iosShow();
}
}
function androidShow(){
let $videovideo_style_02_1625638892066 = $("#myVideovideo_style_02_1625638892066");
setTimeout(function(){
$videovideo_style_02_1625638892066[0].play(true);
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
let time = 0;
let timer = setInterval(function(){
$videovideo_style_02_1625638892066[0].pause(true);
time++;
if($videovideo_style_02_1625638892066[0].paused && time>=6 ){
clearInterval(timer);
}
},100);
}
},50);
}
function iosShow(){
if (window.WeixinJSBridge) {
doPlayvideo_style_02_1625638892066();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1625638892066(); },50);
}
} else {
document.addEventListener("WeixinJSBridgeReady", function(){
doPlayvideo_style_02_1625638892066();
if('false' != 'true'){ //选择首帧做封面时候暂停,自动播放不用暂停
setTimeout(function(){ doPausevideo_style_02_1625638892066(); },50);
}
}, false);
}
}
function doPlayvideo_style_02_1625638892066(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1625638892066 = $("#myVideovideo_style_02_1625638892066")
$videovideo_style_02_1625638892066[0].play(true)
})
}
function doPausevideo_style_02_1625638892066(){
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
let $videovideo_style_02_1625638892066 = $("#myVideovideo_style_02_1625638892066")
$videovideo_style_02_1625638892066[0].pause(true)
})
}
$("#myVideovideo_style_02_1625638892066")[0].addEventListener("play", function(){//播放事件
$("#myVideovideo_style_02_1625638892066")[0].setAttribute('poster', '');
});
})
//=== viewid:tab_style_03_1620438591528 ===//
var video = $("#video_style_02_1625638892066 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_1620438591528 ===//
$(function(){
tab_style03_init("div_tab_style_03_1620438591528",5);
setClick_Choice("div_tab_style_03_1620438591528");
$("#tab_style_03_1620438591528 .tab_nav").show();
$("#tab_style_03_1620438591528 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''});
});
//=== viewid:tab_style_03_1620438591528,tab_style_03_1620366409316 ===//
//=== viewid:tab_style_03_1620366409316 ===//
//--
$(function(){
var viewid="newsList_style_25_1627349423128";
var sys_url="viewid=newsList_style_25_1627349423128&name=newsList&style=style_25&langid=0&pageid=368131&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_1627349423128;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1620366409316 ===//
//--
$(function(){
var viewid="newsList_style_25_1627349301821";
var sys_url="viewid=newsList_style_25_1627349301821&name=newsList&style=style_25&langid=0&pageid=368131&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_1627349301821;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:tab_style_03_1620366409316 ===//
$(function(){
tab_style03_init("div_tab_style_03_1620366409316",5);
setClick_Choice("div_tab_style_03_1620366409316");
$("#tab_style_03_1620366409316 .tab_nav").show();
$("#tab_style_03_1620366409316 .tab_box").css({top:'',bottom:'',right:'',left:'',height:'',width:''});
});
//=== viewid:newsList_style_18_1622097280623 ===//
//--
$(function(){
var viewid="newsList_style_18_1622097280623";
var sys_url="viewid=newsList_style_18_1622097280623&name=newsList&style=style_18&langid=0&pageid=368131&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_1622097280623;
}
}
RequestURL(viewid,sys_url,moreParams);
});
//--
//=== viewid:qqol_style_05_1621237503309 ===//
$('#qqol_style_05_1621237503309 .item_box.backup').click(function(){
$('html , body').animate({scrollTop: 0},'slow');
});
//=== viewid:qqol_style_05_1621237503309 ===//
//购物车
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=31577&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=31577&act=show&lang="+langid+"&v=9";
box.Show({width:'1000px', height:'600px'});
}
}
}
//判断是否是手机,用于处理QQ电脑端及手机端链接不一致问题
var mobile_flag = isMobile();
if(mobile_flag){
$('#qqol_style_05_1621237503309 .qq_pc').hide();
$('#qqol_style_05_1621237503309 .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_1621237503309 ===//
// 对输入内容中的尖括号、引号等进行转义
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:copyright_style_01_1621237503341 ===//
//=== viewid:text_html_new_1626415168040 ===//
document.write(unescape("%3Cspan id='cnzz_stat_icon_1255078914'%3E%3C/span%3E%3Cscript src='https://s11.cnzz.com/z_stat.php%3Fid%3D1255078914%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));