var comHead = function () {
var object1 = {
html: `
`
}
return object1
}
var comfooter = function () {
var object2 = {
html: `
鐢佃瘽/Tel:4006 899 866
閭/Mail:marketing@rezenhotels.com
漏 2023 XIANGYUAN NEW MATERIAL All RIGHTS RESERVED. Digital
Powered by VTHINK
`
}
return object2
}
var header = function () {
var object3 = {
html: `
`
}
return object3
}
var footer2 = function () {
var object4 = {
html: `
`
}
return object4
}
$('#comHead').html(comHead().html)
$('#comfooter').html(comfooter().html)
$('#header').html(header().html)
$('#footer2').html(footer2().html)
$('.serve_case').hover(function () {
$(this).addClass('on').siblings().removeClass('on')
})
$('.xxhead').hover(
function () {
$(this).addClass('tab')
},
function () {
$(this).removeClass('tab')
}
)
$('.bBor .menu_span1').on('click', function () {
if ($(this).parents('li').hasClass('on')) {
$(this).parents('li').removeClass('on')
$(this).parents('li').find('.listhhj').slideUp()
} else {
$(this).parents('li').addClass('on')
$(this).parents('li').siblings().removeClass('on')
$(this).parents('li').find('.listhhj').slideDown()
$(this).parents('li').siblings().find('.listhhj').slideUp()
}
})
$('.bBor .menu_span3').on('click', function () {
if ($(this).parents('li').hasClass('on')) {
$(this).parents('li').removeClass('on')
$(this).parents('li').find('.listhhj').slideUp()
} else {
$(this).parents('li').addClass('on')
$(this).parents('li').siblings().removeClass('on')
$(this).parents('li').find('.listhhj').slideDown()
$(this).parents('li').siblings().find('.listhhj').slideUp()
}
})
$('.bBor .menu_span3').click(function () {
if ($(this).parents('li').hasClass('on')) {
$(this).addClass('on').siblings().addClass('on')
} else {
$(this).removeClass('on').siblings().removeClass('on')
}
})
$('.menu_msp .li3').on('click', function () {
if ($('.li3').hasClass('mmeauom')) {
$('.li3').removeClass('mmeauom')
$('body').removeClass('hc-nav-open')
$('.tica-bg').removeClass('on')
} else {
$('.li3').addClass('mmeauom')
$('body').addClass('hc-nav-open')
$('.tica-bg').addClass('on')
}
if ($('.xxlist').hasClass('xxlistss')) {
$('.xxlist').removeClass('xxlistss')
} else {
$('.xxlist').addClass('xxlistss')
}
})
$('.tica-bg').on('click', function () {
$('.xxlist').removeClass('xxlistss')
$('.tica-bg').removeClass('on')
$('body').removeClass('hc-nav-open')
$('.li3').removeClass('mmeauom')
})
if ($('.parallax').length > 0) {
/* $('.parallax').scrolly({bgParallax: true});*/
}
if ($('.swiper-case').length > 0) {
if ($(window).width() > 1000) {
Hgroups2()
} else {
Hgroups1()
}
}
function Hgroups1() {
var swipercase = new Swiper('.swiper-case', {
slidesPerView: 1,
spaceBetween: 0,
loop: true,
loopedSlides: 1,
autoplay: true,
pagination: {
el: '.absrpage'
//clickable :true,
}
})
}
function Hgroups2() {
var swipercase = new Swiper('.swiper-case', {
slidesPerView: 3,
centeredSlides: true,
loop: true,
autoplay: true,
navigation: {
nextEl: '.casebtnext',
prevEl: '.casebtprev'
}
})
}
function skip1() {
window.location.href = 'research.html'
}
function skip2() {
window.location.href = 'research_1.html'
}
function skip3_1() {
window.location.href = 'new_list1.html'
}
function skip3_2() {
window.location.href = 'new_list2.html'
}
function skip4_1() {
window.location.href = 'about.html#abo-1'
}
function skip4_2() {
window.location.href = 'about.html#abo-2'
}
function skip4_3() {
window.location.href = 'about.html#abo-3'
}
function skip4_4() {
window.location.href = 'about.html#abo-4'
}
function skip5() {
window.location.href = 'contact.html'
}
function skip6() {
window.location.href = 'join.html'
}
$('.xxsearch').click(function () {
$(this).fadeOut(300)
$('.guanbia').fadeIn()
$('.xxhead').addClass('isgb')
$('.h_search').addClass('h_searchon')
$('.hsbg').addClass('hsbgon')
})
$('.guanbia').click(function () {
$('.navsearch').fadeIn(300)
$(this).fadeOut(300)
$('.guanbia').fadeOut()
$('.xxhead').removeClass('isgb')
$('.h_search').removeClass('h_searchon')
$('.hsbg').removeClass('hsbgon')
})
$('.gotops').click(function () {
$('body,html').animate({ scrollTop: 0 }, 300)
})
$('.h_backtop').click(function () {
$('body,html').animate({ scrollTop: 0 }, 300)
$('.mpromeau,.mpromeaubg').fadeOut(300)
})
// if ($('.ffxa').length > 0) {
// var Sticky = new hcSticky('.ffxa', {
// stickTo: '.ffxazw',
// top: 100,
// queries: {
// 980: {
// disable: true
// }
// }
// });
// }
$('.fotclick').click(function () {
$('.mpromeau,.mpromeaubg').fadeOut(300)
})
$('.showmpromeau').click(function () {
$('.mpromeau,.mpromeaubg').fadeIn(300)
})
$('.mpromeaubg').click(function () {
$('.mpromeau,.mpromeaubg').fadeOut(300)
})
function addEvent(obj, type, fn) {
if (obj.attachEvent) {
obj.attachEvent('on' + type, function () {
fn.call(obj)
})
} else {
obj.addEventListener(type, fn, false)
}
}
/*
if($('.zaixx26bslider').length>0)
{
var zaixx26bslider = new Swiper('.zaixx26bslider', {
autoplay: {
delay: 30000,
disableOnInteraction: false
},
speed: 1200,
navigation: {
nextEl: '.aniur',
prevEl: '.aniul',
},
scrollbar: {
el: ".zaixx26bsliderbar",
hide: false,
dragSize: 35,
},
centeredSlides: true,
loop: false,
breakpoints: {
320: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20
slidesPerView: 1.5,
spaceBetween: 15
},
768: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68
slidesPerView: 1.5,
spaceBetween: 15
},
1080: { //褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280
slidesPerView: 3,
spaceBetween: 30
}
}
});
zaixx26bslider.slideTo(1, 1000, false);//鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉
}
*/
if ($('.respcslider').length > 0) {
var respcslider = new Swiper('.respcslider', {
autoplay: {
delay: 3000,
disableOnInteraction: false
},
slidesPerView: 'auto',
spaceBetween: 15,
speed: 1200,
navigation: {
nextEl: '.respcsliderbtnr',
prevEl: '.respcsliderbtnl'
},
centeredSlides: false,
loop: true,
breakpoints: {
320: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20
slidesPerView: 2,
spaceBetween: 15
},
768: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68
},
1280: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280
}
}
})
}
if ($('.aboutcslider').length > 0) {
var aboutcslider = new Swiper('.aboutcslider', {
autoplay: {
delay: 3000,
disableOnInteraction: false
},
speed: 1200,
navigation: {
nextEl: '.aniur',
prevEl: '.aniul'
},
centeredSlides: true,
loop: true,
breakpoints: {
320: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20
slidesPerView: 1.5,
spaceBetween: 15
},
768: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68
slidesPerView: 1.5,
spaceBetween: 15
},
1280: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280
slidesPerView: 3,
spaceBetween: 55
}
}
})
}
if ($('.nav_tit').length > 0) {
var thisclass = $('.nav_tit2')
var thispar = $('.nav_tit')
addEvent(window, 'scroll', function () {
var category = thispar.offset().top
var xflmnavjs2 = $(window).scrollTop()
if (xflmnavjs2 > category) {
thisclass.addClass('active')
} else {
thisclass.removeClass('active')
}
})
}
if ($('.zaixx26cslider').length > 0) {
var zaixx26cslider = new Swiper('.zaixx26cslider', {
loop: true,
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false
},
navigation: {
nextEl: '.culturebtnm2',
prevEl: '.culturebtnm1'
},
breakpoints: {
320: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20
slidesPerView: 1.5,
spaceBetween: 15
},
768: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68
slidesPerView: 2,
spaceBetween: 15
},
1280: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280
slidesPerView: 2,
spaceBetween: 30
}
}
})
}
if ($('.customizedslider').length > 0) {
var customizedslider = new Swiper('.customizedslider', {
effect: 'fade',
loop: true,
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false
}
})
}
if ($('.banner').length > 0) {
var banner = new Swiper('.banner', {
effect: 'fade',
loop: false,
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false
},
pagination: {
el: '.bannerpage',
clickable: true
},
on: {
slideChangeTransitionStart: function () {
if (this.activeIndex == 3) $('.counter1').countUp()
}
}
})
}
if ($('.mainservslider').length > 0 && $(window).width() < 1000) {
var mainservslider = new Swiper('.mainservslider', {
effect: 'fade',
loop: true,
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false
},
pagination: {
el: '.mainservpage'
}
})
}
if ($('.soluts').length > 0) {
var solut = new Swiper('.soluts', {
spaceBetween: 20,
slidesPerView: 4,
// centeredSlides: true,
loop: false,
navigation: {
nextEl: '.solutsbtn2',
prevEl: '.solutsbtn1'
},
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: true
},
freeMode: true,
watchSlidesProgress: true,
breakpoints: {
320: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?20
slidesPerView: 1.5,
spaceBetween: 10
},
768: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?68
slidesPerView: 3,
spaceBetween: 15
},
1280: {
//褰撳睆骞曞搴﹀ぇ浜庣瓑浜?280
slidesPerView: 4,
spaceBetween: 15
}
}
})
}
addEvent(window, 'scroll', function() {
var scrTops = $(window).scrollTop();
if(scrTops > 200){
$(".suspension").fadeIn()
}else {
$(".suspension").fadeOut()
}
});
$(".back_top").click(function(){
$("html,body").animate({scrollTop:0},500);
});
$(".j-tencent").hover(function(){
$(".tencent-qq").stop(true,false).animate({width:"51",height:"59",left:"-3"});
},function(){
$(".tencent-qq").stop(true,false).animate({width:"39",height:"45",left:"3"});
});
$(".js_hovr").hover(function(){
$(this).find('.js_hovrsub').fadeIn(300);
},function(){
$(this).find('.js_hovrsub').fadeOut(300);
});
$(".shangqiao").click(function(event) {
if ($('#nb_invite_ok').length > 0) {
$('#nb_invite_ok').click();
}
})
$('#close').click(function () {
$('#shodaw_search').fadeOut(300)
})
$('.msearch').click(function () {
$('#shodaw_search').fadeIn(300)
})
$('.cnav1 li').hover(function () {
var order = $('.cnav1 li').index(this) //閼惧嘲褰囬悙鐟板毊娑斿鎮楁潻鏂挎礀瑜版挸澧燼閺嶅洨顒穒ndex閻ㄥ嫬鈧拷
var nav2 = $('.cnav2' + order)
$(this).parent().find('a').removeClass('cur')
$(this).find('a').addClass('cur')
$('.cnav2' + order)
.addClass('cur')
.siblings('ul')
.removeClass('cur') //閺勫墽銇歝lass娑撶挮on閸旂姳绗傛潻鏂挎礀閸婂吋澧嶇€电懓绨查惃鍑濱V
})
$('.language').hover(
function () {
$('.language-show').addClass('cur')
},
function () {
$('.language-show').removeClass('cur')
}
)
jQuery(document).ready(function () {
var qcloud = {}
$('[_t_nav]').hover(
function () {
var _nav = $(this).attr('_t_nav')
clearTimeout(qcloud[_nav + '_timer'])
qcloud[_nav + '_timer'] = setTimeout(function () {
$('[_t_nav]').each(function () {
$(this)[_nav == $(this).attr('_t_nav') ? 'addClass' : 'removeClass']('cur')
if ($(this).find('a').hasClass('cur')) {
$(this).addClass('oldcur')
}
console.log(_nav, 123)
})
qingchu()
$('#' + _nav).show()
$('#' + _nav)
.find('.xynav_list')
.addClass('on')
.find('.xynav_item')
.eq(0)
.addClass('on')
.find('.xynav_pr,.xynav_con2')
.eq(0)
.addClass('on')
.find('.xynav_item2')
.eq(0)
.addClass('on')
.eq(0)
.addClass('on')
.find('.xynav_con4')
.addClass('on')
}, 150)
//$('.cnav-show').removeClass('cur');
},
function () {
$(this).removeClass('cur')
$('[_t_nav]').removeClass('cur')
var _nav = $(this).attr('_t_nav')
clearTimeout(qcloud[_nav + '_timer'])
qcloud[_nav + '_timer'] = setTimeout(function () {
//$('[_t_nav]').removeClass('cur');
$('.nav').find('.oldcur').removeClass('oldcur').addClass('cur')
$('#' + _nav).hide()
}, 150)
}
)
})
// 娓呴櫎瀵艰埅on
function qingchu() {
$('.xynav_con4').removeClass('on')
$('.xynav_con2').removeClass('on')
$('.xynav_item2').removeClass('on')
$('.xynav_item').removeClass('on')
$('.xynav_pr').removeClass('on')
}
if ($(window).width() < 1280) {
addEvent(window, 'scroll', function () {
var sTop1 = $(window).scrollTop()
if (sTop1 > 100) {
$('.mhead').addClass('mheadon')
} else {
$('.mhead').removeClass('mheadon')
}
})
$('.cureamp1 i').on('click', function () {
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$(this).parents('li').find('.cureamp2').slideUp(200)
} else {
$(this).addClass('on')
$(this).parents('li').find('.cureamp2').slideDown(200)
}
})
$('.popi').on('click', function () {
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$(this).parents('li').find('ul').slideUp(300)
} else {
$(this).addClass('on')
$(this).parents('li').find('ul').slideDown(300)
}
})
$('.mmeau').on('click', function () {
if ($(this).hasClass('on')) {
$('body,html').removeClass('hidden')
$('.mhead').removeClass('mheadonxx')
$(this).removeClass('on mmeauom')
$('.menuMain').slideUp(300)
$('.menuMain').removeClass('showMain')
$('.menuBox .list').hide()
$('.menuBox li').removeClass('on')
} else {
$('body,html').addClass('hidden')
$('.mhead').addClass('mheadonxx')
$(this).addClass('on mmeauom')
$('.menuMain').slideDown(300)
$('.menuMain').addClass('showMain')
}
$('.storeMain').hide()
$('.mtoplauge1').removeClass('on')
$('.yybox').slideUp(300)
})
$('.mtoplauge1').click(function () {
$('.mmeau').removeClass('mmeauom')
$('.menuMain').removeClass('showMain')
$('.menuMain').slideUp(300)
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$('.yybox').slideUp(300)
$('body,html').removeClass('hidden')
$('.mhead').removeClass('mheadonxx')
} else {
$(this).addClass('on')
$('.yybox').slideDown(300)
$('body,html').addClass('hidden')
$('.mhead').addClass('mheadonxx')
}
})
$('.onea').on('click', function () {
$(this).parents('li').toggleClass('on')
$(this).parents('li').find('.list').slideToggle()
$(this).parents('li').siblings().removeClass('on')
$(this).parents('li').siblings().find('.list').slideUp()
})
$('.twoa').on('click', function () {
$(this).parent('li').toggleClass('on')
$(this).parent('li').find('.subtwo').slideToggle()
})
$('.twoa .menu_span2').on('click', function () {
if ($(this).parent('li').hasClass('on')) {
$(this).parent('li').removeClass('on')
$(this).parent('li').find('.subtwo').slideUp()
} else {
$(this).parent('li').addClass('on')
$(this).parent('li').siblings().removeClass('on')
$(this).parent('li').find('.subtwo').slideDown()
$(this).parent('li').siblings().find('.subtwo').slideUp()
}
})
$('.cz_select_title').on('click', function () {
$(this).toggleClass('on')
$(this).siblings('.cz_select_list').slideToggle()
})
$('.clm').on('click', function () {
$(this).toggleClass('on')
$(this).siblings('.clasub').slideToggle()
})
$('.proList a').click(function () {
$('.menuMain').hide()
$('.mmeau').removeClass('mmeauom')
$('.menuMain').removeClass('showMain')
})
}
$('.shai_theme').click(function () {
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$('.popslide_screen .popUls').slideUp(300)
} else {
$(this).addClass('on')
$('.popslide_screen .popUls').slideDown(300)
}
})
if ($('.counter').length > 0) {
$('.counter').countUp()
}
if ($('.aboutbslider').length > 0) {
if ($(window).width() > 1000) {
Hgroups2()
} else {
Hgroups1()
}
}
$('.abt26em').hover(
function () {
$(this).removeClass('on').siblings().addClass('on')
},
function () {
$(this).siblings().removeClass('on')
}
)
$('.index_btn li').click(function () {
var isid = $(this).index()
$(this).addClass('hover').siblings().removeClass('hover')
banner.slideTo(isid, 500, false) //鍒囨崲鍒扮涓€涓猻lide锛岄€熷害涓?绉
})
$('.js_ph a').click(function () {
var isid = $(this).attr('data-href')
var istop = $(isid).offset().top
$('body,html').animate({ scrollTop: istop }, 300)
})
$('.aboutc li').hover(function () {
$(this).addClass('on').siblings().removeClass('on')
})
$('.meaujs').click(function () {
$('.h-meau').addClass('h-layer--active')
})
$('.searchjs').click(function () {
$('.h-search').addClass('h-layer--active')
})
$('.js-close-h-layer').click(function () {
$('.h-layer').removeClass('h-layer--active')
})
$('.zaixx26amrh5').click(function () {
var isid = $(this).parents('.zaixx26amrm').index()
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$(this).siblings('.zaixx26amrdesc').slideUp(300)
} else {
$(this).addClass('on')
$(this).siblings('.zaixx26amrdesc').slideDown(300)
$('.zaixx26aml img').eq(isid).addClass('on')
$('.zaixx26aml img').eq(isid).siblings().removeClass('on')
}
$(this).parents('.zaixx26amrm').siblings('.zaixx26amrm').find('.zaixx26amrh5').removeClass('on')
$(this).parents('.zaixx26amrm').siblings('.zaixx26amrm').find('.zaixx26amrdesc').slideUp(300)
})
$('.header__toggle-menu').click(function () {
$('.header').removeClass('hovFade')
if ($(this).hasClass('is-open')) {
$(this).removeClass('is-open')
$('body').removeClass('body-open')
$('html').removeClass('html-open')
$('.meauboxa').removeClass('meau-open')
} else {
$(this).addClass('is-open')
$('body').addClass('body-open')
$('.meauboxa').addClass('meau-open')
$('html').addClass('html-open')
}
})
$('.c-burger-icon').click(function () {
$('.header').removeClass('hovFade')
if ($(this).hasClass('is-active')) {
$(this).removeClass('is-active')
$('body').removeClass('body-open')
$('html').removeClass('html-open')
$('.menu_page').removeClass('meau-open')
TweenMax.to($('.menu_page'), 0.5, { force3D: true, opacity: 0, left: '100%', delay: 0.1, ease: Expo.easeInOut })
TweenMax.to($('.menu-overlay'), 0.3, { force3D: true, opacity: 0, left: '100%', delay: 0.1, ease: Expo.easeInOut })
} else {
$(this).addClass('is-active')
$('body').addClass('body-open')
$('html').addClass('html-open')
$('.menu_page').addClass('meau-open')
TweenMax.to($('.menu_page'), 1.5, { force3D: true, opacity: 1, left: 0, delay: 0.1, ease: Expo.easeInOut })
TweenMax.to($('.menu-overlay'), 1.2, { force3D: true, opacity: 1, left: 0, delay: 0.1, ease: Expo.easeInOut })
}
})
$('.wap_t_meau').click(function () {
if ($(this).hasClass('isactive')) {
$('body').removeClass('wapopen')
$(this).removeClass('isactive')
$('.wappubbg,.wapsearch').fadeOut(300)
TweenMax.to($('.wap_xlcd'), 0.1, { force3D: true, opacity: 1, top: '100%', delay: 0.3, ease: Expo.easeInOut })
} else {
$('body').addClass('wapopen')
$(this).addClass('isactive')
TweenMax.to($('.wap_xlcd'), 0.1, { force3D: true, opacity: 1, top: 0, delay: 0.3, ease: Expo.easeInOut })
}
})
$('.xyabout2_list .xyabout2_name').hover(function () {
var isin = $(this).index()
$(this).addClass('on').siblings().removeClass('on')
// $('.xyab2_con').eq(isin).fadeIn(300);
// $('.xyab2_con').eq(isin).siblings().fadeOut(300);
$('.xyab2_con').eq(isin).addClass('on')
$('.xyab2_con').eq(isin).siblings().removeClass('on')
})
// $('.honor_list .honor_name').click(function () {
// var isin = $(this).index();
// $(this).addClass('on').siblings().removeClass('on');
// $('.honor_con2').eq(isin).addClass('on');
// $('.honor_con2').eq(isin).siblings().removeClass('on');
// })
$('.honor_name').click(function () {
var iss = $(this).index()
$(this).addClass('on').siblings().removeClass('on')
$('.honor_con2').eq(iss).addClass('on').siblings().removeClass('on')
})
$('.xynav_list .xynav_item p').click(function () {
qingchu()
$(this).parents('.xynav_item').addClass('on')
$(this).parents('.xynav_item').find('.xynav_con2').addClass('on')
$(this).parents('.xynav_item').find('.xynav_item2').eq(0).addClass('on')
$(this).parents('.xynav_item').find('.xynav_item2').eq(0).find('.xynav_con4').addClass('on')
$(this).parents('.xynav_item').find('.xynav_pr').addClass('on')
})
$('.xynav_con2 .xynav_item2').hover(function () {
$(this).addClass('on').siblings().removeClass('on')
$('.xynav_title .xynav_con4').removeClass('on')
$(this).find('.xynav_con4').addClass('on')
})
$('.scrillindex').click(function () {
var scrillindex = $('.partnerBoxx').offset().top - 64
$('body,html').animate({ scrollTop: scrillindex }, 350)
})
$('.stb1').click(function () {
var stb1 = $('.cz_two ').offset().top - 64
$('body,html').animate({ scrollTop: stb1 }, 350)
})
$('.nav_tit2 a').click(function () {
// var inids = $(this).attr('data-id');
// var istip = $(inids).offset().top;
$(this).addClass('on').siblings().removeClass('on')
// $('body,html').animate({ 'scrollTop': istip }, 300);
})
$('.wap_search').click(function () {
/*if($(this).hasClass('ison'))
{
$(this).removeClass('ison');
$('.wappubbg').fadeOut(300);
$('.wapsearch').fadeOut(300);
}
else{
$(this).addClass('ison');
$('.wappubbg').fadeIn(500);
$('.wapsearch').fadeIn(500);
$('.wap_t_meau').addClass('isactive');
}
*/
$('.wappubbg').fadeIn(500)
$('.wapsearch').fadeIn(500)
$('.wap_t_meau').addClass('isactive')
TweenMax.to($('.wap_xlcd'), 0.1, { force3D: true, opacity: 1, top: '100%', delay: 0.3, ease: Expo.easeInOut })
})
$('.wappubbg').click(function () {
$(this).fadeOut(200)
$('.wapsearch').fadeOut(300)
$('.wap_search').removeClass('ison')
})
$('.gtsbmore a').click(function () {
if ($(this).hasClass('active')) {
$(this).removeClass('on')
$('.gtsbpipwzhide').hide()
} else {
$('.gtsbpipwzhide').show()
$(this).addClass('on')
}
})
$('.joblistna').click(function () {
if ($(this).hasClass('active')) {
$(this).removeClass('active')
$(this).siblings('.joblistnb ').slideUp(300)
} else {
$(this).siblings('.joblistnb ').slideDown(300)
$(this).addClass('active')
}
$(this).parents('.joblistn').siblings('.joblistn').find('.joblistna').removeClass('active')
$(this).parents('.joblistn').siblings('.joblistn').find('.joblistnb').slideUp(300)
})
$('.pubwapnavm span').click(function () {
if ($(this).hasClass('active')) {
$(this).removeClass('active')
$('.pubwapnavmsub').slideUp(300)
} else {
$(this).addClass('active')
$('.pubwapnavmsub').slideDown(300)
}
})
$('.wap_yy span').click(function () {
if ($(this).hasClass('active')) {
$(this).removeClass('active')
$('.wap_yyul').slideUp(300)
} else {
$(this).addClass('active')
$('.wap_yyul').slideDown(300)
}
})
if ($('.videoabout').length > 0) {
var videoabout = document.getElementById('videoabout')
function playVid() {
videoabout.play()
}
function pauseVid() {
videoabout.pause()
}
$('.wozsjzximgi').click(function () {
$('.videolay,.videolaybg').fadeIn(300)
playVid()
})
$('.closevideo').click(function () {
$('.videolay,.videolaybg').fadeOut(300)
pauseVid()
})
}
$('.tsina').click(function () {
$('.ewmimg,.videolaybg').fadeIn(300)
})
$('.videolaybg').click(function () {
$('.ewmimg,.videolaybg,.videolay').fadeOut(300)
if ($('.videoabout').length > 0) {
pauseVid()
}
})
$('.layui-nav-item').hover(
function () {
$(this).find('dl').addClass('ishowa')
},
function () {
$(this).find('dl').removeClass('ishowa')
}
)
$('.menu-level-1 span').click(function () {
if ($(this).hasClass('is-open')) {
$(this).removeClass('is-open')
$(this).siblings('.menu-level').slideUp(500)
} else {
$(this).addClass('is-open')
$(this).siblings('.menu-level').slideDown(500)
}
$(this).parents('.menu-level-1').siblings('.menu-level-1').find('span').removeClass('is-open')
$(this).parents('.menu-level-1').siblings('.menu-level-1').find('.menu-level').slideUp(500)
})
// 氓炉录猫藛陋忙聬艙莽麓垄
$('.navsearch').click(function () {
$(this).fadeOut(300)
$('.close').fadeIn()
$('.nav').addClass('navon')
$('.h_search').addClass('h_searchon')
$('.hsbg').addClass('hsbgon')
})
$('.close').click(function () {
$(this).fadeOut(300)
$('.navsearch').fadeIn(300)
$('.close').fadeOut()
$('.nav').removeClass('navon')
$('.h_search').removeClass('h_searchon')
$('.hsbg').removeClass('hsbgon')
})
$('.worldoul li').click(function () {
$(this).addClass('on')
$(this).siblings('li').removeClass('on')
var isind = $(this).index()
$('.worldtab').eq(isind).siblings().hide()
$('.worldtab').eq(isind).addClass('on').siblings().removeClass('on')
$('.worldtab').eq(isind).fadeIn(300)
})
$('.xinxl23b li').hover(function () {
$(this).addClass('on').siblings().removeClass('on')
var isindass = $(this).index()
$('.xinxl23cul').eq(isindass).fadeIn(300)
$('.xinxl23cul').eq(isindass).siblings().fadeOut(300)
})
$(window).scroll(function () {
var sct = $(window).scrollTop()
if (sct > 10) {
$('.header').removeClass('hovFade')
}
if (sct > 300) {
$('.xxhead').addClass('scron')
// $(".sliDoNav").slideDown(900);
// $("#comHeader").fadeOut(0)
} else {
$('.xxhead').removeClass('scron')
// $(".sliDoNav").slideUp(500);
// $("#comHeader").fadeIn(900)
}
if (sct > 2000) {
$('.starCase').addClass('scrollCase')
} else {
$('.starCase').removeClass('scrollCase')
}
})
$(window).resize(function () {
getbaph()
videohide()
})
getbaph()
videohide()
function videohide() {
if ($(window).width() < 1000) {
$('.hh5banervideo').remove()
}
}
function getbaph() {
if ($(window).width() < 1000 && $('.isbanner').length > 0) {
// var mehe = $(window).width() * (350 / 750);
$('.isbanner').each(function () {
var pbg = $(this).attr('_style')
$(this).attr('style', pbg)
})
}
}
addEvent(window, 'scroll', function () {
var gotops = $('.gotops,.go19gg')
var isbacktopnum = $(window).scrollTop()
if (isbacktopnum > 500) {
gotops.fadeIn(500)
} else {
gotops.fadeOut(500)
}
})
if ($('.xflmnavjs').length > 0) {
var thisclass = $('.xflmnavjs')
var thisfixed = $('.xflmnav')
var thisfixeddd = $('.xflmnav dd')
addEvent(window, 'scroll', function () {
var xflmnavjs = thisclass.offset().top - 104
var xflmnavjs2 = $(window).scrollTop()
if (xflmnavjs2 > xflmnavjs) {
thisfixed.addClass('active')
} else {
thisfixed.removeClass('active')
}
})
thisfixeddd.hover(function () {
$(this).addClass('on').siblings().removeClass('on')
})
}
AOS.init({
once: true,
offset: 150,
easing: 'ease-in-out',
duration: 500
})
AOS.refresh()