$(function(){
var w = $(window).width();
var h = $(window).height();
var nav_pic = $(".header .nav .ls .pos .list .pic").width();
$(".header .nav .ls .pos .list .pic").css("height", nav_pic * 0.5631);
var w1500 = $(".w1500").width();
$(".abo01 .swiper-container").css("width", w - ((w - w1500) * 0.5))
$(".abo01 .swiper-slide").css("width", (w - ((w - w1500) * 0.5)) * 0.8111);
$(".abo01 .swiper-slide .pic").css("height", (w - ((w - w1500) * 0.5)) * 0.8111 * 0.36);
$(".abo01 .next .chunk").css("width", (w - ((w - w1500) * 0.5)) * 0.1889);
var tame_w = $(".at_time").width();
$(".time_con_box").css("width", tame_w)
require(['swiper'], function (s) {
var a_swiper = new Swiper('#jianjie.swiper-container', {
slidesPerView: 'auto',
loop: true,
spaceBetween: 0,
pagination: {
el: '#jianjie .swiper-pagination',
clickable: true,
renderBullet: function(index, className) {
switch (index) {
case 0:
text = '闆嗗洟绠€浠?;
break;
case 1:
text = '鍏徃绠€浠?;
break;
}
return '
' + '
' + text + '
' + '
' + '
' + '
';
},
},
breakpoints: {
//褰撳搴﹀皬浜庣瓑浜?68
768: {
slidesPerView: 1,
spaceBetween: 20
},
//褰撳搴﹀皬浜庣瓑浜?024
1024: {
slidesPerView: 1,
spaceBetween: 30
}
},
initialSlide: 1,
}); });
require(['swiper'], function (s) {
var bswiper = new Swiper('#honor.swiper-container', {
pagination: {
el: '#honor .swiper-pagination',
clickable: true,
renderBullet: function(index, className) {
return '' + '0' + (index + 1) + '';
},
},
loop: false,
breakpoints: {
//褰撳搴﹀皬浜庣瓑浜?68
768: {
slidesPerView: 1,
spaceBetween: 20
},
//褰撳搴﹀皬浜庣瓑浜?024
1024: {
slidesPerView: 1,
spaceBetween: 30
}
}
});
});
$(".video_pic").click(function() {
$(".popub_video,.popub_video_bac").show();
$("video").trigger("play");
});
$(".popub_video .next i").click(function() {
$(".popub_video,.popub_video_bac").hide();
$("video").trigger("pause");
})
$(".abo04 .right .tab_col a").each(function(i) {
$(this).click(function() {
$(".abo04 .right .tab_col a").removeClass("other");
$(".abo04 .right .tab_col a").eq(i).addClass("other");
$(".abo04 .con").css({
"visibility": "hidden",
"opacity": "0"
}).addClass('vis');
$(".abo04 .con").eq(i).css({
"visibility": "visible",
"opacity": "1"
}).removeClass('vis');;
})
})
$(".abo04 .swiper-slide .tab_tit .lis").hover(function() {
var le = $(this).index();
$(this).siblings(".lis").removeClass("cur");
$(this).addClass("cur");
$(this).parent(".tab_tit").siblings(".tab_next").find(".text").css("display", "none");
$(this).parent(".tab_tit").siblings(".tab_next").find(".text").eq(le).css("display", "block");
})
if( w1500 <768){
$(".abo01 .swiper-slide .pic").css("height", (w - ((w - w1500) * 0.5)) * 0.8111 * 0.96);
}
})