$(function() {
new Swiper(".slide-banner", {
speed: 1200,
loop: !0,
spaceBetween: 0,
parallax: !0,
autoplay: {
delay: 5E3,
stopOnLastSlide: !1,
disableOnInteraction: !1
},
pagination: {
el: ".banner .swiper-pagination",
clickable: !0
},
navigation: {
nextEl: ".banner .next",
prevEl: ".banner .prev"
}
});
var b = v_sh600875.split("~");
var c = v_hk01072.split("~");
//console.log(v_sh600875)
//console.log( v_hk01072)
$("#data1").text(b[3].substring(0,5));//鐜颁环 (鍏?
$("#data2").text(b[31]);//鍙樺姩
if(b[31]>0){
$(".plnews .data2,.plnews .data1").addClass('up')
}else if(b[31]<0){
$(".plnews .data2,.plnews .data1").addClass('down')
}else{
$(".plnews .data2,.plnews .data1").addClass('zero')
}
$("#data3").text(b[32]);//%鍙樺姩
$("#data4").text(b[4]);//鏄ㄦ敹
$("#data5").text(b[5]);//浠婂紑
$("#data6").text(b[33]);//鏈€楂
$("#data7").text(b[34]);//鏈€浣
var stime=b[30];
var syaer=stime.substring(0,4);
var smonth=stime.substring(4,6);
var sday=stime.substring(6,8);
var shour=stime.substring(8,10);
var smin=stime.substring(10,12);
var ssec=stime.substring(12,14);
$("#stime").html(""+syaer+'-'+smonth+'-'+sday+' '+shour+':'+smin+':'+ssec+"");
$("#hk1").text(c[3].substring(0,5));//鐜颁环 (娓竵)
$("#hk2").text(c[31]);//鍙樺姩
if(c[31]>0){
$(".plnews .hk2,.plnews .hk1").addClass('up');
}else if(c[31]<0){
$(".plnews .hk2,.plnews .hk1").addClass('down');
}else{
$(".plnews .hk2,.plnews .hk1").addClass('zero')
}
$("#hk3").text(c[32]);//%鍙樺姩
$("#hk4").text(c[4]);//鏄ㄦ敹
$("#hk5").text(c[5]);//浠婂紑
$("#hk6").text(c[33]);//鏈€楂
$("#hk7").text(c[34]);//鏈€浣
var hktime=c[30];
$("#hktime").html(""+hktime.replace(/\//g, "-")+"");
var l = new Swiper(".slide-tab", {
effect: "fade",
fadeEffect: {
crossFade: !0
},
speed: 800,
on: {
slideChangeTransitionStart: function() {
$(".plnews .aright .tabnav a").eq(this.realIndex).addClass("on").siblings().removeClass("on")
}
}
});
$(".plnews .aright .tabnav a").click(function() {
$(this).addClass("on").siblings().removeClass("on");
l.slideTo($(this).index())
});
var h = [];
$(".sico svg").each(function(c, e) {
c = $(this).attr("id");
h[c] = new Vivus(c, {
type: "delayed",
duration: 60,
start: "autostart",
inViewport: !0
})
});
$(".sico").mouseenter(function() {
h[$(this).find("svg").attr("id")].reset().play()
});
new Swiper(".slide-news", {
speed: 1200,
loop: !0,
spaceBetween: 0,
autoplay: {
delay: 4E3,
stopOnLastSlide: !1,
disableOnInteraction: !1
},
pagination: {
el: ".slide-news .swiper-pagination",
clickable: !0
}
});
new Swiper(".slide-news1", {
speed: 1200,
loop: !0,
spaceBetween: 5,
autoplay: {
delay: 5E3,
stopOnLastSlide: !1,
disableOnInteraction: !1
},
pagination: {
el: ".slide-news1 .swiper-pagination",
clickable: !0
}
});
a = new Swiper(".slideBpic", {
speed: 1E3,
loop: !0,
effect: "fade",
fadeEffect: {
crossFade: !0
}
});
b = new Swiper(".slideBtxt", {
speed: 1200,
loop: !0,
spaceBetween: 5,
navigation: {
prevEl: ".slideBtxtp .prev",
nextEl: ".slideBtxtp .next"
},
autoplay: {
delay: 5E3,
stopOnLastSlide: !1,
disableOnInteraction: !1
},
pagination: {
el: ".slideBtxtp .swiper-pagination",
clickable: !0,
type: "fraction"
}
});
a.controller.control = b;
b.controller.control = a;
d = new Swiper(".hd-slideTT", {
speed: 1E3,
loop: !0,
spaceBetween: 10,
watchSlidesVisibility: !0,
watchSlidesProgress: !0,
noSwiping: !0,
noSwipingClass: "no-swi"
});
var k = new Swiper(".hd-slide", {
slidesPerView: "auto",
slideToClickedSlide: !0,
watchSlidesProgress: !0,
loop: !0,
speed: 1E3,
navigation: {
prevEl: ".homec .prev",
nextEl: ".homec .next"
},
autoplay: {
delay: 4E3,
stopOnLastSlide: !1,
disableOnInteraction: !1
},
thumbs: {
swiper: d
},
on: {
progress: function(c) {
for (c = 0; c < this.slides.length; c++) {
var e = this.slides.eq(c),
g = this.slides[c].progress;
modify = 1;
1 < Math.abs(g) && (modify = .02 * (Math.abs(g) - 1) + 1);
translate = g * modify * 6.05 + "rem";
scale = 1 - Math.abs(g) / 5;
zIndex = 9 - Math.abs(Math.round(10 * g));
e.transform("translateX(" + translate + ") scale(" + scale + ")");
e.css("opacity", 1);
e.css({
zIndex: zIndex
});
5 < Math.round(Math.abs(g)) && e.css("opacity", 0)
}
},
setTransition: function(c) {
for (var e = 0; e < this.slides.length; e++) this.slides.eq(e).transition(c)
}
}
});
d.el.onmouseover = function() {
k.autoplay.stop()
};
d.el.onmouseout = function() {
k.autoplay.start()
};
a = new WOW({
boxClass: "uani",
animateClass: "animated",
offset: 0,
mobile: !1,
live: !0
});
/msie [6|7|8|9]/i.test(navigator.userAgent) || a.init();
$(".rightFixs").addClass("show");
});