/*
* JS鍩虹澶勭悊妗嗘灦
* -- 鎻愬€′簰鑱旂綉鍏变韩,鍚屾椂搴斿皧閲嶅師鍒涗綔鑰?缃戠珯鍒朵綔灞濟 鐖变紒浜 -- *
* @company: iqweb
* @author: jack
* timer: 2023骞
* Tel锛?8565633435
* QQ锛?97232289
* WeChat锛?8565633435
*/
var IqwXiongJs = {
Width: $(window).width(),
Height: $(window).height(),
//閿氱偣璺濈
maoNumber: 0,
//鏁板瓧婊氬姩鍒ゆ柇
NumberIf: true,
FootNumberIf: true,
Number: [],
//鏈夐敋鐐规墠鍚搁《
maoTop: false,
bannerAnimation: 'AddFadeInUp',
EffectAnimate: 'fade',
//婊氬姩鏉
MyScroll: null,
//鍔犺浇
ImagesLoad: 0,
SvgTimeOver: null,
SvgTime: 0,
ImgArray: [],
allImages: [],
//澧炲姞
IndexPageTab: null,
IndexBannerPicTab: null,
BannerTab: null,
WapNavIF: true,
IndexProductPhotoTab: null,
IndexProductDetailsTab: null,
IndexMapDetailsTab: null,
IndexMapBtnTab: null,
IndexCustomersPrevTab: null,
IndexCustomersNextTab: null,
AboutLayoutTab: null,
AboutLayoutPaginationTab: null,
InnovationPageTab: null,
ProContentTab: null,
ProBigTab: null,
ProMaxTab: null,
AdvertisingScroll: 0,
AboutLayoutLength: 0,
AboutLayoutPicTab: [],
IndexProIf: true,
IndexMapIf: true,
AboutLayoutIf: true,
ProPageIf: true,
//EventKey: "ontouchstart" in document.documentElement ? "touchstart" : "click",
Init: function () {
var that = this;
that.HtmlInit();
},
//浜嬩欢
AddEventList: function () {
var that = this;
// console.log($(".introduce_head_back path").get(0).getTotalLength());
function return_false() {
return false;
}
$('#top').on('click', function (e) {
e.preventDefault();
that.ReturnTop();
});
$('.index_banner_pagination_item').on('click', function () {
that.IndexPageTab.slideTo($(this).index() + 1);
});
if (that.Width > 1200) {
$('.about_culture_item_box').hover(function () {
$('.about_culture_item_box').eq($(this).index()).addClass('about_culture_item_active').siblings().removeClass('about_culture_item_active');
});
} else {
$('.about_culture_item_box').on('click', function () {
$('.about_culture_item_box').eq($(this).index()).addClass('about_culture_item_active').siblings().removeClass('about_culture_item_active');
$('.about_wap_item_box').eq($(this).index()).addClass('about_wap_item_active').siblings().removeClass('about_wap_item_active');
});
}
$('.pro_nav_wrap .pro_nav_item_box').on('click', function () {
console.log($(this).index());
$('.pro_nav_wrap .pro_nav_item_box').eq($(this).index()).addClass('pro_nav_item_active').siblings().removeClass('pro_nav_item_active');
that.ProBigTab.slideTo($(this).index());
});
$('.pro_show_wrap .pro_nav_item_box').on('click', function () {
console.log($(this).index());
$('.pro_show_wrap .pro_nav_item_box').eq($(this).index()).addClass('pro_nav_item_active').siblings().removeClass('pro_nav_item_active');
that.ProBigTab.slideTo($(this).index());
});
$('.pro_head_pagination_item').on('click', function () {
that.ProHeadTab.slideTo($(this).index() + 1);
});
$('.pro_details_pagination_item').on('click', function () {
that.ProDetailsTab.slideTo($(this).index());
});
$('.video_item_photo').on('click', function (e) {
e.preventDefault();
$('.video_popup_wrap').addClass('video_popup_show');
console.log($(this).attr('data-url'));
$('.video_popup_content video').attr('src', $(this).attr('data-url')).trigger('play');
});
$('.video_popup_btn').on('click', function (e) {
e.preventDefault();
$('.video_popup_wrap').removeClass('video_popup_show');
$('.video_popup_content video').trigger('pause');
});
setTimeout(function () {
$('.BMap_Marker').append('
' +
'
' +
'
' +
'
' +
'
' +
'
');
}, 100);
// if ($('.public_banner_wrap').length > 0 && that.Width>1200) {
// setTimeout(function () {
// var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
// $(document.body).animate({
// scrollTop: $('.public_banner_wrap').height() - $('.header_after').height()
// }, 700);
// $('html').animate({
// scrollTop: $('.public_banner_wrap').height() - $('.header_after').height()
// }, 700);
// }, 2000)
// }
},
IndexBannerSwiper: function () {
var that = this;
var TouchMove = false;
if (that.Width < 1200) {
TouchMove = true;
}
setTimeout(function () {
that.IndexPageTab = new Swiper(".index_banner_box", {
effect: 'fade',
initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loop: true,
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
on: {
slideChangeTransitionStart: function () {
that.IndexBannerPicTab.slideTo(this.realIndex);
$('.index_banner_pagination_item').eq(this.realIndex).addClass('index_banner_pagination_active').siblings().removeClass('index_banner_pagination_active');
}
}
});
}, 500)
},
IndexBannerPicSwiper: function () {
var that = this;
var TouchMove = false;
setTimeout(function () {
that.IndexBannerPicTab = new Swiper(".index_banner_pic", {
effect: 'fade',
initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
// loop: true,
});
}, 500)
},
IndexProductDetailsSwiper: function () {
var that = this;
var TouchMove = false;
that.IndexProductDetailsTab = new Swiper(".index_product_details_swiper", {
effect: 'fade',
initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loop: true,
});
},
IndexProductPhotoSwiper: function () {
var that = this;
var TouchMove = false;
that.IndexProductPhotoTab = new Swiper(".index_product_photo_swiper", {
initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loop: true,
loopedSlides: $('.index_product_photo_swiper .swiper-slide').length,
on: {
init: function () {
if (this.loopedSlides >= 10) {
$('.index_product_photo_default').html(this.loopedSlides);
} else {
$('.index_product_photo_default').html('0' + this.loopedSlides);
}
for (var i = 0; i < this.loopedSlides; i++) {
$('.index_product_pagination_box').append('');
}
$('.index_product_pagination_item').eq(0).addClass('index_product_pagination_active');
$('.index_product_pagination_item').on('click', function () {
that.IndexProductPhotoTab.slideTo($(this).index());
});
},
slideChangeTransitionStart: function () {
that.IndexProductDetailsTab.slideTo(this.realIndex);
$('.index_product_pagination_item').removeClass('index_product_pagination_active').eq(this.realIndex).addClass('index_product_pagination_active');
if (parseInt(this.realIndex + 1) >= 10) {
$('.index_product_photo_current').html(parseInt(this.realIndex + 1));
} else {
$('.index_product_photo_current').html('0' + parseInt(this.realIndex + 1));
}
}
}
});
},
IndexMapDetailsSwiper: function () {
var that = this;
var TouchMove = false;
that.IndexMapDetailsTab = new Swiper(".index_map_details_swiper", {
effect: 'fade',
initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loop: true,
});
},
IndexMapBtnSwiper: function () {
var that = this;
var aSpaceBetween = 0;
var aDirection = 'vertical';
var aAllowTouchMove = false;
var aSlidesPerView = 5;
if (that.Width < 1200) {
aDirection = 'horizontal';
aAllowTouchMove = true;
aSlidesPerView = 3;
aSpaceBetween = that.Width * 0.03623188;
}
that.IndexMapBtnTab = new Swiper(".index_map_swiper", {
direction: aDirection,
// initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
centeredSlides: true,
slideToClickedSlide: true,
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: aAllowTouchMove,
loop: true,
loopedSlides: $('.index_map_swiper .swiper-slide').length,
on: {
slideChangeTransitionStart: function () {
that.IndexMapDetailsTab.slideTo(this.realIndex + 1);
}
}
});
},
IndexCustomersPrevSwiper: function () {
var that = this;
var aSlidesPerView = 6;
var aSpaceBetween = that.Width * 0.030208333;
var TouchMove = false;
if (that.Width < 1200) {
aSlidesPerView = 2.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.index_customers_prev_swiper').length > 0) {
that.IndexCustomersPrevTab = new Swiper(".index_customers_prev_swiper", {
centeredSlides: true,
loop: true,
//鍒囨崲鏃堕棿
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
speed: 7000,//鍖€閫熸椂闂
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
autoplay: {
delay: 0,
stopOnLastSlide: false,
disableOnInteraction: false,
// pauseOnMouseEnter: true,
},
});
}
},
IndexCustomersNextSwiper: function () {
var that = this;
var aSlidesPerView = 6;
var aSpaceBetween = that.Width * 0.030208333;
var TouchMove = false;
if (that.Width < 1200) {
aSlidesPerView = 2.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.index_customers_next_swiper').length > 0) {
that.IndexCustomersNextTab = new Swiper(".index_customers_next_swiper", {
centeredSlides: true,
loop: true,
//鍒囨崲鏃堕棿
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
speed: 7000,//鍖€閫熸椂闂
autoplay: {
delay: 0,
stopOnLastSlide: false,
disableOnInteraction: false,
reverseDirection: true,
// pauseOnMouseEnter: true,
},
});
}
},
IndexNewsSwiper: function () {
var that = this;
var aSlidesPerView = 3;
var aSpaceBetween = that.Width * 0.026041666;
var TouchMove = false;
if ($('.index_news_swiper').length > 0 && that.Width > 1200) {
that.IndexNewsTab = new Swiper(".index_news_swiper", {
speed: 800,
loop: true,
//鍒囨崲鏃堕棿
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
navigation: {
nextEl: ".index_news_pagination_next",
prevEl: ".index_news_pagination_prev",
},
});
}
},
AboutLayoutSwiper: function () {
var that = this;
var TouchMove = false;
if ($('.about_layout_tab').length > 0) {
that.AboutLayoutTab = new Swiper(".about_layout_tab", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loopedSlides: $('.about_layout_tab .layout_tab_slide').length,
on: {
init: function () {
that.AboutLayoutLength = this.loopedSlides;
}
}
});
}
},
AboutLayoutPicSwiper: function () {
var that = this;
var TouchMove = false;
// console.log(that.AboutLayoutLength);
for (var i = 0; i < that.AboutLayoutLength; i++) {
that.AboutLayoutPicTab.push(
'AboutPicTab' + (i + 1)
)
// console.log(that.AboutLayoutPicTab);
console.log(i + 1);
that.AboutLayoutPicTab[i] = new Swiper(".about_layout_pic" + (i + 1), {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
pagination: {
el: ".about_layout_pic" + (i + 1) + " .about_layout_pagination_pic",
clickable: true,
},
});
}
},
AboutLayoutContentSwiper: function () {
var that = this;
var TouchMove = false;
if ($('.about_layout_swiper').length > 0) {
that.AboutLayoutContentTab = new Swiper(".about_layout_swiper", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
on: {
slideChangeTransitionStart: function () {
that.AboutLayoutTab.slideTo(this.realIndex);
}
}
});
}
},
AboutLayoutPaginationSwiper: function () {
var that = this;
var aSpaceBetween = that.Width * 0.023958333;
var aSlidesPerView = 3;
that.AboutLayoutPaginationTab = new Swiper(".about_layout_pagination_swiper", {
direction: 'vertical',
// initialSlide: 0,
//鍒囨崲鏃堕棿
speed: 800,
slidesPerView: aSlidesPerView,
// spaceBetween : aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
centeredSlides: true,
slideToClickedSlide: true,
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
loop: true,
// loopedSlides: $('.index_map_swiper .swiper-slide').length,
on: {
slideChangeTransitionStart: function () {
that.AboutLayoutContentTab.slideTo(this.realIndex + 1);
}
}
});
},
InnovationPageSwiper: function () {
var that = this;
var aSpaceBetween = that.Width * 0.0208333;
var aSlidesPerView = 3.4;
if (that.Width < 1200) {
aSlidesPerView = 1.4;
}
that.InnovationPageTab = new Swiper(".innovation_page_swiper", {
//鍒囨崲鏃堕棿
speed: 800,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: false,
// loop: true,
mousewheel: true,
pagination: {
el: ".innovation_pagination_box",
type: "progressbar",
},
});
},
DutyListSwiper: function () {
var that = this;
var aSpaceBetween = that.Width * 0.01875;
var aSlidesPerView = 5;
if (that.Width < 1200) {
aSlidesPerView = 2.5;
}
that.DutyListTab = new Swiper(".duty_list_swiper", {
//鍒囨崲鏃堕棿
speed: 800,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
// loop: true,
});
},
ProContentSwiper0: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper0').length > 0) {
that.ProContentTab0 = new Swiper(".pro_content_swiper0", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper0: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper0').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper0", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper0 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box0 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box0 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box0 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab0.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper1: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper1').length > 0) {
that.ProContentTab1 = new Swiper(".pro_content_swiper1", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper1: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper1').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper1", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper1 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box1 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box1 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box1 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab1.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper2: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper2').length > 0) {
that.ProContentTab2 = new Swiper(".pro_content_swiper2", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper2: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper2').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper2", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper2 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box2 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box2 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box2 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab2.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper3: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper3').length > 0) {
that.ProContentTab3 = new Swiper(".pro_content_swiper3", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper3: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper3').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper3", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper3 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box3 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box3 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box3 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab3.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper4: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper4').length > 0) {
that.ProContentTab4 = new Swiper(".pro_content_swiper4", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper4: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper4').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper4", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper4 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box4 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box4 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box4 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab4.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper5: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper5').length > 0) {
that.ProContentTab5 = new Swiper(".pro_content_swiper5", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper5: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper5').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper5", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper5 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box5 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box5 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box5 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab5.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper6: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper6').length > 0) {
that.ProContentTab6 = new Swiper(".pro_content_swiper6", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper6: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView =1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper6').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper6", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper6 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box6 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box6 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box6 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab6.slideTo(this.realIndex + 1);
}
}
});
}
},
ProContentSwiper7: function () {
var that = this;
var TouchMove = false;
if ($('.pro_content_swiper7').length > 0) {
that.ProContentTab7 = new Swiper(".pro_content_swiper7", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
});
}
},
ProMaxSwiper7: function () {
var that = this;
var TouchMove = false;
var aSpaceBetween = 0;
var aSlidesPerView = 1;
var aDirection = "vertical";
if (that.Width < 1200) {
aDirection = 'horizontal';
aSlidesPerView = 1.5;
aSpaceBetween = that.Width * 0.048309;
}
if ($('.pro_max_swiper7').length > 0) {
that.ProMaxTab = new Swiper(".pro_max_swiper7", {
direction: aDirection,
speed: 800,
loop: true,
centeredSlides: true,
slidesPerView: aSlidesPerView,
spaceBetween: aSpaceBetween,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
grabCursor: true,
//绂佹鎵嬫寚婊戝姩
// allowTouchMove: TouchMove,
mousewheel: true,
loopedSlides: $('.pro_max_swiper7 .swiper-slide').length,
on: {
init: function () {
$('.pro_max_pagination_box7 .pro_max_pagination_current').html('01');
$('.pro_max_pagination_box7 .pro_max_pagination_default').html('0' + this.loopedSlides);
},
slideChangeTransitionStart: function () {
$('.pro_max_pagination_box7 .pro_max_pagination_current').html('0' + (this.realIndex + 1));
that.ProContentTab7.slideTo(this.realIndex + 1);
}
}
});
}
},
ProBigSwiper: function () {
var that = this;
var TouchMove = false;
if ($('.pro_big_swiper').length > 0) {
that.ProBigTab = new Swiper(".pro_big_swiper", {
effect: 'fade',
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
on:{
init:function (){
this.slideTo($('.pro_nav_item_active').index());
}
}
});
}
},
ProHeadSwiper: function () {
var that = this;
var TouchMove = false;
if ($('.pro_head_swiper').length > 0) {
that.ProHeadTab = new Swiper(".pro_head_swiper", {
effect: 'fade',
speed: 800,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
on: {
slideChangeTransitionStart: function () {
$('.pro_head_pagination_item').eq(this.realIndex).addClass('pro_head_pagination_active').siblings().removeClass('pro_head_pagination_active');
}
}
});
}
},
ProDetailsSwiper: function () {
var that = this;
var TouchMove = false;
if ($('.pro_details_swiper').length > 0) {
that.ProDetailsTab = new Swiper(".pro_details_swiper", {
autoHeight: true,
effect: 'fade',
speed: 800,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
on: {
slideChangeTransitionStart: function () {
$('.pro_details_pagination_item').eq(this.realIndex).addClass('pro_details_pagination_active').siblings().removeClass('pro_details_pagination_active');
}
}
});
}
},
MouseWheel: function () {
var that = this;
if (that.Width > 1200) {
$('body').on('mousewheel', function (event) {
if (event.deltaY < 0) {
// console.log('姝e悜涓嬫粴鍔?);
$('.header_wrap').addClass('header_hide');
} else {
// console.log('姝e悜涓婃粴鍔?);
$('.header_wrap').removeClass('header_hide');
}
});
}
},
indexNumber: function () {
var that = this;
if (that.NumberIf) {
console.log('鏁板瓧婊氬姩');
var numberL = $('.index_number');
$('.index_number').each(function () {
$(this).prop('counter', 0).animate({
counter: $(this).text()
}, {
duration: 1500,
easing: 'swing',
step: function (now) {
now = Math.ceil(now);
now = now.toString();
now = now.replace(/\B(?=(\d{3})+(?!\d))/g, '');
$(this).text(now);
}
});
});
that.NumberIf = false;
}
},
//搴曢儴
footAnimate: function () {
var that = this;
var FootWrap = $('.inner_page_wrap');
var FootContent = $('.foot_content_box');
if (that.Width > 1200) {
FootWrap.css({
height: FootContent.height() + 'px'
});
var scrollTop = $(window).scrollTop();
if (FootContent.length > 0) {
var footerHeight = FootWrap.offset().top - scrollTop - that.Height;
if (footerHeight <= 0) {
FootContent.css({
WebkitTransform: 'translateY(' + parseInt(Math.abs(footerHeight / 2)) + 'px)',
transform: 'translateY(' + parseInt(Math.abs(footerHeight / 2)) + 'px)',
});
}
}
$(window).scroll(function () {
var scrollTop = $(window).scrollTop();
if (FootContent.length > 0) {
var footerHeight = FootWrap.offset().top - scrollTop - that.Height;
if (footerHeight <= 0) {
FootContent.css({
WebkitTransform: 'translate3d(0,' + parseInt(Math.abs(footerHeight / 2)) + 'px,0)',
transform: 'translate3d(0,' + parseInt(Math.abs(footerHeight / 2)) + 'px,0)'
});
}
}
});
}
},
//瀵艰埅楂樹寒
navHover: function () {
$('.public_nav_item').hover(function () {
$('.public_nav_item').addClass('public_nav_default');
$('.public_nav_item').eq($(this).index()).addClass('public_nav_hover');
}, function () {
$('.public_nav_item').removeClass('public_nav_default public_nav_hover');
});
},
//婊氬姩鏉
Scrollbar: function () {
setInterval(function () {
$('body').getNiceScroll().resize();
}, 300);
var that = this;
if (that.Width > 1200) {
$(document).ready(function () {
$("body").niceScroll({
zindex: "99999",
//婊氬姩鏉¢鑹
cursorcolor: "rgba(0,0,0,0)",
// 褰撴粴鍔ㄦ潯鏄殣钘忕姸鎬佹椂鏀瑰彉閫忔槑搴︼紝鍊艰寖鍥?鍒?
cursoropacitymin: 0,
// 褰撴粴鍔ㄦ潯鏄樉绀虹姸鎬佹椂鏀瑰彉閫忔槑搴︼紝鍊艰寖鍥?鍒?
cursoropacitymax: 1,
//浣垮厜鏍囨嫋鍔ㄦ粴鍔ㄥ儚鍦ㄥ彴寮忕數鑴戣Е鎽歌澶 true婊氬姩鏉℃嫋鍔ㄤ笉鍙敤
touchbehavior: false,
// 闅愯棌婊氬姩鏉$殑鏂瑰紡锛屽彲鐢ㄧ殑鍊硷細true|鏃犳粴鍔ㄦ椂闅愯棌锛?cursor"|闅愯棌锛宖alse|涓嶉殣钘忥紝"leave"|浠呭湪鎸囬拡绂诲紑鍐呭鏃堕殣钘忥紝"hidden"|涓€鐩撮殣钘忥紝"scroll"|浠呭湪婊氬姩鏃舵樉绀
autohidemode: true,
//鍚敤婊氬姩璺宠穬鐨勫唴瀹圭Щ鍔
bouncescroll: true,
//鍙互浣跨敤 CSS 鍙樺瀷鏉ユ粴鍔ㄥ唴瀹
enabletranslate3d: true,
// niceScroll 鍙互绠$悊姘村钩婊氬姩
horizrailenabled: true,
//鑳屾櫙婊氬姩妲介鑹
background: "rgba(211,211,211,0)",
//婊氬姩鏉″搴
cursorwidth: "5px",
//婊氬姩鏉′袱澶寸殑鍦嗚
cursorborderradius: "0",
//婊氬姩鏉$殑浣嶇疆
railpadding: {
top: 0,
right: 0,
left: 0,
bottom: 0
},
//鍙互绠$悊榧犳爣婊氳疆浜嬩欢
enablemousewheel: true,
//鍙互绠$悊閿洏浜嬩欢
enablekeyboard: true,
//婊氬姩閫熷害
scrollspeed: 120,
smoothscroll: 'ease',
hidecursordelay: 400,
// 榧犳爣婊氬姩鐨勬粴鍔ㄩ€熷害锛堝儚绱狅級
mousescrollstep: 9 * 6,
//浠 boxzoom=true 鍜岃Е灞忚澶囨椂鏈夋晥锛夋縺娲诲彉鐒﹀綋 out/in 锛堜袱涓墜鎸囧璐︽垨鏀剁缉锛
gesturezoom: false,
//浣犲彲浠ョ敤榧犳爣婊氬姩鍙粴鍔ㄥ尯鍩熺殑婊氬姩鏉″拰澧炲姞榧犳爣婊氳疆浜嬩欢
preservenativescrolling: true,
//褰撴寜涓嬬┖鏍兼椂浣块〉闈㈠悜涓嬫粴鍔
spacebarenabled: true,
//闃叉澶氳Е鐐规椂闂村紩鍙戞粴鍔
preventmultitouchscrolling: true,
});
});
that.NavScroll();
} else {
$('body').addClass('body_hide');
that.NavScroll();
}
},
//鑾峰彇TOP
NavScroll: function () {
var that = this;
that.scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
that.NavScrollTop();
// console.log("婊氬姩璺濈" + that.scrollTop);
window.onscroll = function () {
that.scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
that.NavScrollTop();
// console.log("婊氬姩璺濈" + that.scrollTop);
};
},
//鍒ゆ柇top鍊
NavScrollTop: function () {
var that = this;
that.scrollTop = $(window).scrollTop();
that.scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
//绉诲姩绔椤靛鑸
if (that.scrollTop > 100) {
$('.header_wrap').addClass('header_active');
} else {
$('.header_wrap').removeClass('header_active');
}
if ($('.about_advertising_scroll').length > 0 && that.Width > 1200) {
//闂磋窛
var AboutWidth = that.Width * 0.0963541666;
if (that.scrollTop > $('.about_advertising_scroll').offset().top - (that.Height * 1.4)) {
//浣嶇Щ=闃堝€?1.5
that.AdvertisingScroll = parseInt((that.scrollTop + (that.Height * 1.4)) - $('.about_advertising_scroll').offset().top);
$('.about_advertising_box').css({
padding: '0 ' + (AboutWidth - (that.AdvertisingScroll / 2)) + 'px'
});
//瓒呭嚭绛変簬0
if ((AboutWidth - (that.AdvertisingScroll / 2)) <= 0) {
$('.about_advertising_box').css({
padding: '0'
});
}
} else {
//榛樿
$('.about_advertising_box').css({
padding: '0 ' + (AboutWidth) + 'px'
});
}
}
that.FadeInUp();
that.IndexAboutWrap();
that.IndexAboutPhoto();
that.IndexProductBox();
that.IndexMapTab();
that.IndexCustomersWrap();
that.IndexNewsBox();
that.AboutDetailHead();
that.AboutDetailContent();
that.AboutLayoutHead();
that.AboutLayoutBox();
that.AboutCultureWrap();
that.InnovationPageBig();
that.PartnerPageHead();
that.PartnerPageItemBox();
// that.ArchitecturePageBjq();
that.DutyPageHead();
that.DutyDetailPhoto();
that.duty_detail_bjq();
that.DutyDetailTipsBox();
that.DutyItemBox();
that.NewsPageItemBox();
that.VideoItemBox();
that.JoinDetailsHeadBox();
that.JoinDetailsFootBox();
that.ContactPageMapWrap();
that.ContactPageContent();
that.NewsBannerContent();
that.NewsDetailsBjq();
that.ProPageWrap();
that.ProHeadBox();
that.DetailsIntroductionBox();
that.DetailsSeriesBox();
that.DetailsPageBox();
},
//杩涘満
FadeInUp: function () {
var that = this;
var Item = $('.FadeInUp');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddFadeInUp');
}
}
}
},
IndexAboutWrap: function () {
var that = this;
var Item = $('.index_about_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.6;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexAboutWrap');
setTimeout(function () {
that.indexNumber();
}, 700)
}
}
}
},
IndexAboutPhoto: function () {
var that = this;
var Item = $('.index_about_photo');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.6;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexAboutPhoto');
}
}
}
},
IndexProductBox: function () {
var that = this;
var Item = $('.index_product_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexProductBox');
if (that.IndexProIf) {
console.log('浜у搧鍔犺浇')
that.IndexProIf = false;
setTimeout(function () {
that.IndexProductDetailsSwiper();
that.IndexProductPhotoSwiper();
}, 300)
}
}
}
}
},
IndexMapTab: function () {
var that = this;
var Item = $('.index_map_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexMapTab');
if (that.IndexMapIf) {
console.log('鍦板浘鍔犺浇')
that.IndexMapIf = false;
setTimeout(function () {
that.IndexMapDetailsSwiper();
that.IndexMapBtnSwiper();
}, 300)
}
}
}
}
},
IndexCustomersWrap: function () {
var that = this;
var Item = $('.index_customers_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.6;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexCustomersWrap');
}
}
}
},
IndexNewsBox: function () {
var that = this;
var Item = $('.index_news_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddIndexNewsBox');
}
}
}
},
AboutDetailHead: function () {
var that = this;
var Item = $('.about_detail_head');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddAboutDetailHead');
}
}
}
},
AboutDetailContent: function () {
var that = this;
var Item = $('.about_detail_content');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddAboutDetailContent');
}
}
}
},
AboutLayoutHead: function () {
var that = this;
var Item = $('.about_layout_head');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.8;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddAboutLayoutHead');
}
}
}
},
AboutLayoutBox: function () {
var that = this;
var Item = $('.about_layout_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.6;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddAboutLayoutBox');
if (that.AboutLayoutIf) {
console.log('浜ц兘甯冨眬鍔犺浇')
that.AboutLayoutIf = false;
that.AboutLayoutContentSwiper();
that.AboutLayoutPicSwiper();
that.AboutLayoutPaginationSwiper();
}
}
}
}
},
AboutCultureWrap: function () {
var that = this;
var Item = $('.about_culture_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddAboutCultureWrap');
}
}
}
},
InnovationPageBig: function () {
var that = this;
var Item = $('.innovation_page_big');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddInnovationPageBig');
}
}
}
},
PartnerPageHead: function () {
var that = this;
var Item = $('.partner_page_head');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddPartnerPageHead');
}
}
}
},
PartnerPageItemBox: function () {
var that = this;
var Item = $('.partner_page_item_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddPartnerPageItemBox');
}
}
}
},
ArchitecturePageBjq: function () {
var that = this;
var Item = $('.architecture_page_bjq p,.architecture_page_bjq img,.architecture_page_bjq h1,.architecture_page_bjq h2,.architecture_page_bjq h3,.architecture_page_bjq h4');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('ArchitecturePageShow');
}
}
}
},
DutyPageHead: function () {
var that = this;
var Item = $('.duty_page_head');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDutyPageHead');
}
}
}
},
DutyDetailPhoto: function () {
var that = this;
var Item = $('.duty_detail_photo');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.6;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDutyDetailPhoto');
}
}
}
},
duty_detail_bjq: function () {
var that = this;
var Item = $('.duty_detail_bjq p,.duty_detail_bjq img,.duty_detail_bjq h1,.duty_detail_bjq h2,.duty_detail_bjq h3,.duty_detail_bjq h4');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDutyDetailBjqShow');
}
}
}
},
DutyDetailTipsBox: function () {
var that = this;
var Item = $('.duty_detail_tips_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDutyDetailTipsBox');
}
}
}
},
DutyItemBox: function () {
var that = this;
var Item = $('.duty_item_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDutyItemBox');
}
}
}
},
NewsPageItemBox: function () {
var that = this;
var Item = $('.news_page_item_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddNewsPageItemBox');
}
}
}
},
VideoItemBox: function () {
var that = this;
var Item = $('.video_item_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddVideoItemBox');
}
}
}
},
JoinDetailsHeadBox: function () {
var that = this;
var Item = $('.join_details_head_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddJoinDetailsHeadBox');
}
}
}
},
JoinDetailsFootBox: function () {
var that = this;
var Item = $('.join_details_foot_box p,.join_details_foot_box img,.join_details_foot_box h1,.join_details_foot_box h2,.join_details_foot_box h3,.join_details_foot_box h4');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddJoinDetailsFootShow');
}
}
}
},
ContactPageMapWrap: function () {
var that = this;
var Item = $('.contact_page_map_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddContactPageMapWrap');
}
}
}
},
ContactPageContent: function () {
var that = this;
var Item = $('.contact_page_content');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddContactPageContent');
}
}
}
},
NewsBannerContent: function () {
var that = this;
var Item = $('.news_banner_content');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddNewsBannerContent');
}
}
}
},
NewsDetailsBjq: function () {
var that = this;
var Item = $('.news_details_bjq p,.news_details_bjq img,.news_details_bjq h1,.news_details_bjq h2,.news_details_bjq h3,.news_details_bjq h4');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddNewsDetailsBjq');
}
}
}
},
ProPageWrap: function () {
var that = this;
var Item = $('.pro_page_wrap');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddProPageWrap');
if (that.ProPageIf) {
console.log('浜у搧鍒楄〃鍔犺浇');
setTimeout(function () {
that.ProPageIf = false;
that.ProContentSwiper0();
that.ProMaxSwiper0();
that.ProContentSwiper1();
that.ProMaxSwiper1();
that.ProContentSwiper2();
that.ProMaxSwiper2();
that.ProContentSwiper3();
that.ProMaxSwiper3();
that.ProContentSwiper4();
that.ProMaxSwiper4();
that.ProContentSwiper5();
that.ProMaxSwiper5();
that.ProContentSwiper6();
that.ProMaxSwiper6();
that.ProContentSwiper7();
that.ProMaxSwiper7();
}, 300)
}
}
}
}
},
ProHeadBox: function () {
var that = this;
var Item = $('.pro_head_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddProHeadBox');
}
}
}
},
DetailsIntroductionBox: function () {
var that = this;
var Item = $('.details_introduction_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDetailsIntroductionBox');
}
}
}
},
DetailsSeriesBox: function () {
var that = this;
var Item = $('.details_series_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDetailsSeriesBox');
}
}
}
},
DetailsPageBox: function () {
var that = this;
var Item = $('.details_page_box');
if (Item.length > 0) {
for (var i = 0; i < Item.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > Item.eq(i).offset().top) {
Item.eq(i).addClass('AddDetailsPageBox');
}
}
}
},
//杩斿洖椤堕儴
ReturnTop: function () {
var that = this;
var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
$(document.body).animate({
scrollTop: 0
}, 700);
$('html').animate({
scrollTop: 0
}, 700);
},
//绉诲姩绔鑸
WapNav: function () {
var that = this;
var top = 0;//缁檛op鍙橀噺涓€涓垵濮嬪€硷紝浠ヤ究涓嬫柟璧嬪€煎苟寮曠敤銆
$('.header_menu_ul').on('click', function (e) {
e.preventDefault();
if (that.WapNavIF) {
$('.header_wrap').addClass('header_wap_active');
that.WapNavIF = false;
top = $(window).scrollTop();
$('body').css("top", -top + "px");
$('body').addClass('body_flex');
} else {
$('.header_wrap').removeClass('header_wap_active');
that.WapNavIF = true;
$('body').removeClass('body_flex');
$(window).scrollTop(top);
}
});
},
//閿氱偣鐗规晥
maoAnimate: function () {
var that = this;
var _hash = window.location.hash;
if (that.Width > 1200) {
that.maoNumber = $('.header_after').height() * 2;
if ($('.public_banner_wrap').get(0)) {
that.maoNumber = $('.header_after').height();
}
} else {
that.maoNumber = $('.header_after').height();
}
//閿氱偣婊戝姩
$('.anchor_link').click(function () {
$('html,body').animate({scrollTop: $(this.hash).offset().top - that.maoNumber}, 300);
});
setTimeout(function () {
if (_hash && $(_hash).get(0)) {
$('html,body').animate({scrollTop: $(_hash).offset().top - that.maoNumber}, 300);
}
}, 50);
},
//Loading
Loading: function () {
var that = this;
for (var i = 0; i < $('.loading_img').length; i++) {
if ($('.loading_img').eq(i).attr('src') == "") {
console.log('灏戝浘');
} else {
that.ImgArray.push(
$('.loading_img').eq(i).attr('src')
);
}
}
//鍘婚噸Img
function unique2(array) {
array.sort();
var re = [array[0]];
for (var i = 1; i < array.length; i++) {
if (array[i] !== re[re.length - 1]) {
re.push(array[i]);
}
}
return re;
}
that.allImages = unique2(that.ImgArray);
// console.log(that.ImgArray.length);
if ($('.loading_wrap').length > 0 && that.ImgArray.length > 0) {
function handleComplete() {
console.log('鍔犺浇鎴愬姛');
// $('.loading_wrap').addClass('loading_remove');
// //鍔犺浇瀹屾垚鍚姩缃戠珯
// setTimeout(function () {
// that.HtmlInit();
// $('.loading_wrap').remove();
// }, 1400);
}
var queue = new createjs.LoadQueue();
queue.installPlugin(createjs.Sound);
queue.loadManifest(that.allImages);
queue.on("fileload", function (e) {
// $('.loading_schedule_box').stop().show();
});
//鐩戝惉杩涘害浜嬩欢
queue.on("progress", function (e) {
var proNum = Math.ceil(e.progress * 100);
// $('.loading_text_number').html(proNum + '%')
if (proNum >= 100) {
console.log('鍒?00浜?);
that.ImagesLoad = true;
}
});
queue.on("complete", handleComplete, this);
} else {
$('.loading_wrap').remove();
that.Init();
}
},
SvgDefault: function () {
for (var i = 0; i < $(".index_case_animate circle").length; i++) {
var OffSet = Math.ceil($(".index_case_animate circle").get(i).getTotalLength());
// console.log(OffSet);
$('.index_case_animate circle').eq(i).css({
strokeDasharray: OffSet,
strokeDashoffset: OffSet,
});
}
},
//榛樿鏂规硶
HtmlInit: function () {
var that = this;
$('body').addClass('body_animate');
that.AddEventList();
// that.footAnimate();
that.maoAnimate();
//add
that.WapNav();
that.IndexBannerPicSwiper();
that.IndexBannerSwiper();
that.MouseWheel();
that.IndexCustomersPrevSwiper();
that.IndexCustomersNextSwiper();
that.IndexNewsSwiper();
that.AboutLayoutSwiper();
that.InnovationPageSwiper();
that.DutyListSwiper();
that.ProBigSwiper();
that.ProHeadSwiper();
that.ProDetailsSwiper();
that.Scrollbar();
},
};
$(function () {
IqwXiongJs.Loading();
});