var IqwXiongJs = {
Width: $(window).width(),
Height: $(window).height(),
//閿氱偣璺濈
maoNumber: 150,
//鏁板瓧婊氬姩鍒ゆ柇
NumberIf: true,
FootNumberIf: true,
Number: [],
//鏈夐敋鐐规墠鍚搁《
maoTop: false,
bannerAnimation: 'AddFadeInUp',
//婊氬姩鏉
MyScroll: null,
//澧炲姞----------------------------------
WapNavIF: true,
indexPageTab: null,
indexBanner: null,
indexWapBanner: null,
InitBanner: false,
//鍔犺浇锛堝畾鏃跺櫒锛
SvgTimeOver: null,
SvgTime: 0,
ImagesLoad: false,
//鍔犺浇锛堝渾鍦堬級
StrokeC: 0,
//bannerCanvas
CanvasDrap: null,
CanvasStop: null,
CanvasNewsDrap: null,
//BannerText
BannerNumber: 0,
interleaveOffset: 0.5,
BannerIF: false,
BannerClick: false,
//loading
LoadingIf: false,
IndexSwiperIf: false,
IndexSwiperClick: 0,
//index page1
BannerTime: null,
CanvasTime: null,
IconTime: null,
//index page3
AnimateTime: [],
//index page4
TabTime: null,
//index page5
PartnerTab: null,
//index page6
ParallaxIf: false,
AddressTab: null,
PjaxIf: false,
PjaxTime: 0,
PjaxTimeOver: null,
contentTime: 0,
contentTimeOver: null,
allImages: [],
ImgArray: [],
//绠楁硶骞冲彴
CorPlatTab: null,
//绀句細璐d换
SocialTab: null,
//鍙戝睍鍘嗙▼
DevelopmentTab: null,
DevelopPaginationTab: null,
//搴旂敤鍦烘櫙
ScenarioTab: null,
//浼佷笟鏂囧寲
CultureTab: null,
//鍛樺伐绂忓埄
WelfareTab: null,
FamilyTab: null,
AdvantageTab: null,
CertifyTab: null,
//绉诲姩绔
WapCoreTab: null,
WapPlatformTab: null,
WapPlatIconTab: null,
WapScenarioTab: null,
WapFaqBackTab: null,
WapFaqContentTab: null,
AtmosphereContentTab: null,
qdChipsTab1: null,
qdChipsTab2: null,
indexNumber: function () {
var that = this;
if (that.NumberIf) {
var numberL = $('.index_number');
for (var i = 0; i < numberL.length; i++) {
numberL.eq(i).html(that.Number[i]);
}
console.log(that.Number);
$('.index_number').each(function () {
$(this).prop('counter', 0).animate({
counter: $(this).text()
}, {
duration: 2000,
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;
}
},
//InedxPage
indexSwiper: function () {
var that = this;
var TouchMove = false;
if (that.Width < 1200) {
TouchMove = true;
}
that.indexPageTab = new Swiper('.index_page_swiper', {
initialSlide: 0,
direction: 'vertical',
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: false,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
//榧犳爣
mousewheel: true,
//閿洏
keyboard: {
enabled: true,
},
//鍒囨崲鏃堕棿
speed: 500,
//浣嶇Щ
grabCursor: true,
watchSlidesProgress: true,
mousewheelControl: true,
keyboardControl: true,
//鍒囨崲鏃舵粦鍔ㄦ棤鏁堢洿鍒板垏鎹㈢粨鏉
preventInteractionOnTransition: true,
on: {
transitionStart: function () {
if (this.realIndex == 0) {
}
if (this.realIndex == 1) {
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
//娓呴櫎鏃堕棿鍔ㄧ敾(绗笁椤?
for (var j = 0; j < $('.feature_page_item').length; j++) {
clearTimeout(that.AnimateTime[j]);
}
}
if (this.realIndex == 2) {
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
}
if (this.realIndex == 3) {
//娓呴櫎鏃堕棿鍔ㄧ敾(绗笁椤?
for (var j = 0; j < $('.feature_page_item').length; j++) {
clearTimeout(that.AnimateTime[j]);
}
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
}
if (this.realIndex == 4) {
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
}
if (this.realIndex == 5) {
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
}
},
transitionEnd: function () {
if (this.realIndex == 0) {
//娣诲姞绗?椤
$('.index_canvas').addClass('index_canvas_active');
that.BannerSwiper();
that.BannerCanvas();
that.BannerTime = setTimeout(function () {
$('.index_btn_box').addClass('index_btn_init');
$('.index_banner_line').addClass('index_line_init');
}, 400);
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.advantage_wap_wrap').removeClass('advantage_wap_active');
}
if (this.realIndex == 1) {
//娣诲姞绗?椤
$('.advantage_wap_wrap').addClass('advantage_wap_active');
//娓呴櫎鏃堕棿鍔ㄧ敾(绗竴椤?
$('.index_title_item,.index_en_item,.index_read_label,.index_title_load').attr('style', '');
$('.index_btn_box').removeClass('index_btn_init');
$('.index_banner_wrap').removeClass('index_banner_init');
$('.index_canvas').removeClass('index_canvas_active');
$('.index_banner_line').removeClass('index_line_init');
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_active index_animate_end index_animate_load');
$('.wap_banner_box').removeClass('wap_banner_current');
if (that.Width > 1200) {
that.indexBanner.destroy(false); //閿€姣乻wper
} else {
that.indexWapBanner.destroy(false); //閿€姣乻wper
}
var c = document.getElementById("index_banner_canvas");
var ctx = c.getContext("2d");
ctx.clearRect(0, 0, c.width, c.height);
clearInterval(that.CanvasNewsDrap);
//娓呴櫎鍔ㄧ敾(绗?椤?
for (var j = 0; j < $('.feature_page_item').length; j++) {
clearTimeout(that.AnimateTime[j]);
}
$('.feature_page_item').removeClass('featureAnimate');
$('.feature_page_wrap').removeClass('feature_page_active');
}
if (this.realIndex == 2) {
//娣诲姞绗?椤
$('.feature_page_wrap').addClass('feature_page_active');
for (var i = 0; i < $('.feature_page_item').length; i++) {
(function (item) {
that.AnimateTime[i] = setTimeout(function () {
$('.feature_page_item').eq(item).addClass('featureAnimate');
}, item * 400);
})(i)
}
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.advantage_wap_wrap').removeClass('advantage_wap_active');
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.index_tab_wrap').removeClass('index_tab_active index_tab_current');
$('.wap_faq_wrap').removeClass('wap_faq_active');
if (that.Width > 1200) {
$('.tab_back_active').css({
cx: -65 + '%',
});
} else {
$('.tab_back_active').css({
cy: -58 + '%',
});
}
}
if (this.realIndex == 3) {
//娓呴櫎鍔ㄧ敾(绗?椤?
for (var j = 0; j < $('.feature_page_item').length; j++) {
clearTimeout(that.AnimateTime[j]);
}
$('.feature_page_item').removeClass('featureAnimate');
$('.feature_page_wrap').removeClass('feature_page_active');
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.partner_swiper_box .swiper-slide-active').removeClass('partner_active');
$('.partner_title_box').removeClass('partner_title_active');
$('.partner_swiper_pagination').removeClass('partner_swiper_active');
//娣诲姞绗?椤靛姩鐢
$('.index_tab_wrap').addClass('index_tab_active');
$('.wap_faq_wrap').addClass('wap_faq_active');
$('.tab_back_active').attr('style', '');
}
if (this.realIndex == 4) {
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.wap_faq_wrap').removeClass('wap_faq_active');
$('.index_tab_wrap').removeClass('index_tab_active index_tab_current');
if (that.Width > 1200) {
$('.tab_back_active').css({
cx: -65 + '%',
});
} else {
$('.tab_back_active').css({
cy: -58 + '%',
});
}
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.index_footer_wrap').removeClass('index_footer_active');
//娣诲姞绗簲椤靛姩鐢
$('.partner_swiper_box .swiper-slide-active').addClass('partner_active');
$('.partner_title_box').addClass('partner_title_active');
$('.partner_swiper_pagination').addClass('partner_swiper_active');
}
if (this.realIndex == 5) {
//娓呴櫎鍔ㄧ敾(绗?椤?
$('.partner_swiper_box .swiper-slide-active').removeClass('partner_active');
$('.partner_title_box').removeClass('partner_title_active');
$('.partner_swiper_pagination').removeClass('partner_swiper_active');
//娣诲姞绗?椤靛姩鐢
$('.index_footer_wrap').addClass('index_footer_active');
that.IndexParallax();
}
},
progress: function (progress) {
for (var i = 0; i < this.slides.length; i++) {
var slideProgress = this.slides[i].progress;
var innerOffset = this.height * that.interleaveOffset;
var innerTranslate = slideProgress * innerOffset;
this.slides[i].querySelector(".index_slide_inner").style.transform =
"translateY(" + innerTranslate + "px)";
}
},
touchStart: function () {
for (var i = 0; i < this.slides.length; i++) {
this.slides[i].style.transition = "";
}
},
setTransition: function (speed) {
for (var i = 0; i < this.slides.length; i++) {
this.slides[i].style.transition = speed + "ms";
this.slides[i].querySelector(".index_slide_inner").style.transition =
speed + "ms";
}
}
}
});
},
//banner
BannerSwiper: function () {
var that = this;
if (that.Width > 1200) {
that.indexBanner = new Swiper('.index_banner_swiper', {
effect: 'fade',
speed: 1000,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: true,
loopAdditionalSlides: 0,
//鍒囨崲鏃舵粦鍔ㄦ棤鏁堢洿鍒板垏鎹㈢粨鏉
preventInteractionOnTransition: true,
autoplay: {
delay: 13000,
stopOnLastSlide: false,
disableOnInteraction: false,
waitForTransition: false,
},
pagination: {
el: '.index_banner_pagination',
clickable: true,
},
on: {
init: function () {
that.BannerAnimate();
$('.title_load_text').html('01');
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_load');
$('.index_banner_swiper .swiper-slide-active').addClass('index_animate_active index_animate_load');
},
transitionStart: function () {
that.BannerNumber = this.realIndex;
that.BannerText();
console.log('banner鎾斁鑷崇鍑狅細' + this.realIndex + '椤?);
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_load');
$('.index_banner_swiper .swiper-slide-active').addClass('index_animate_load');
$('.index_banner_swiper .swiper-slide').eq(that.indexBanner.realIndex - 1).addClass('index_animate_end');
that.BannerAnimate();
},
transitionEnd: function () {
that.BannerClick = false;
$('.index_title_item,.index_en_item,.index_read_label,.index_title_load').attr('style', '');
$('.title_load_text').html('0' + (this.realIndex + 1));
// $('.index_btn_box').removeClass('index_btn_active');
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_end index_animate_active');
$('.index_banner_swiper .swiper-slide-active').addClass('index_animate_active');
that.BannerAnimate();
},
}
});
} else {
that.indexWapBanner = new Swiper('.wap_banner_swiper', {
speed: 600,
effect: 'fade',
loop: true,
autoplay: {
delay: 10000,
stopOnLastSlide: false,
disableOnInteraction: false,
waitForTransition: false,
},
loopedSlides: document.querySelectorAll('.swiper-slide').length,
on: {
init: function () {
$('.wap_banner_box').removeClass('wap_banner_current');
$('.wap_banner_box0').addClass('wap_banner_current');
},
slideChangeTransitionStart: function () {
$('.wap_banner_box').removeClass('wap_banner_current');
for (var i = 0; i < this.loopedSlides; i++) {
if (this.realIndex == i) {
$('.wap_banner_box' + i).addClass('wap_banner_current');
}
}
},
},
});
}
},
//鍦板潃Tab
AddressSwiper: function () {
var that = this;
that.AddressTab = new Swiper('.footer_address_swiper', {
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
speed: 600,
on: {
init: function () {
$('.footer_address_label').eq(0).addClass('footer_address_current');
$('.footer_address_label').on('click', function (e) {
e.preventDefault();
$('.footer_address_label').eq($(this).index()).addClass('footer_address_current').siblings().removeClass('footer_address_current');
$('.footer_address_after').css({
top: $(this).index() * $('.footer_address_label').height() + 'px'
});
that.AddressTab.slideTo($(this).index());
})
}
}
});
},
//鍚堜綔浼欎即
partnerSwiper: function () {
var that = this;
var TouchMove = false;
if (that.Width < 1200) {
TouchMove = true;
}
that.PartnerTab = new Swiper('.partner_swiper_box', {
effect: 'fade',
speed: 1000,
loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loopAdditionalSlides: 0,
//鍒囨崲鏃舵粦鍔ㄦ棤鏁堢洿鍒板垏鎹㈢粨鏉
preventInteractionOnTransition: true,
navigation: {
nextEl: '.partner_next',
prevEl: '.partner_prev',
},
pagination: {
el: '.partner_swiper_pagination',
clickable: true,
},
on: {
init: function () {
$('.partner_title_box').addClass('partner_title_active');
$('.partner_swiper_pagination').addClass('partner_swiper_active');
},
transitionStart: function () {
$('.partner_swiper_box .swiper-slide-active').addClass('partner_active');
},
transitionEnd: function () {
$('.partner_swiper_box .swiper-slide').removeClass('partner_active');
$('.partner_swiper_box .swiper-slide-active').addClass('partner_active');
},
}
});
},
//绠楁硶骞冲彴
CorPlatSwiper: function () {
var that = this;
var Effect = 'fade';
if (that.Width > 1200) {
Effect = 'fade'
} else {
Effect = 'slide'
}
that.CorPlatTab = new Swiper('.core_plat_tab', {
effect: Effect,
speed: 600,
on: {
transitionStart: function () {
if (that.Width < 1200) {
that.WapCoreTab.slideTo(this.realIndex);
$('.wap_core_tab .swiper-slide .wap_core_tab_title').removeClass('wap_core_tab_current');
$('.wap_core_tab .swiper-slide').eq(this.realIndex).find('.wap_core_tab_title').addClass('wap_core_tab_current');
}
},
}
});
},
//绀句細璐d换
SocialSwiper: function () {
var that = this;
var SlidesPerView = 2;
if (that.Width < 1200) {
SlidesPerView = 1
}
that.SocialTab = new Swiper('.about_social_swiper', {
speed: 600,
loop: true,
slidesPerView: SlidesPerView,
centeredSlides: true,
loopedSlides: document.querySelectorAll('.swiper-slide').length,
navigation: {
nextEl: '.about_social_next',
prevEl: '.about_social_prev',
},
pagination: {
el: ".about_social_pagination",
clickable: true,
},
on: {
slideChangeTransitionStart: function () {
$('.social_img_content').removeClass('social_img_current');
for (var i = 0; i < this.loopedSlides; i++) {
if (this.realIndex == i) {
$('.social_img_content' + i).addClass('social_img_current');
}
}
},
},
});
},
//搴旂敤鍦烘櫙
ScenarioSwiper: function () {
var that = this;
that.ScenarioTab = new Swiper('.scenario_swiper', {
speed: 600,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
loopAdditionalSlides: 0,
});
},
//浼佷笟鏂囧寲
CultureSwiper: function () {
var that = this;
var TouchMove = false
if (that.Width < 1200) {
TouchMove = true;
}
that.CultureTab = new Swiper('.culture_swiper', {
speed: 600,
effect: 'fade',
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: TouchMove,
loopAdditionalSlides: 0,
pagination: {
el: ".culture_swiper_pagination",
clickable: true,
},
// loop: true,
// loopedSlides: document.querySelectorAll('.swiper-slide').length,
on: {
init: function () {
$('.culture_slide_box').removeClass('culture_slide_current');
$('.culture_slide_box0').addClass('culture_slide_current');
},
slideChangeTransitionEnd: function () {
$('.culture_slide_box').removeClass('culture_slide_current');
for (var i = 0; i < $('.culture_swiper .swiper-slide').length; i++) {
if (this.realIndex == i) {
$('.culture_slide_box' + i).addClass('culture_slide_current');
}
}
},
},
});
},
//鍛樺伐绂忓埄
WelfareSwiper: function () {
var that = this;
that.WelfareTab = new Swiper('.welfare_item_swiper', {
speed: 600,
loop: true,
effect: 'fade',
loopedSlides: document.querySelectorAll('.swiper-slide').length,
on: {
init: function () {
var Item = $('.welfare_item_swiper');
//鍛樺伐绂忓埄-tab
for (var i = 0; i < this.loopedSlides; i++) {
Item.find('.welfare_pagination_tab').append("
0" + (i + 1) + "
")
}
Item.find('.welfare_item_label').eq(0).addClass('welfare_pagination_current');
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq(0).width(),
left: Item.find('.welfare_item_label').eq(0).position().left
});
Item.find('.welfare_item_label').on('click', function (e) {
e.preventDefault();
that.WelfareTab.slideTo($(this).index());
Item.find('.welfare_item_label').eq($(this).index()).addClass('welfare_pagination_current').siblings().removeClass('welfare_pagination_current');
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq($(this).index()).width(),
left: Item.find('.welfare_item_label').eq($(this).index()).position().left
});
});
},
slideChangeTransitionStart: function () {
var Item = $('.welfare_item_swiper');
if (Item.find('.welfare_item_label').length > 0) {
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq(this.realIndex).width(),
left: Item.find('.welfare_item_label').eq(this.realIndex).position().left
});
Item.find('.welfare_item_label').eq(this.realIndex).addClass('welfare_pagination_current').siblings().removeClass('welfare_pagination_current');
}
},
}
});
},
FamilySwiper: function () {
var that = this;
that.FamilyTab = new Swiper('.family_item_swiper', {
speed: 600,
loop: true,
effect: 'fade',
loopedSlides: document.querySelectorAll('.swiper-slide').length,
on: {
init: function () {
var Item = $('.family_item_swiper');
//鍛樺伐绂忓埄-tab
for (var i = 0; i < this.loopedSlides; i++) {
Item.find('.welfare_pagination_tab').append("0" + (i + 1) + "
")
}
Item.find('.welfare_item_label').eq(0).addClass('welfare_pagination_current');
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq(0).width(),
left: Item.find('.welfare_item_label').eq(0).position().left
});
Item.find('.welfare_item_label').on('click', function (e) {
e.preventDefault();
that.FamilyTab.slideTo($(this).index());
Item.find('.welfare_item_label').eq($(this).index()).addClass('welfare_pagination_current').siblings().removeClass('welfare_pagination_current');
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq($(this).index()).width(),
left: Item.find('.welfare_item_label').eq($(this).index()).position().left
});
});
},
slideChangeTransitionStart: function () {
var Item = $('.family_item_swiper');
if (Item.find('.welfare_item_label').length > 0) {
Item.find('.welfare_pagination_after').css({
width: Item.find('.welfare_item_label').eq(this.realIndex).width(),
left: Item.find('.welfare_item_label').eq(this.realIndex).position().left
});
Item.find('.welfare_item_label').eq(this.realIndex).addClass('welfare_pagination_current').siblings().removeClass('welfare_pagination_current');
}
},
}
});
},
//骞冲彴浼樺娍
AdvantageSwiper: function () {
var that = this;
that.AdvantageTab = new Swiper('.plat_advantage_tab', {
speed: 600,
effect: 'fade',
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
on: {
init: function () {
$('.plat_advantage_tab .swiper-slide').eq(0).find('.plat_advantage_item').addClass('plat_advantage_active');
},
slideChangeTransitionStart: function () {
for (var i = 0; i < $('.plat_advantage_tab .swiper-slide').length; i++) {
if (i == this.realIndex) {
$('.plat_advantage_tab .swiper-slide').find('.plat_advantage_item').removeClass('plat_advantage_active');
$('.plat_advantage_tab .swiper-slide').eq(i).find('.plat_advantage_item').addClass('plat_advantage_active');
}
}
}
}
})
},
//鍙戝睍鍘嗙▼
DevelopmentSwiper: function () {
var that = this;
var SlidesPerView = 5;
if (that.Width < 1200) {
SlidesPerView = 3;
}
that.DevelopmentTab = new Swiper('.develop_back_tab', {
speed: 600,
effect: 'fade',
// loop: true,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
loopAdditionalSlides: 0,
// loopedSlides: document.querySelectorAll('.swiper-slide').length,
navigation: {
nextEl: '.develop_back_next',
prevEl: '.develop_back_prev',
},
on: {
init: function () {
$('.develop_tab_box').removeClass('develop_current');
$('.develop_tab_box0').addClass('develop_current');
$('.develop_back_icon').on('click', function () {
$('.develop_box').addClass('develop_animate');
})
},
slideChangeTransitionStart: function () {
$('.develop_back_item').eq(0).remove();
$('.develop_back_box').append('');
$('.develop_back_icon').addClass('button_none');
$('.develop_tab_box').removeClass('develop_current');
for (var i = 0; i < $('.develop_back_tab .swiper-slide').length; i++) {
if (this.realIndex == i) {
$('.develop_tab_box' + i).addClass('develop_current');
that.DevelopPaginationTab.slideTo(i);
$('.develop_pagination_tab .swiper-slide').eq(i).addClass('develop_pagination_active').siblings().removeClass('develop_pagination_active');
if ($('.develop_tab_box' + i).find('.develop_tab_read').height() > $('.develop_tab_box' + i).find('.develop_tab_content').height()) {
$('.develop_tab_box' + i).find('.develop_tab_bottom').addClass('develop_animate_active');
}
}
}
},
slideChangeTransitionEnd: function () {
$('.develop_back_icon').removeClass('button_none');
}
}
});
that.DevelopPaginationTab = new Swiper('.develop_pagination_tab', {
slidesPerView: SlidesPerView,
speed: 600,
on: {
init: function () {
var Slide = $('.develop_pagination_tab .develop_pagination_click');
Slide.eq(0).addClass('develop_pagination_active');
Slide.on('click', function (e) {
e.preventDefault();
Slide.eq($(this).index()).addClass('develop_pagination_active').siblings().removeClass('develop_pagination_active');
that.DevelopmentTab.slideTo($(this).index());
});
}
}
});
},
//Parallax
IndexParallax: function () {
var that = this;
if (!that.ParallaxIf) {
console.log('鍔犺浇Parallax');
$('.scene').parallax();
that.ParallaxIf = true;
}
},
//banner鏂囧瓧鍒嗚В
BannerText: function () {
var that = this;
var ThisIndex = $('.index_banner_swiper .swiper-slide').eq(that.BannerNumber);
if (ThisIndex.find('.index_title_text').length > 0) {
//涓枃鍒嗗壊
var TitleText = ThisIndex.find('.index_title_text').html();
var TitleReplace = TitleText.replace(/\s*/g, "");
for (var a = 0; a < TitleReplace.length; a++) {
ThisIndex.find('.index_title_box').append('');
ThisIndex.find('.index_title_text').remove();
}
}
if (ThisIndex.find('.index_banner_text').length > 0) {
//灏忓瓧鍒嗗壊
var stringText = ThisIndex.find('.index_banner_text').html();
var stringReplace = stringText.replace(/\s*/g, "");
for (var c = 0; c < stringReplace.length; c++) {
ThisIndex.find('.index_read_list').append('');
ThisIndex.find('.index_banner_text').remove();
}
}
if (ThisIndex.find('.index_en_text').length > 0) {
//鑻辨枃
var EnText = ThisIndex.find('.index_en_text').html();
for (var d = 0; d < EnText.length; d++) {
ThisIndex.find('.index_en_box').append('');
ThisIndex.find('.index_en_text').remove();
}
}
},
//banner鏁堟灉
BannerAnimate: function () {
var that = this;
//涓枃閫熷害寮€鍏
var CnSpeed = 40;
//鑻辨枃閫熷害寮€鍏
var EnSpeed = 20;
//灏忓瓧閫熷害寮€鍏
var MinSpeed = 8;
//鎸夐挳閫熷害寮€鍏
var BtnSpeed = 10;
var AllLength = $('.index_banner_swiper .swiper-slide-active');
for (var a = 0; a < AllLength.find('.index_title_item').length; a++) {
AllLength.find('.index_title_item').eq(a).css({
transitionDelay: ((a * CnSpeed)) + 'ms'
})
}
for (var b = 0; b < AllLength.find('.index_en_item').length; b++) {
AllLength.find('.index_en_item').eq(b).css({
transitionDelay: ((b * EnSpeed) + 50) + 'ms'
})
}
for (var c = 0; c < AllLength.find('.index_read_item').length; c++) {
AllLength.find('.index_read_item').eq(c).find('.index_read_label').css({
transitionDelay: ((c * MinSpeed) + 100) + 'ms'
})
}
AllLength.find('.index_title_load').css({
transitionDelay: ((AllLength.find('.index_title_label').length * CnSpeed)) + 'ms'
});
},
//canvas鑳屾櫙
BannerCanvas: function () {
var that = this;
if ($('#index_banner_canvas').length > 0) {
//榛樿閫熷害
var Speed = 10;
//榛樿棰滆壊
var DefaultColor = 'rgba(27,27,27,0.2)';
//涓嬭惤棰滆壊
var DownColor = 'rgba(255,255,255,1)';
var c = document.getElementById("index_banner_canvas");
var ctx = c.getContext("2d");
c.width = window.innerWidth;
c.height = window.innerHeight;
//a,b,c,d鍒嗗埆浠h〃x鏂瑰悜鍋忕Щ,y鏂瑰悜鍋忕Щ,瀹斤紝楂
var string1 = "abcdefghijklmnopqrstuvwxyz";
string1.split();
var fontsize = 20;
columns = c.width / fontsize;
var drop = [];
for (var x = 0; x < columns; x++) {
drop[x] = 0;
}
function drap() {
for (var i = 0; i < drop.length; i++) {
var text1 = string1[Math.floor(Math.random() * string1.length)];
ctx.fillText(text1, i * fontsize, drop[i] * fontsize);
drop[i]++;
if (drop[i] * fontsize > c.height && Math.random() > 0.9) {//90%鐨勫嚑鐜囨帀钀
drop[i] = 0;
}
}
ctx.fillStyle = DefaultColor;
ctx.fillRect(0, 0, c.width, c.height);
ctx.fillStyle = DownColor;
ctx.font = fontsize + "px arial";
}
//缁樼敾
that.CanvasDrap = setInterval(drap, Speed);
var CanTime = 0;
that.CanvasStop = setInterval(function () {
CanTime += 10;
if (CanTime >= 480) {
clearInterval(that.CanvasStop);
clearInterval(that.CanvasDrap);
Speed = 90;
that.CanvasNewsDrap = setInterval(drap, Speed);
}
}, 10);
}
},
//瀵艰埅楂樹寒
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');
});
$('.partner_tab_after').hover(function () {
$('.partner_tab_after').addClass('partner_tab_default');
$('.partner_tab_after').eq($(this).index()).addClass('partner_tab_hover');
}, function () {
$('.partner_tab_after').removeClass('partner_tab_default partner_tab_hover');
});
$('.public_page_banner_wrap .public_banner_btn_item').hover(function () {
$('.public_page_banner_wrap .public_banner_btn_item').addClass('public_banner_btn_default');
$('.public_page_banner_wrap .public_banner_btn_item').eq($(this).index()).addClass('public_banner_btn_hover');
}, function () {
$('.public_page_banner_wrap .public_banner_btn_item').removeClass('public_banner_btn_default public_banner_btn_hover');
});
},
pdNav: function () {
var __old_index = 0, __new_index = 0;
if (!$('.public_banner_btn_box_app').length > 0) {
return;
}
$('.public_banner_btn_box_app').each(function () {
var $parent = $(this), $items = $parent.find('.public_title_btn_item');
var $pa_parent = $parent.closest('.public_page_banner').eq(0);
if (!$pa_parent.length) {
return;
}
var $tars = $pa_parent.find('.app_qd_item');
$items.hover(function () {
var _index = $items.index(this);
__new_index = _index;
if (__new_index != __old_index) {
$parent.removeClass('at' + __old_index);
$parent.addClass('at' + __new_index);
}
}, function () {
if (__new_index != __old_index) {
$parent.removeClass('at' + __new_index);
$parent.addClass('at' + __old_index);
}
});
$items.hover(function () {
var $this = $(this), _index = $items.index(this);
$tars.eq(_index).addClass('app_qd_item_current').siblings().removeClass('app_qd_item_current');
__old_index = __new_index = _index;
});
});
},
AnimatePjax: function () {
var that = this;
$(document).pjax('a[data-pjax]', '#content', {
fragment: '#content',
replace: true,
});
//寮€濮嬭姹
$(document).on('pjax:click', function () {
console.log('椤甸潰璇锋眰寮€濮?);
$('.animate_pjax').addClass('animate_pjax_active');
$('body').addClass('animate_pjax_none');
that.IndexSwiperIf = true;
});
//ajax璇锋眰瓒呮椂鍚庤Е鍙
$(document).on('pjax:timeout', function () {
console.log('椤甸潰璇锋眰瓒呮椂');
});
//ajax璇锋眰澶辫触鍚庤Е鍙
$(document).on('pjax:error', function () {
console.log('椤甸潰璇锋眰澶辫触');
});
//ajax璇锋眰鎴愬姛锛屽唴瀹规浛鎹㈡覆鏌撳墠瑙﹀彂
$(document).on('pjax:beforeReplace', function () {
console.log('椤甸潰璇锋眰鎴愬姛');
});
//鍐呭鏇挎崲鎴愬姛鍚庤Е鍙
$(document).on('pjax:success', function () {
that.PjaxTimeOver = setInterval(function () {
that.PjaxTime += 10;
// console.log(that.PjaxTime);
if (that.PjaxTime >= 1000) {
$('body').removeClass('animate_pjax_none body_flex');
$('.animate_pjax').addClass('animate_pjax_remove');
clearInterval(that.PjaxTimeOver);
that.WapNavIF = true;
that.PjaxIf = true;
that.PjaxTime = 0;
console.log('椤甸潰鍐呭鏇挎崲鎴愬姛');
}
}, 10);
});
//璇锋眰缁撴潫
$(document).on('pjax:end', function () {
console.log('椤甸潰璇锋眰缁撴潫');
});
},
//婊氬姩鏉
Scrollbar: function () {
setInterval(function () {
$('body').getNiceScroll().resize();
}, 300);
var that = this;
if (that.Width > 1200) {
$("body").niceScroll({
zindex: "99999",
//婊氬姩鏉¢鑹
cursorcolor: "rgba(255,255,255,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: "",
//婊氬姩鏉″搴
cursorwidth: "5px",
//婊氬姩鏉′袱澶寸殑鍦嗚
cursorborderradius: "3px",
//婊氬姩鏉$殑浣嶇疆
railpadding: {
top: 0,
right: 2,
left: 0,
bottom: 0
},
//鍙互绠$悊榧犳爣婊氳疆浜嬩欢
enablemousewheel: true,
//鍙互绠$悊閿洏浜嬩欢
enablekeyboard: true,
//婊氬姩閫熷害
scrollspeed: 130,
smoothscroll: 'ease',
hidecursordelay: 400,
// 榧犳爣婊氬姩鐨勬粴鍔ㄩ€熷害锛堝儚绱狅級
mousescrollstep: 9 * 3,
//浠 boxzoom=true 鍜岃Е灞忚澶囨椂鏈夋晥锛夋縺娲诲彉鐒﹀綋 out/in 锛堜袱涓墜鎸囧璐︽垨鏀剁缉锛
gesturezoom: false,
//浣犲彲浠ョ敤榧犳爣婊氬姩鍙粴鍔ㄥ尯鍩熺殑婊氬姩鏉″拰澧炲姞榧犳爣婊氳疆浜嬩欢
preservenativescrolling: true,
//褰撴寜涓嬬┖鏍兼椂浣块〉闈㈠悜涓嬫粴鍔
spacebarenabled: true,
//闃叉澶氳Е鐐规椂闂村紩鍙戞粴鍔
preventmultitouchscrolling: true,
});
that.NavScroll();
} else {
that.NavScroll();
}
},
ImgRoll: function () {
var that = this;
var number = 6;
if ($('.public_page_img').length > 0) {
if (that.Width > 1200) {
$(window).scroll(function () {
var scrollTop = $(window).scrollTop();
$('.public_page_img img').css({
top: (scrollTop / number) + "px"
})
});
}
}
var number2 = 12;
if ($('.society_back').length > 0) {
if (that.Width > 1200) {
$(window).scroll(function () {
var scrollTop = $(window).scrollTop();
$('.society_back img').css({
top: (scrollTop / number2) + "px"
})
});
}
}
},
//鍙戝睍鍘嗙▼婊氬姩鏉
DevelopScrollbar: function () {
setInterval(function () {
$('.develop_tab_content').getNiceScroll().resize();
}, 300);
var that = this;
$(".develop_tab_content").niceScroll({
zindex: "99999",
//婊氬姩鏉¢鑹
cursorcolor: "#e65e44",
// 褰撴粴鍔ㄦ潯鏄殣钘忕姸鎬佹椂鏀瑰彉閫忔槑搴︼紝鍊艰寖鍥?鍒?
cursoropacitymin: 1,
// 褰撴粴鍔ㄦ潯鏄樉绀虹姸鎬佹椂鏀瑰彉閫忔槑搴︼紝鍊艰寖鍥?鍒?
cursoropacitymax: 1,
//浣垮厜鏍囨嫋鍔ㄦ粴鍔ㄥ儚鍦ㄥ彴寮忕數鑴戣Е鎽歌澶 true婊氬姩鏉℃嫋鍔ㄤ笉鍙敤
touchbehavior: true,
// 闅愯棌婊氬姩鏉$殑鏂瑰紡锛屽彲鐢ㄧ殑鍊硷細true|鏃犳粴鍔ㄦ椂闅愯棌锛?cursor"|闅愯棌锛宖alse|涓嶉殣钘忥紝"leave"|浠呭湪鎸囬拡绂诲紑鍐呭鏃堕殣钘忥紝"hidden"|涓€鐩撮殣钘忥紝"scroll"|浠呭湪婊氬姩鏃舵樉绀
autohidemode: scroll,
//鍚敤婊氬姩璺宠穬鐨勫唴瀹圭Щ鍔
bouncescroll: true,
//鍙互浣跨敤 CSS 鍙樺瀷鏉ユ粴鍔ㄥ唴瀹
enabletranslate3d: true,
// niceScroll 鍙互绠$悊姘村钩婊氬姩
horizrailenabled: true,
//鑳屾櫙婊氬姩妲介鑹
background: "",
//婊氬姩鏉″搴
cursorwidth: "5px",
//婊氬姩鏉′袱澶寸殑鍦嗚
cursorborderradius: "3px",
//婊氬姩鏉$殑浣嶇疆
railpadding: {
top: 0,
right: 2,
left: 0,
bottom: 0
},
//鍙互绠$悊榧犳爣婊氳疆浜嬩欢
enablemousewheel: true,
//鍙互绠$悊閿洏浜嬩欢
enablekeyboard: false,
//婊氬姩閫熷害
scrollspeed: 130,
smoothscroll: 'ease',
hidecursordelay: 600,
// 榧犳爣婊氬姩鐨勬粴鍔ㄩ€熷害锛堝儚绱狅級
mousescrollstep: 9 * 3,
//浠 boxzoom=true 鍜岃Е灞忚澶囨椂鏈夋晥锛夋縺娲诲彉鐒﹀綋 out/in 锛堜袱涓墜鎸囧璐︽垨鏀剁缉锛
gesturezoom: false,
//浣犲彲浠ョ敤榧犳爣婊氬姩鍙粴鍔ㄥ尯鍩熺殑婊氬姩鏉″拰澧炲姞榧犳爣婊氳疆浜嬩欢
preservenativescrolling: true,
//褰撴寜涓嬬┖鏍兼椂浣块〉闈㈠悜涓嬫粴鍔
spacebarenabled: true,
//闃叉澶氳Е鐐规椂闂村紩鍙戞粴鍔
preventmultitouchscrolling: true,
});
},
//鑾峰彇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');
}
that.FadeInUp();
that.ImgRoll();
that.PageBannerInUp();
that.PublicTitle();
that.selfMove();
that.PlatList();
that.PlatTab();
that.ChipList();
that.ChipBottom();
that.ChipRoundBox();
that.PlatContent();
that.PlatItemImg();
that.PlatFootItem();
that.PlatTabItem();
that.FeaturesItem();
that.FeaturesBoxItem();
that.ScenarioTabFade();
that.CaseWrap();
that.AboutHead();
that.AboutVision();
that.AboutSocialTab();
that.CultureBox();
that.AtmosphereWrap();
that.WelfareBox();
that.WelfareItem();
that.FamilyItem();
that.NewsItem();
that.SocietyBox();
that.SocietyHead();
that.SocietyItem();
that.NewsFixed();
that.NewsBjqItem();
that.NewsContent();
that.NewsFixedCurrent();
that.PublicMbx();
that.PublicMbxTop();
that.AdvantageFade();
that.AdvantagePagination();
that.PlatImg();
that.AboutMap();
that.AboutNumber();
that.CoreScrapFade();
that.NewsHeadFade();
that.DevelopBox();
that.PlatPagination();
that.WapIconPagination();
that.WapAboutSocialPagination();
that.WapCulturePagination();
that.WapAtmospherePagination();
that.WapNewsBtn();
//20230725澧炲姞
that.InvestorNewsItem();
that.InvestorRelationsTab();
},
//杩涘満
FadeInUp: function () {
var that = this;
var fadeInUp = $('.FadeInUp');
for (var i = 0; i < fadeInUp.length; i++) {
var Height = that.Height * 0.9;
var Stop = that.scrollTop + Height;
if (Stop > fadeInUp.eq(i).offset().top) {
fadeInUp.eq(i).addClass('AddFadeInUp');
}
}
},
//鍐呴〉banner
PageBannerInUp: function () {
var that = this;
var PublicItem = $('.public_page_banner');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddBanner');
}
}
},
//鍐呴〉鏍囬
PublicTitle: function () {
var that = this;
var PublicItem = $('.core_platform_title');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPageTitle');
}
}
},
selfMove: function () {
var that = this;
var PublicItem = $('.self_move');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('self_moved');
}
}
},
//绠楁硶骞冲彴
PlatList: function () {
var that = this;
var PublicItem = $('.core_platform_item');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatList');
}
}
},
PlatPagination: function () {
var that = this;
var PublicItem = $('.core_wap_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatPagination');
}
}
},
WapIconPagination: function () {
var that = this;
var PublicItem = $('.wap_plat_icon_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWapIconPagination');
}
}
},
WapAboutSocialPagination: function () {
var that = this;
var PublicItem = $('.about_social_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWapAboutSocialPagination');
}
}
},
WapCulturePagination: function () {
var that = this;
var PublicItem = $('.culture_swiper_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWapCulturePagination');
}
}
},
WapAtmospherePagination: function () {
var that = this;
var PublicItem = $('.atmosphere_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWapAtmospherePagination');
}
}
},
//绠楁硶Tab
PlatTab: function () {
var that = this;
var top = 0;
var PublicItem = $('.core_tab_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * 1.2;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('core_tab_active');
PublicItem.css({
Transform: 'translateY(-25%)'
});
}
}
},
ChipList: function () {
var that = this;
var top = 0;
var PublicItem = $('.core_chip_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .2;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddChipTab');
that.ChipBox();
}
}
},
ChipBottom: function () {
var that = this;
var top = 0;
var PublicItem = $('.core_chip_bottom');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddChipBottom');
that.ChipBox();
}
}
},
ChipRoundBox: function () {
var that = this;
var top = 0;
var PublicItem = $('.core_round_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddChipRoundBox');
that.ChipBox();
}
}
},
PlatContent: function () {
var that = this;
var top = 0;
var PublicItem = $('.core_content_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * 1.2;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatContent');
PublicItem.css({
Transform: 'translateY(-25%)'
});
}
}
},
PlatItemImg: function () {
var that = this;
var PublicItem = $('.core_content_item');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatItemImg');
}
}
},
PlatFootItem: function () {
var that = this;
var PublicItem = $('.core_foot_item');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatFootItem');
}
}
},
PlatTabItem: function () {
var that = this;
var PublicItem = $('.plat_tab_item');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatTabItem');
}
}
},
FeaturesItem: function () {
var that = this;
var PublicItem = $('.city_features_img');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .4;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddFeaturesItem');
}
}
},
FeaturesBoxItem: function () {
var that = this;
var PublicItem = $('.city_features_list');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddFeaturesList');
}
}
},
ScenarioTabFade: function () {
var that = this;
var PublicItem = $('.scenario_tab');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddScenarioTab');
}
}
},
CaseWrap: function () {
var that = this;
var PublicItem = $('.case_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddCaseWrap');
}
}
},
AboutHead: function () {
var that = this;
var PublicItem = $('.about_head_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAboutHead');
}
}
},
AboutVision: function () {
var that = this;
var PublicItem = $('.about_vision_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAboutVision');
}
}
},
AboutSocialTab: function () {
var that = this;
var PublicItem = $('.about_social_swiper');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAboutSocialTab');
}
}
},
CultureBox: function () {
var that = this;
var PublicItem = $('.culture_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddCultureBox');
}
}
},
AtmosphereWrap: function () {
var that = this;
var PublicItem = $('.atmosphere_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAtmosphereWrap');
}
}
},
WelfareBox: function () {
var that = this;
var PublicItem = $('.culture_welfare_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWelfareBox');
}
}
},
WelfareItem: function () {
var that = this;
var PublicItem = $('.welfare_item_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWelfareItem');
}
}
},
FamilyItem: function () {
var that = this;
var PublicItem = $('.family_item_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddFamilyItem');
}
}
},
NewsItem: function () {
var that = this;
var PublicItem = $('.news_item_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddNewsItem');
}
}
},
SocietyBox: function () {
var that = this;
var PublicItem = $('.society_content_head');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddSocietyBox');
}
}
},
SocietyHead: function () {
var that = this;
var PublicItem = $('.society_list_top');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddSocietyHead');
}
}
},
SocietyItem: function () {
var that = this;
var PublicItem = $('.society_item_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddSocietyItem');
}
}
},
NewsFixed: function () {
var that = this;
var PublicItem = $('.news_fixed_content');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddNewsFixed');
}
}
},
NewsContent: function () {
var that = this;
var PublicItem = $('.news_red_bjq');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddNewsContent');
}
}
},
NewsBjqItem: function () {
var that = this;
$('.news_red_bjq p').addClass('news_bjq_item');
var PublicItem = $('.news_bjq_item');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddNewsBjqItem');
}
}
},
NewsFixedCurrent: function () {
var that = this;
var InTop = 90;
if (that.Width < 1200) {
InTop = 60;
}
if (that.Width > 1200) {
InTop = 30;
}
if (that.Width > 1400) {
InTop = 50;
}
if (that.Width > 1900) {
InTop = 90;
}
if (that.Width > 1200) {
var PublicItem = $('.news_red_fixed');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop;
if (Stop > InTop) {
PublicItem.addClass('news_fixed_current');
} else {
PublicItem.removeClass('news_fixed_current');
}
// var MaxTop = Height + $('.news_red_bjq').height() - $('.news_fixed_content').height();
// if (Stop > MaxTop) {
// PublicItem.addClass('news_fixed_fade');
// } else {
// PublicItem.removeClass('news_fixed_fade');
// }
}
}
},
PublicMbx: function () {
var that = this;
var PublicItem = $('.public_nav_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop + $('.header_wrap').height() + $('.public_nav_box').height();
if (Stop > Height) {
PublicItem.eq(i).addClass('AddPublicMbx AddPublicDefault');
}
if (Stop < Height) {
PublicItem.eq(i).removeClass('AddPublicMbx');
}
}
},
PublicMbxTop: function () {
var that = this;
var PublicItem = $('.public_nav_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * 1.2;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPublicMbxTop');
}
}
},
AdvantageFade: function () {
var that = this;
var PublicItem = $('.plat_advantage_read');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAdvantageFade');
}
}
},
AdvantagePagination: function () {
var that = this;
var PublicItem = $('.plat_advantage_pagination');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAdvantagePagination');
}
}
},
PlatImg: function () {
var that = this;
var PublicItem = $('.plat_images_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddPlatImg');
}
}
},
AboutMap: function () {
var that = this;
var PublicItem = $('.about_map_list');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAboutMap');
}
}
},
AboutNumber: function () {
var that = this;
var PublicItem = $('.about_number_list');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddAboutNumber');
setTimeout(function () {
that.indexNumber();
}, 300);
}
}
},
CoreScrapFade: function () {
var that = this;
var PublicItem = $('.core_scrap_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .7;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddCoreScrapFade');
}
}
},
NewsHeadFade: function () {
var that = this;
var PublicItem = $('.news_head_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddNewsHeadFade');
}
}
},
DevelopBox: function () {
var that = this;
var PublicItem = $('.develop_wrap');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddDevelopBox');
}
}
},
WapNewsBtn: function () {
var that = this;
var PublicItem = $('.news_wap_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .9;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddWapNewsBtn');
}
}
},
//20230725澧炲姞
InvestorNewsItem: function () {
var that = this;
var PublicItem = $('.investor_news_item_box');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddInvestorNewsItem');
}
}
},
InvestorRelationsTab: function () {
var that = this;
var PublicItem = $('.investor_relations_details');
for (var i = 0; i < PublicItem.length; i++) {
var Height = that.Height * .8;
var Stop = that.scrollTop + Height;
if (Stop > PublicItem.eq(i).offset().top) {
PublicItem.eq(i).addClass('AddInvestorRelationsTab');
}
}
},
//杩斿洖椤堕儴
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_button_wrap').on('click', function (e) {
e.preventDefault();
if (that.WapNavIF) {
$('.page_nav_wrap').addClass('page_nav_current');
$('.header_button_wrap').addClass('header_button_active');
$('.header_nav_wrap').addClass('header_nav_hide');
$('.nav_svg_button').addClass('nav_svg_button_active');
$('.header_wrap').addClass('header_after');
$('.cursor_banner_wrap').removeClass('cursor_banner_current');
//绉诲姩绔
$('.wap_nav_wrap').addClass('wap_nav_active');
that.WapNavIF = false;
top = $(window).scrollTop();
$('body').css("top", -top + "px");
$('body').addClass('body_flex');
} else {
$('.header_wrap').removeClass('header_after');
$('.page_nav_wrap').removeClass('page_nav_current');
$('.header_button_wrap').removeClass('header_button_active');
$('.header_nav_wrap').removeClass('header_nav_hide');
$('.nav_svg_button').removeClass('nav_svg_button_active');
$('.cursor_banner_wrap').addClass('cursor_banner_current');
//绉诲姩绔
$('.wap_nav_wrap').removeClass('wap_nav_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 = 59;
}
if (that.Width > 1200) {
that.maoNumber = 120;
}
if (that.Width > 1400) {
that.maoNumber = 128;
}
if (that.Width > 1900) {
that.maoNumber = 150;
}
//閿氱偣婊戝姩
$('.anchor_link').click(function () {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({
scrollTop: targetOffset - that.maoNumber
},
700);
return false;
}
});
setTimeout(function () {
if (_hash && $(_hash).get(0)) {
$('html,body').animate({
scrollTop: $(_hash).offset().top - that.maoNumber
},
700);
}
}, 500);
},
//搴曢儴
footAnimate: function () {
var that = this;
var FootWrap = $('.footer_wrap');
var FootContent = $('.footer_animate');
if (that.Width > 1200) {
FootWrap.css({
height: FootContent.height() + 'px'
});
var scrollTop = $(window).scrollTop();
var footerHeight = FootWrap.offset().top - scrollTop - that.Height;
if (footerHeight <= 0) {
FootContent.css({
WebkitTransform: 'translateY(' + Math.floor(Math.abs(footerHeight / 2)) + 'px)',
transform: 'translateY(' + Math.floor(Math.abs(footerHeight / 2)) + 'px)'
});
}
$(window).scroll(function () {
var scrollTop = $(window).scrollTop();
var footerHeight = FootWrap.offset().top - scrollTop - that.Height;
if (footerHeight <= 0) {
// console.log('鍒颁簡');
FootContent.css({
WebkitTransform: 'translateY(' + Math.floor(Math.abs(footerHeight / 2)) + 'px)',
transform: 'translateY(' + Math.floor(Math.abs(footerHeight / 2)) + 'px)'
});
}
});
}
},
//榧犳爣
CursorFollow: function () {
var that = this;
if (that.Width > 1200) {
var clientX;
var clientY;
//loading 鍏夋爣
if ($('.cursorDiv_circle_box').length > 0) {
that.StrokeC = Math.ceil($(".cursorDiv_circle_svg circle").get(0).getTotalLength());
$('.cursorDiv_circle_load circle').css({
strokeDasharray: that.StrokeC,
strokeDashoffset: that.StrokeC,
});
}
$('body').mousemove(function (e) {
clientX = e.clientX;
clientY = e.clientY;
TweenLite.to('.cursorDiv', 0.1, {
transform: 'translate(' + clientX + 'px,' + clientY + 'px) scale(1)',
opacity: 1,
});
});
$('body').mouseout(function (e) {
clientX = e.clientX;
clientY = e.clientY;
});
$('body').mousedown(function (e) {
clientX = e.clientX;
clientY = e.clientY;
});
$('body').mouseup(function (e) {
clientX = e.clientX;
clientY = e.clientY;
});
}
},
//Loading SVG
SvgAnimate: function () {
console.log('鎵ц');
//鍔犺浇svg
for (var i = 0; i < $(".loading_logo_en svg path").length; i++) {
var OffSet = Math.ceil($(".loading_logo_en svg path").get(i).getTotalLength());
// console.log(OffSet);
$('.loading_logo_en svg path').eq(i).css({
strokeDasharray: OffSet,
strokeDashoffset: OffSet,
});
}
//svg鍔ㄧ敾
setTimeout(function () {
$('.loading_wrap').addClass('loading_active');
for (var j = 0; j < $(".loading_logo_en svg path").length; j++) {
$('.loading_logo_en svg path').eq(j).css({
strokeDashoffset: 0,
transitionDelay: (j * 60) + 'ms',
});
}
}, setTimeout(function () {
$('.loading_wrap').addClass('loading_fade');
}, 800));
},
//瑙嗛
VideoPlay: function () {
var that = this;
$('.about_video_click').on('click', function (e) {
e.preventDefault();
$('.video_pop_wrap').addClass('index_video_active');
$('#AboutVideo').trigger('play');
});
$('.about_video_close').on('click', function (e) {
e.preventDefault();
$('.video_pop_wrap').removeClass('index_video_active');
$('#AboutVideo').trigger('pause');
document.getElementById("AboutVideo").currentTime = 0;
});
},
LoadPlay: function () {
var that = this;
that.SvgTime = 0;
that.ImagesLoad = false;
that.SvgTimeOver = setInterval(function () {
that.SvgTime += 10;
if (that.SvgTime >= 3000 && that.ImagesLoad) {
console.log('杩涘叆');
clearInterval(that.SvgTimeOver);
that.SvgTime = 0;
$('.loading_content').addClass('loading_scale');
$('.loading_wrap').addClass('loading_hide');
$('.index_page_wrap').addClass('index_page_active');
$('.cursorDiv_circle_box').addClass('cursorDiv_circle_hide');
setTimeout(function () {
$('.loading_wrap').remove();
$('.cursorDiv_circle_box').remove();
that.indexInit();
}, 1000);
}
}, 10);
function handleComplete() {
// console.log('鍔犺浇鎴愬姛');
}
var queue = new createjs.LoadQueue();
queue.installPlugin(createjs.Sound);
queue.loadManifest(that.allImages);
queue.on("fileload", function (e) {
});
//鐩戝惉杩涘害浜嬩欢
queue.on("progress", function (e) {
var proNum = Math.ceil(e.progress * 100);
$('.cursorDiv_text_box span').html(proNum);
$('.loading_wap_text span').html(proNum);
$('.cursorDiv_circle_load circle').css({
strokeDashoffset: that.StrokeC - ((that.StrokeC / 100) * (proNum)),
});
if (proNum >= 100) {
console.log('鍒?00浜?);
that.ImagesLoad = true;
}
});
queue.on("complete", handleComplete, this);
},
//Loading
Loading: function () {
var that = this;
for (var i = 0; i < $('img').length; i++) {
if ($('img').eq(i).attr('src') == "") {
// console.log('璺宠繃');
} else {
that.ImgArray.push(
$('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;
}
var arr = that.ImgArray;
that.allImages = unique2(arr);
console.log(that.allImages);
//鍚姩svg鍔ㄧ敾
that.SvgAnimate();
that.BannerNumber = 0;
that.BannerText();
if (that.allImages.length > 0 && $('.loading_wrap').length > 0) {
console.log('鏈夊姞杞介〉闈?);
that.LoadPlay();
if (that.PjaxIf) {
that.PjaxIf = false;
setTimeout(function () {
$('.animate_pjax').removeClass('animate_pjax_remove animate_pjax_active');
}, 1000);
}
} else {
console.log('娌℃湁鍔犺浇椤甸潰,pjax杩涙潵');
that.indexInit();
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_active');
//鍒ゆ柇鏈夋div骞朵笖鏃犲埛鏂伴摼鎺ョ偣杩涙潵
if ($('.index_banner_swiper').length > 0 && that.IndexSwiperIf) {
if (that.Width > 1200) {
that.indexBanner.destroy(false); //閿€姣乻wper
} else {
that.indexWapBanner.destroy(false); //閿€姣乻wper
}
that.indexPageTab.destroy(false); //閿€姣乻wper
}
$('.index_page_wrap').addClass('index_page_active');
setTimeout(function () {
that.PjaxIf = false;
$('.animate_pjax').removeClass('animate_pjax_remove animate_pjax_active');
}, 1000);
}
},
//棣栭〉涓氬姟鍜ㄨ閬僵
FormPop: function () {
$('.form_head_item').on('click', function (e) {
$('.form_head_item').eq($(this).index()).addClass('form_head_current').siblings().removeClass('form_head_current');
});
var PopIf = true;
$('.index_footer_pop').on('click', function (e) {
e.preventDefault();
$('.form_pop_wrap').addClass('form_pop_active');
});
$('.form_pop_close').on('click', function (e) {
e.preventDefault();
$('.form_head_item input').prop('checked', false);
$('.form_pop_book input').prop('checked', false);
$('.form_head_item').removeClass('form_head_current');
$('.form_pop_wrap').removeClass('form_pop_active');
$('.form_pop_inner').removeClass('form_inner_active');
$('.form_success_reply').removeClass('form_success_active');
$('.public_page_wrap_for_qd').removeClass('hav_pop');
});
},
//灞曞巺棰勭害閬僵
FormOrderPop: function () {
var that = this;
$('.order_shade_click').on('click', function (e) {
e.preventDefault();
$('.order_shade_wrap').addClass('order_shade_active');
});
$('#order_shade_pop_button').on('click', function (e) {
e.preventDefault();
var UserUnit = $('[name=unit]').val();
var UserContact = $('[name=contact]').val();
var UserTel = $('[name=tel]').val();
var UserContent = $('[name=content]').val();
var UserMajor = $('[name="major_type"]:checked').val();
if (UserUnit == '') {
alert('璇峰~鍐欏崟浣?);
return false;
} else if (UserContact == '') {
alert('璇峰~鍐欒仈绯讳汉');
return false;
} else if (UserTel == '') {
alert('璇峰~鍐欒仈绯绘柟寮?);
return false;
} else if (UserContent == '') {
alert('璇峰~鍐欎笟鍔¢渶姹?);
return false;
} else if (UserMajor == null) {
alert('璇烽€夋嫨绫诲瀷');
return false;
} else {
$('.order_shade_wrap .form_pop_inner').addClass('form_pop_inner_active');
$('.order_shade_wrap .form_success_reply').addClass('form_success_active');
}
});
$('.order_shade_close').on('click', function (e) {
e.preventDefault();
$('.order_shade_wrap').find('[name=unit]').val('')
$('.order_shade_wrap').find('[name=contact]').val('')
$('.order_shade_wrap').find('[name=tel]').val('')
$('.order_shade_wrap').find('[name=content]').val('')
$('.order_shade_wrap').find('[name=major_type]').prop("checked", false);
$('.order_shade_wrap .form_head_item').removeClass('form_head_current');
$('.order_shade_wrap').removeClass('order_shade_active');
$('.order_shade_wrap .form_pop_inner').removeClass('form_pop_inner_active');
$('.order_shade_wrap .form_success_reply').removeClass('form_success_active');
});
},
//浜嬩欢
AddEventList: function () {
var that = this;
function return_false() {
return false;
}
$('#top').on('click', function (e) {
e.preventDefault();
that.ReturnTop();
});
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢
if (isiOS) {
} else {
}
$('.advantage_read_item').hover(function () {
$('.advantage_content_list .advantage_content_item').removeClass('advantage_content_active');
$('.advantage_content_list .advantage_content_item').eq($(this).index()).addClass('advantage_content_active');
}, function () {
$('.advantage_content_list .advantage_content_item').removeClass('advantage_content_active');
});
$('.feature_page_item a').hover(function () {
$(this).addClass('feature_page_hover');
}, function () {
$('.feature_page_item a').removeClass('feature_page_hover');
});
$('.tab_content_item').hover(function () {
$('.index_tab_wrap').addClass('index_tab_current');
$('.tab_content_item').eq($(this).index()).addClass('tab_content_active').siblings().removeClass('tab_content_active');
if ($(this).index() == 0) {
$('.index_tab_wrap').addClass('tab_svg_active').removeClass('tab_svg_current');
}
if ($(this).index() == 1) {
$('.index_tab_wrap').addClass('tab_svg_current').removeClass('tab_svg_active');
}
}, function () {
$('.index_tab_wrap').removeClass('index_tab_current');
});
// $('.tab_content_item').hover(function () {
// $('.index_tab_wrap').addClass('index_tab_current');
// $('.tab_content_item').eq($(this).index()).addClass('tab_content_active').siblings().removeClass('tab_content_active');
// if (that.Width < 1200) {
// $('.tab_back_active').css({
// cy: ($(this).index() * 128) - 14 + '%',
// });
// } else {
// $('.tab_back_active').css({
// cx: ($(this).index() * 116) - 8 + '%',
// });
// }
// }, function () {
// $('.index_tab_wrap').removeClass('index_tab_current');
// });
//鍚堜綔浼欎即榧犳爣缁忚繃
$('.partner_tab_item').hover(function () {
$('.partner_tab_list').addClass('partner_list_hover');
}, function () {
$('.partner_tab_list').removeClass('partner_list_hover');
});
//banner鍒囨崲
$('.index_banner_prev').on('click', function (e) {
e.preventDefault();
$('.index_banner_swiper .swiper-slide').eq(that.indexBanner.realIndex).addClass('index_animate_end');
console.log(that.indexBanner.realIndex);
that.BannerClick = true;
if (that.indexBanner.realIndex == 0) {
that.BannerNumber = $('.index_banner_swiper .swiper-slide').length - 1;
that.indexBanner.slideTo($('.index_banner_swiper .swiper-slide').length - 1);
that.BannerText();
} else {
that.BannerNumber = that.indexBanner.realIndex - 1;
that.indexBanner.slideTo(that.indexBanner.realIndex - 1);
that.BannerText();
}
});
$('.index_banner_next').on('click', function (e) {
e.preventDefault();
$('.index_banner_swiper .swiper-slide').eq(that.indexBanner.realIndex - 1).addClass('index_animate_end');
that.BannerClick = true;
if (that.indexBanner.realIndex == ($('.index_banner_swiper .swiper-slide').length - 1)) {
that.BannerNumber = 0;
that.indexBanner.slideTo(0);
that.BannerText();
} else {
that.BannerNumber = that.indexBanner.realIndex + 1;
that.indexBanner.slideTo(that.indexBanner.realIndex + 1);
that.BannerText();
}
});
//鎸夐挳缁忚繃
$('.index_banner_more a').hover(function () {
$(this).removeClass('index_banner_default').addClass('index_banner_hover');
}, function () {
$(this).removeClass('index_banner_hover').addClass('index_banner_default');
});
//鏍稿績鎶€鏈紶鏍囩粡杩
if (that.Width > 1200) {
$('.core_wap_tab .swiper-wrapper .swiper-slide').hover(function () {
$('.core_platform_item').removeClass('core_platform_current');
$('.core_wap_tab .swiper-wrapper .swiper-slide').find('.core_platform_item').eq($(this).index()).addClass('core_platform_current');
});
}
//鏍稿績鎶€鏈痶ab
$('.core_tab_link').on('click', function (e) {
e.preventDefault();
$('.core_tab_link').eq($(this).index()).addClass('core_tab_current').siblings().removeClass('core_tab_current');
console.log($(this).index());
that.CorPlatTab.slideTo($(this).index());
$('.core_tab_after').css({
top: $(this).index() * $('.core_tab_link').height()
});
});
//瑙e喅鏂规-搴旂敤鍦烘櫙
$('.wap_scenario_tab .swiper-slide').on('click', function (e) {
e.preventDefault();
$('.wap_scenario_tab .swiper-slide .scenario_item').removeClass('scenario_current');
$('.wap_scenario_tab .swiper-slide').eq($(this).index()).find('.scenario_item').addClass('scenario_current');
that.ScenarioTab.slideTo($(this).index());
});
//瑙e喅鏂规-鍔熻兘涓庝紭鍔
$('.features_item_box').hover(function () {
$('.features_item_box').eq($(this).index()).addClass('features_item_current').siblings().removeClass('features_item_current');
$('.features_life_min').eq($(this).index()).addClass('features_life_current').siblings().removeClass('features_life_current');
});
//浼佷笟鏂囧寲-鐐瑰嚮
$('.culture_click_box .culture_tit_after').css({
width: $('.culture_click_box .culture_item').eq(0).width()
});
$('.culture_click_box .culture_item').on('click', function (e) {
e.preventDefault();
$('.culture_click_box .culture_item').eq($(this).index()).addClass('culture_current').siblings().removeClass('culture_current');
that.CultureTab.slideTo($(this).index());
$('.culture_click_box .culture_tit_after').css({
width: $('.culture_click_box .culture_item').eq($(this).index()).width(),
left: $('.culture_click_box .culture_item').eq($(this).index()).position().left
});
});
//宸ヤ綔姘涘洿-鐐瑰嚮
$('.atmosphere_click_box .culture_tit_after').css({
width: $('.atmosphere_click_box .culture_item').eq(0).width()
});
$('.atmosphere_item').eq(0).addClass('atmosphere_current');
$('.atmosphere_click_box .culture_item').on('click', function (e) {
e.preventDefault();
$('.atmosphere_click_box .culture_item').eq($(this).index()).addClass('culture_current').siblings().removeClass('culture_current');
$('.atmosphere_item').removeClass('atmosphere_current');
$('.atmosphere_item').eq($(this).index()).addClass('atmosphere_current');
$('.atmosphere_click_box .culture_tit_after').css({
width: $('.atmosphere_click_box .culture_item').eq($(this).index()).width(),
left: $('.atmosphere_click_box .culture_item').eq($(this).index()).position().left
});
});
//鍛樺伐绂忓埄-鐐瑰嚮
$('.welfare_click_box .culture_tit_after').css({
width: $('.welfare_click_box .culture_item').eq(0).width()
});
$('.welfare_click_box .culture_item').on('click', function (e) {
e.preventDefault();
$('.welfare_click_box .culture_item').eq($(this).index()).addClass('culture_current').siblings().removeClass('culture_current');
$('.welfare_click_box .culture_tit_after').css({
width: $('.welfare_click_box .culture_item').eq($(this).index()).width(),
left: $('.welfare_click_box .culture_item').eq($(this).index()).position().left
});
});
//骞冲彴浼樺娍
$('.plat_pagination_tab .swiper-slide').on('click', function (e) {
e.preventDefault();
that.AdvantageTab.slideTo($(this).index());
$('.plat_pagination_tab .swiper-slide .plat_pagination_item').removeClass('plat_pagination_current');
$('.plat_pagination_tab .swiper-slide').eq($(this).index()).find('.plat_pagination_item').addClass('plat_pagination_current');
});
//鏂伴椈鍐呴〉瀵艰埅
var NewsPublic = $('.header_page_active .header_nav_item');
for (var i = 0; i < NewsPublic.length; i++) {
NewsPublic.eq(i).find('a').attr('data-number', i)
}
$('.header_page_active .header_nav_item a').hover(function (e) {
console.log($(this).attr('data-number'));
$('.news_nav_item_box').stop().slideUp(600).removeClass('news_nav_item_active');
$('.news_nav_item_box').eq($(this).attr('data-number')).stop().slideDown(600).addClass('news_nav_item_active');
});
//棣栭〉搴曢儴鍒嗗叕鍙
$('.footer_address_item').on('click', function () {
$('.company_pop_wrap').addClass('company_pop_active');
$('.company_pop_item').eq($(this).index()).addClass('company_pop_current');
});
$('.company_pop_close').on('click', function (e) {
e.preventDefault();
$('.company_pop_wrap').removeClass('company_pop_active');
$('.company_pop_item').removeClass('company_pop_current');
});
//绉诲姩绔椤佃В鍐虫柟妗
$('.wap_title_item').on('click', function (e) {
e.preventDefault();
$('.wap_title_item').eq($(this).index()).addClass('wap_title_current').siblings().removeClass('wap_title_current');
that.WapFaqBackTab.slideTo($(this).index());
that.WapFaqContentTab.slideTo($(this).index());
});
//20230725澧炲姞
$('.investor_details_nav_item').hover(function () {
$('.investor_details_nav_item').addClass('investor_details_nav_default').eq($(this).index()).addClass('investor_details_nav_hover');
}, function () {
$('.investor_details_nav_item').removeClass('investor_details_nav_default investor_details_nav_hover');
});
//绉诲姩绔
$('.investor_details_wap_item').hover(function () {
$('.investor_details_wap_item').addClass('investor_details_wap_default').eq($(this).index()).addClass('investor_details_wap_hover');
}, function () {
$('.investor_details_wap_item').removeClass('investor_details_wap_default investor_details_wap_hover');
});
},
joinPage: function () {
//鍔犲叆浜戝ぉ-鎷涜仒
var item = $('.society_item_box');
for (var i = 0; i < item.length; i++) {
item.eq(i).attr('data-height', item.eq(i).find('.society_item_detail').height());
}
item.eq(0).addClass('society_item_current');
item.eq(0).find('.society_item_content').css({
height: item.eq(0).attr('data-height')
});
$('.society_item_head').on('click', function (e) {
e.preventDefault();
if ($(this).parents('.society_item_box').hasClass('society_item_current')) {
$(this).parents('.society_item_box').removeClass('society_item_current');
$(this).parents('.society_item_box').find('.society_item_content').css({
height: 0
});
} else {
$(this).parents('.society_item_box').addClass('society_item_current');
$(this).parents('.society_item_box').find('.society_item_content').css({
height: $(this).parents('.society_item_box').attr('data-height')
});
}
})
},
//鍏充簬鎴戜滑浣垮懡
Mission: function () {
var that = this;
var Item = $('.about_head_item');
for (var i = 0; i < Item.length; i++) {
Item.eq(i).attr('data-height', Item.eq(i).find('.about_item_height').height());
}
Item.hover(function () {
Item.eq($(this).index()).addClass('about_item_current').siblings().removeClass('about_item_current');
Item.eq($(this).index()).siblings().find('.about_item_read').css({
height: 0
});
Item.eq($(this).index()).find('.about_item_read').css({
height: Item.eq($(this).index()).find('.about_item_height').height()
});
});
},
//绉诲姩绔鑸
WapNavBox: function () {
if ($('.wap_nav_menu').length > 0) {
$('.wap_nav_menu').menu();
}
},
//绉诲姩绔牳蹇冩妧鏈
WapCoreSwiper: function () {
var that = this;
if (that.Width < 1200) {
that.WapCoreTab = new Swiper(".wap_core_tab", {
slidesPerView: "auto",
spaceBetween: 0,
});
}
$('.wap_core_tab .swiper-slide').on('click', function (e) {
e.preventDefault();
that.WapCoreTab.slideTo($(this).index());
that.CorPlatTab.slideTo($(this).index());
})
},
//绉诲姩绔畻娉曞钩鍙
WapPlatformSwiper: function () {
var that = this;
if (that.Width < 1200) {
that.WapPlatformTab = new Swiper(".core_wap_tab", {
speed: 600,
pagination: {
el: ".core_wap_pagination",
clickable: true,
},
});
}
},
WapPlatIconSwiper: function () {
var that = this;
if (that.Width < 1200) {
that.WapPlatIconTab = new Swiper(".wap_plat_icon_tab", {
speed: 600,
pagination: {
el: ".wap_plat_icon_pagination",
clickable: true,
},
});
}
},
WapScenarioSwiper: function () {
var that = this;
that.WapScenarioTab = new Swiper(".wap_scenario_tab", {
speed: 600,
slidesPerView: "auto",
centerInsufficientSlides: true,
// pagination: {
// el: ".wap_plat_icon_pagination",
// clickable: true,
// },
});
},
WapPlatPaginationSwiper: function () {
var that = this;
that.WapPlatPaginationTab = new Swiper(".plat_pagination_tab", {
speed: 600,
slidesPerView: "auto",
centerInsufficientSlides: true,
// pagination: {
// el: ".wap_plat_icon_pagination",
// clickable: true,
// },
});
},
WapFaqBackSwiper: function () {
var that = this;
that.WapFaqBackTab = new Swiper(".wap_faq_back_tab", {
speed: 600,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
loopAdditionalSlides: 0,
});
},
WapFaqContentSwiper: function () {
var that = this;
that.WapFaqContentTab = new Swiper(".wap_faq_content_tab", {
speed: 600,
//绂佹婊戝姩鏃秙wiper绉诲姩
followFinger: true,
//绂佹鎵嬫寚婊戝姩
allowTouchMove: false,
loopAdditionalSlides: 0,
});
},
AtmosphereContentSwiper: function () {
var that = this;
if (that.Width < 1200) {
that.AtmosphereContentTab = new Swiper(".atmosphere_content_tab", {
speed: 600,
pagination: {
el: ".atmosphere_pagination",
clickable: true,
},
});
}
},
qd_item_f: function () {
var $pa = $('.qd_chips_nav');
$pa.each(function () {
var $this = $(this), $chd = $this.find('.qd_chips_item'), width = 0;
$this.removeAttr('style');
if ($chd.length) {
$chd.each(function () {
width += $(this).outerWidth(true);
});
if (width > $this.width()) {
$this.width(width);
}
}
});
},
qdChipsSwiper1: function () {
var that = this;
var $item = $('.qd_chips_item1');
var __old_index = 0, __new_index = 0;
if (!$('.swiper-qd-chips1').length) {
return;
}
if ($item.length && $item.filter('.qd_chips_item_current').length) {
__old_index = $item.index($item.filter('.qd_chips_item_current').eq(0));
}
that.qdChipsTab1 = new Swiper(".swiper-qd-chips1", {
speed: 600,
initialSlide: 0,
autoplay: false,
on: {
init: function () {
this.slideTo(__old_index, 0);
},
transitionStart: function () {
$item.eq(this.activeIndex).click();
},
transitionEnd: function () {
},
}
});
if (!$item.length) {
return false;
}
$item.eq(__old_index).addClass('qd_chips_item_current').siblings().removeClass('qd_chips_item_current');
$item.hover(function () {
var _index = $item.index(this);
__new_index = _index;
if (__new_index != __old_index) {
$item.eq(__old_index).removeClass('qd_chips_item_current');
}
}, function () {
$item.eq(__old_index).addClass('qd_chips_item_current');
});
$item.on('click', function (e) {
var _index = $item.index(this);
e.preventDefault();
that.qdChipsTab1.slideTo(_index, 600);
$(this).addClass('qd_chips_item_current').siblings().removeClass('qd_chips_item_current');
__old_index = __new_index = _index;
});
},
qd_chips_verif: function () {
var that = this;
var data;
var $popWrap = $('.form_pop_wrap_for_qd').eq(0);
if (!$popWrap.length) {
return false;
}
var $popInner = $popWrap.find('.form_pop_inner').eq(0);
var $form_success_reply = $popWrap.find('.form_success_reply').eq(0);
var $mid = $('#form_qd_mid');
var $aid = $('#form_qd_aid');
var $company = $popWrap.find('[name=company]');
var $username = $popWrap.find('[name=username]');
var $tel = $popWrap.find('[name=tel]');
var $content = $popWrap.find('[name=content]');
var $code = $popWrap.find('[name=code]');
var $showyz = $('#showyz');
var $chk = $popWrap.find('.form_checkbox_for_qd');
var $btn = $popWrap.find('.form_pop_button');
var url = $popWrap.find('form').attr('action');
$btn.on('click', function (e) {
e.preventDefault();
var input_username_val = $.trim($username.val());
var input_tel_val = $.trim($tel.val());
var input_company_val = $.trim($company.val());
var input_content_val = $.trim($content.val());
var input_code_val = $.trim($code.val());
if (input_company_val == '') {
alert('鍏徃鍚嶇О涓嶈兘涓虹┖');
$company.focus();
return false;
}
if (input_username_val == '') {
alert('濮撳悕涓嶈兘涓虹┖');
$username.focus();
return false;
}
if (input_tel_val == '') {
alert('鐢佃瘽涓嶈兘涓虹┖');
$tel.focus();
return false;
}
if (input_tel_val != '' && !/^0{1,2}[0-9]{2,3}[\s\-]?[0-9]{7,11}$/.test(input_tel_val) && !/^1[3-9][0-9]{9}$/.test(input_tel_val)) {
alert('鐢佃瘽鏍煎紡涓嶆纭?);
$tel.focus();
return false;
}
if (input_content_val == '') {
alert('闇€姹傛杩颁笉鑳戒负绌?);
$content.focus();
return false;
}
if (input_code_val.length != 4 && !/^\w{4}$/.test(input_code_val)) {
alert('楠岃瘉鐮佽緭鍏ラ敊璇?);
$code.val('');
$code.focus();
$showyz.click();
return false;
}
if (!$chk.prop('checked')) {
alert('璇峰嬀閫変笅鏂圭殑銆婇殣绉佷繚鎶よ鏄庛€嬪閫夋');
return false;
}
if ($btn.hasClass('is_submiting')) {
alert('姝e湪鎻愪氦涓?..');
return false;
}
$btn.addClass('is_submiting');
data = {
company: input_company_val,
username: input_username_val,
tel: input_tel_val,
code: input_code_val,
content: input_content_val,
mid: $mid.val(),
aid: $aid.val()
};
$.ajax({
url: url,
type: 'POST',
data: data,
dataType: 'json',
success: function (data) {
if (data.status) {
$company.val('');
$username.val('');
$tel.val('');
$code.val('');
$content.val('');
$showyz.click();
$popInner.addClass('form_inner_active');
$form_success_reply.addClass('form_success_active');
/*
$popWrap.addClass('form_pop_active');
$totalWrap.addClass('hav_pop');
*/
if (data.info && data.info.pdf) {
window.location.href = data.info.pdf;
}
$btn.removeClass('is_submiting');
} else {
$showyz.click();
alert(data.error);
$btn.removeClass('is_submiting');
}
},
error: function () {
alert('鎻愪氦澶辫触');
$showyz.click();
$btn.removeClass('is_submiting');
}
});
});
},
qd_chips_con_f: function () {
var that = this;
var $popWrap = $('.form_pop_wrap_for_qd').eq(0);
var $popFirstWrap = $('.form_pop_wrap_first_qd').eq(0);
var $totalWrap = $('.public_page_wrap_for_qd').eq(0);
$('.qd_chips_con').each(function (__i, __e) {
var $this = $(this);
var $conWrap = $this.find('.qd_chips_mycon').eq(0), $con = $this.find('.qd_chips_mycon_inner').eq(0);
var $btn = $this.find('.qd_btn').eq(0);
var old_text = $btn.text(), new_text = $btn.data('expandinfo');
$btn.click(function (e) {
var mid = $(this).data('mid'), aid = $(this).data('aid');
var con_hei = 0;
if (new_text && !$btn.hasClass('isexpanding')) {
con_hei = $con.height();
$conWrap.animate({height: con_hei}, 450, 'linear', function () {
$conWrap.css('height', 'auto');
});
$btn.addClass('isexpanding').text(new_text);
} else {
$('#form_qd_mid').val(mid);
$('#form_qd_aid').val(aid);
if ($btn.hasClass('qd_one_btn')) {
e.preventDefault();
$popWrap.addClass('form_pop_active');
$totalWrap.addClass('hav_pop');
} else if ($btn.hasClass('qd_two_btn')) {
e.preventDefault();
$popFirstWrap.find('.form_table_read').html($this.find('.qd_hide_con').html());
$popFirstWrap.addClass('form_pop_active');
$totalWrap.addClass('hav_pop');
}
}
});
});
if (!$popFirstWrap.length) {
return;
}
$popFirstWrap.find('.form_pop_button').on('click', function (e) {
e.preventDefault();
$popFirstWrap.removeClass('form_pop_active');
$popWrap.addClass('form_pop_active');
$totalWrap.addClass('hav_pop');
});
that.qd_chips_verif();
},
qdChipsSwiper2: function () {
var that = this;
var $item = $('.qd_chips_item2');
var __old_index = 0, __new_index = 0;
if (!$('.swiper-qd-chips2').length) {
return;
}
if ($item.length && $item.filter('.qd_chips_item_current').length) {
__old_index = $item.index($item.filter('.qd_chips_item_current').eq(0));
}
that.qdChipsTab2 = new Swiper(".swiper-qd-chips2", {
speed: 600,
initialSlide: 0,
autoplay: false,
on: {
init: function () {
this.slideTo(__old_index, 0);
},
transitionStart: function () {
$item.eq(this.activeIndex).click();
},
transitionEnd: function () {
},
}
});
if (!$item.length) {
return false;
}
$item.eq(__old_index).addClass('qd_chips_item_current').siblings().removeClass('qd_chips_item_current');
$item.hover(function () {
var _index = $item.index(this);
__new_index = _index;
if (__new_index != __old_index) {
$item.eq(__old_index).removeClass('qd_chips_item_current');
}
}, function () {
$item.eq(__old_index).addClass('qd_chips_item_current');
});
$item.on('click', function (e) {
var _index = $item.index(this);
e.preventDefault();
that.qdChipsTab2.slideTo(_index, 600);
$(this).addClass('qd_chips_item_current').siblings().removeClass('qd_chips_item_current');
__old_index = __new_index = _index;
});
},
//瑙e喅鏂规box
PlatBack: function () {
if ($('.plat_back').height() < $('.plat_content').height()) {
$('.plat_back').addClass('plat_min_height');
$('.plat_back').css({
height: $('.plat_content').height()
})
}
if ($('.about_development_back').height() < $('.about_development_box').height()) {
$('.about_development_back').addClass('plat_min_height');
$('.about_development_back').css({
height: $('.about_development_box').height()
})
}
},
//鑺墖骞冲彴
ChipBox: function () {
$('.chip_line_max').attr('data-height', $('.chip_line_back').height());
$('.chip_line_max').css({
height: $('.chip_line_max').attr('data-height')
});
},
//EventKey: "ontouchstart" in document.documentElement ? "touchstart" : "click",
Init: function () {
var that = this;
that.AnimatePjax();
},
indexInit: function () {
var that = this;
that.BannerIF = true;
that.NumberIf = true;
$('.index_banner_swiper .swiper-slide-active').removeClass('index_animate_active index_animate_load index_animate_end');
$('.index_canvas').removeClass('index_canvas_active');
$('.index_banner_line').removeClass('index_line_init');
$('.header_wrap').removeClass('header_current');
$('.index_btn_box').removeClass('index_btn_init');
that.qd_item_f();
$(window).resize(function () {
that.qd_item_f();
});
setTimeout(function () {
that.Scrollbar();
that.DevelopScrollbar();
that.maoAnimate();
that.BannerAnimate();
$('.index_banner_swiper .swiper-slide').removeClass('index_animate_remove');
$('.header_wrap').addClass('header_current');
$('.index_canvas').addClass('index_canvas_active');
$('.cursor_banner_wrap').addClass('cursor_banner_current');
that.BannerText();
that.partnerSwiper();
that.AddressSwiper();
that.navHover();
that.WapNav();
that.pdNav();
that.indexSwiper();
that.CorPlatSwiper();
that.Mission();
that.SocialSwiper();
that.DevelopmentSwiper();
that.ScenarioSwiper();
that.CultureSwiper();
that.WelfareSwiper();
that.FamilySwiper();
that.AdvantageSwiper();
that.joinPage();
that.FormPop();
that.FormOrderPop();
that.VideoPlay();
that.WapNavBox();
that.WapCoreSwiper();
that.PlatBack();
that.WapPlatformSwiper();
that.WapPlatIconSwiper();
that.WapPlatPaginationSwiper();
that.WapScenarioSwiper();
that.WapFaqBackSwiper();
that.WapFaqContentSwiper();
that.AtmosphereContentSwiper();
that.qdChipsSwiper1();
that.qdChipsSwiper2();
that.qd_chips_con_f();
that.AddEventList();
}, 50);
setTimeout(function () {
that.BannerSwiper();
$('.index_banner_swiper .swiper-slide-active').addClass('index_animate_active');
that.BannerCanvas();
}, 600);
setTimeout(function () {
$('.index_btn_box').addClass('index_btn_init');
$('.index_banner_line').addClass('index_line_init');
}, 1000);
},
};
$(function () {
IqwXiongJs.Init();
IqwXiongJs.CursorFollow();
});