瑙嗛鍙饵/p>
鎶栭煶
鍗忛懌鑳界
鏁板瓧鑳芥簮
`
}
return object5
}
$('#comHead').html(comHead().html)
$('#sec_footer').html(comFoot().html)
$('#rfied').html(rfied().html)
function addEvent(obj, type, fn) {
if (obj.attachEvent) {
obj.attachEvent('on' + type, function () {
fn.call(obj)
})
} else {
obj.addEventListener(type, fn, false)
}
}
addEvent(window, 'scroll', function () {
var scrTopswap = $(window).scrollTop()
if (scrTopswap > 120) {
$('body').addClass('msnav')
} else {
$('body').removeClass('msnav')
}
})
if ($('.page_scroll_wrap').length > 0) {
if (flagZt) {
$(window).resize(function () {
location.reload()
})
}
} else {
// initialiseLenisScroll()
}
AOS.init({
once: true,
offset: 40,
easing: 'ease-in-out',
duration: 500
})
AOS.refresh()
// initialiseLenisScroll
// function initialiseLenisScroll() {
// const lenis = new Lenis({
// smoothWheel: true,
// duration: 1.2
// });
// lenis.on('scroll', function(){
// ScrollTrigger.update;
// AOS.refresh();
// var istop=$(window).scrollTop();
// if($('.fixednav').length>0){
// var istop1=$('.fixednav').offset().top;
// if(istop>istop1){
// $('.fixednav').addClass('fixed');
// }else{
// $('.fixednav').removeClass('fixed');
// }
// }
// if(istop>200){
// $('body').addClass('pagsn');
// }else{
// $('body').removeClass('pagsn');
// }
// if(istop>700){
// $('.rfixed').fadeIn(300)
// }else{
// $('.rfixed').fadeOut(300)
// }
// });
// gsap.ticker.add((time) => {
// lenis.raf(time * 1000);
// });
// gsap.ticker.lagSmoothing(0);
// var $scr_js=$('.scr_js');
// $scr_js.click(function () {
// var isid=$(this).attr('href')
// lenis.scrollTo(isid);
// })
// }
var $js_xiala = $('.js_xiala'),
$rfixediconm = $('.rfixediconm'),
$logomoving = $('.logomoving'),
$rfixed = $('.rfixed')
$nav_sub_js = $('.nav_sub_js')
$logomoving.click(function (e) {
e.stopPropagation()
if ($(this).hasClass('open')) {
$(this).removeClass('open')
$rfixed.removeClass('open')
} else {
$(this).addClass('open')
$rfixed.addClass('open')
}
})
$rfixediconm.hoverDelay(
function () {
var $istxlx = $(this)
$istxlx.find('.rfixedsub').slideDown(300)
},
function () {
var $istxlx = $(this)
$istxlx.find('.rfixedsub').fadeOut(200)
}
)
$js_xiala.hoverDelay(
function () {
var $istxl = $(this)
$istxl.find('.js_xialam').slideDown(300)
},
function () {
var $istxlx = $(this)
$istxlx.find('.js_xialam').fadeOut(200)
}
)
$nav_sub_js.hoverDelay(
function () {
var $istx2 = $(this)
$istx2.find('.nav_sub_jsm').slideDown(300)
},
function () {
var $istx2 = $(this)
$istx2.find('.nav_sub_jsm').fadeOut(200)
}
)
var $mmeau2sub = $('.mmeau2sub'),
$mmeau2 = $('.mmeau2'),
$mmeau2bg = $('.mmeau2bg'),
$nav = $('.main-nav'),
$toggle = $('.nav_toggle'),
$body = $('body'),
$waplauge = $('.wap_js_lauge'),
$sublauge = $('.nav-lauge'),
$laugeclose = $('.laugeclose')
$toggle.click(function () {
if ($(this).hasClass('nav--open')) {
$(this).removeClass('nav--open')
$nav.removeClass('open')
$body.removeClass('hc-open')
$menubgs.fadeOut(300)
} else {
$(this).addClass('nav--open')
$nav.addClass('open')
$body.addClass('hc-open')
$menubgs.fadeIn(300)
}
})
$mmeau2.click(function () {
if ($(this).hasClass('on')) {
$(this).removeClass('on')
$mmeau2bg.fadeOut(300)
$mmeau2sub.fadeOut(300)
$('.g-head').removeClass('pages')
} else {
$(this).addClass('on')
$mmeau2bg.fadeIn(300)
$mmeau2sub.fadeIn(300)
$('.g-head').addClass('pages')
}
})
$mmeau2bg.on('click', function () {
$mmeau2bg.fadeOut(300)
$mmeau2sub.fadeOut(300)
$mmeau2.removeClass('on')
$('.g-head').removeClass('pages')
})
$laugeclose.on('click', function () {
$sublauge.fadeOut(300)
})
$waplauge.on('click', function () {
$sublauge.fadeIn(300)
})
var $wnava1 = $('.wnava-1'),
$wnava_i_1 = $('.wnava-i-1'),
$add_i = $('.wnavsub a'),
$menubgs = $('.menu-underlay'),
$wnavback = $('.wnavback'),
$wap_js_wx_img = $('.wap_js_wx_img'),
$wap_js_wx = $('.wap_js_wx')
$wap_js_wx.click(function () {
var isurl = $(this).attr('data-src')
$wap_js_wx_img.find('img').attr('src', isurl)
$wap_js_wx_img.fadeIn(300)
$menubgs.fadeIn(300)
})
$menubgs.click(function () {
$nav.removeClass('open')
$body.removeClass('hc-open')
$menubgs.fadeOut(300)
$wap_js_wx_img.fadeOut(300)
$toggle.removeClass('nav--open')
})
function openmen() {
$nav.removeClass('open')
$body.removeClass('hc-open')
$menubgs.fadeOut(300)
$wap_js_wx_img.fadeOut(300)
$toggle.removeClass('nav--open')
}
$('#go0').click(function () {
locoScroll.scrollTo(0)
console.log()
openmen()
})
$('.go2').click(function () {
locoScroll.scrollTo('#go2')
openmen()
})
$('.ab3').click(function () {
locoScroll.scrollTo('#ab3')
openmen()
})
$('.ab1').click(function () {
locoScroll.scrollTo('#ab1')
openmen()
})
$('.ab4').click(function () {
locoScroll.scrollTo('#ab4')
openmen()
})
$('.n2').click(function () {
locoScroll.scrollTo('#n2')
openmen()
})
$('.invid1').click(function () {
locoScroll.scrollTo('#invid1')
openmen()
})
$('.invid2').click(function () {
locoScroll.scrollTo('#invid2')
openmen()
})
$('.invid3').click(function () {
locoScroll.scrollTo('#invid3')
openmen()
})
function isEmpty(values) {
return values == null || values === '' || values === 0
}
$add_i.each(function () {
var issub = $(this).siblings('.wnavsub').length
var isurl = $(this).attr('href')
if (issub > 0) {
$(this).append('
')
}
if (isEmpty(isurl)) {
$(this).addClass('no')
}
})
var $wnava_i_2 = $('.wnava-i-2')
$wnava1.on('click', function () {
var ishref = $(this).attr('href')
if (ishref == '' || ishref == 'undefined') {
//濞屸剝婀侀柧鐐复 閹笛嗩攽娑撳濯 e.preventDefault
}
})
$wnavback.on('click', function () {
$('.wnavsub').removeClass('on')
$wnava_i_1.removeClass('on')
})
$wnava_i_1.on('click', function () {
var $thisa = $(this)
var $thisa_sub = $thisa.parent('a').siblings('.wnavsub')
if ($thisa.hasClass('on')) {
$thisa.removeClass('on')
$thisa_sub.removeClass('on')
$thisa_sub.fadeOut(300)
} else {
$thisa.addClass('on')
$thisa_sub.addClass('on')
$thisa_sub.fadeIn(300)
}
$thisa.parents('li').siblings().find('.wnava-i-1').removeClass('on')
$thisa.parents('li').siblings().find('.wnavsub').removeClass('on')
$thisa.parents('li').siblings().find('.wnavsub').hide()
return false
})
$wnava_i_2.on('click', function () {
var $thisb = $(this)
var $thisb_sub = $thisb.parent('a').siblings('.wnavsub')
if ($thisb.hasClass('on')) {
$thisb.removeClass('on')
$thisb_sub.slideUp(100)
} else {
$thisb.addClass('on')
$thisb_sub.slideDown(300)
}
return false
})
// 鎵嬫満搴曢儴
$('.wapla_js').on('click', function (e) {
e.stopPropagation()
$(this).siblings('.wapfootlasub').fadeIn(300)
})
$('.wapfootlasub').click(function (e) {
e.stopPropagation()
})
$('body').click(function () {
$('.wapfootlasub').fadeOut(300)
$logomoving.removeClass('open')
$rfixed.removeClass('open')
})
$('.ge4msgmbmx').click(function () {
$(this).find('label').addClass('on')
$(this).find('input').focus()
})
$('.otxt5').blur(function () {
if ($(this).val() == '') {
$(this).siblings().removeClass('on')
}
})
if ($('.plafa_js_video').length > 0) {
var videoplays = document.getElementById('videoplays')
var $layclose = $('.layclose'),
$layvideo = $('.layvideo'),
$laybg = $('.laybg'),
$plafa_js_video = $('.plafa_js_video')
$plafa_js_video.click(function () {
var issrl = $(this).attr('data-src')
$layvideo.fadeIn(300)
$laybg.fadeIn(300)
$('#videoplays').attr('src', issrl)
videoplays.play()
})
$laybg.click(function () {
$layvideo.fadeOut(300)
$laybg.fadeOut(300)
videoplays.pause()
})
$layclose.click(function () {
$layvideo.fadeOut(300)
$laybg.fadeOut(300)
videoplays.pause()
})
}
$('.xiazai').click(function () {
$('.plmsgbg,.plmsgwz').fadeIn(300)
})
$('.plmsggba').click(function () {
$('.plmsgbg,.plmsgwz').fadeOut(300)
})
$('.plmsgbg').click(function () {
$('.plmsgbg,.plmsgwz').fadeOut(300)
})
$('.js_focus .plmsgtxt').focus(function () {
$(this).parents('.js_focus').addClass('on')
})
$('.js_focus .plmsgtxt').blur(function () {
if ($(this).val() == '') {
$(this).parents('.js_focus').removeClass('on')
}
})
var lets1,lets2,lets3,lets4;
var $storeswiper1 = $('.storeswiper1'),$storeswiper2 = $('.storeswiper2'),$tab_btn_ones=$('.tab_btn_ones');
$tab_btn_ones.click(function(){
var atitle = $(this).attr('data-title'),aimg = $(this).attr('data-img'),adesc = '.' + $(this).attr('data-desc'),acontent = '.' + $(this).attr('data-content'),adesc1=$(adesc).val(),acontent1=$(acontent).val();
if(atitle =="" || atitle == null){
}else{
showtca(atitle,adesc1,acontent1,aimg)
}
})
function showtca(lets1,lets2,lets3,lets4){
$('.abt26btc').show();
$('.abt26btcbg').show();
$('.abt26btcclose').show();
$('.pop_title').html(lets1)
$('.pop_con1_tc').html(lets2)
$('.pop_table').html(lets3);
$('.pop_src').attr('src', lets4);
}
$('.abt26btcclose').click(function () {
$('.abt26btc').hide();
$('.abt26btcbg').hide();
$('.abt26btcclose').hide();
})
$('.abt26btcbg').click(function () {
$('.abt26btc').hide();
$('.abt26btcbg').hide();
$('.abt26btcclose').hide();
})
if ($('.chonghd03swiper1').length > 0) {
var chonghd03swiper1 = new Swiper(".chonghd03swiper1", {
slidesPerView: 'auto',
observeParents: true,
speed:600,
centeredSlides: true,
spaceBetween:30,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
loop: true,
pagination: {
el: '.chonghd03swiper1-page',
type: 'fraction',
},
scrollbar: {
el: '.chonghd03swiper1-scrollbar',
dragSize: 100,
},
navigation: {
nextEl: '.chonghd03swiper1btn2',
prevEl: '.chonghd03swiper1btn1',
}
});
}
if ($('.phabtitSwiper').length > 0) {
var phabtitSwiper = new Swiper(".phabtitSwiper", {
// 娓愬彉
// effect: 'fade',
navigation: {
nextEl: ".pbnext-1",
prevEl: ".pbprev-1",
},
// spaceBetween: 30,
loop: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
});
}
if ($('.phabtitSwiper1').length > 0) {
var phabtitSwiper1 = new Swiper(".phabtitSwiper1", {
// 娓愬彉
// effect: 'fade',
navigation: {
nextEl: ".pbnext-2",
prevEl: ".pbprev-2",
},
// spaceBetween: 30,
loop: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
});
}
if ($('.phabtitSwiper2').length > 0) {
var phabtitSwiper2 = new Swiper(".phabtitSwiper2", {
// 娓愬彉
// effect: 'fade',
navigation: {
nextEl: ".pbnext-3",
prevEl: ".pbprev-3",
},
// spaceBetween: 30,
loop: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
});
}
if ($('.phabtitSwiper3').length > 0) {
var phabtitSwiper3 = new Swiper(".phabtitSwiper3", {
// 娓愬彉
// effect: 'fade',
navigation: {
nextEl: ".pbnext-4",
prevEl: ".pbprev-4",
},
// spaceBetween: 30,
loop: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
});
}
if ($('.phabtitSwiper4').length > 0) {
var phabtitSwiper4 = new Swiper(".phabtitSwiper4", {
// 娓愬彉
// effect: 'fade',
navigation: {
nextEl: ".pbnext-5",
prevEl: ".pbprev-5",
},
// spaceBetween: 30,
loop: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
});
}
if ($('.chonghd03swiper1_wap').length > 0) {
var chonghd03swiper1_wap = new Swiper(".chonghd03swiper1_wap", {
speed:600,
effect: 'fade',
// autoHeight: true,
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
loop: true,
pagination: {
el: '.chonghd03swiper1_wap-page',
// type: 'fraction',
},
// scrollbar: {
// el: '.chonghd03swiper1_wap-scrollbar',
// dragSize: 100,
// },
// navigation: {
// nextEl: '.chonghd03swiper1_wapbtn2',
// prevEl: '.chonghd03swiper1_wapbtn1',
// }
});
}
if ($storeswiper2.length > 0)
{
var storeswiper2 = new Swiper(".storeswiper2", {
slidesPerView: '1.6',
// centeredSlides: true,
spaceBetween: 50,
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
loop: true,
pagination: {
el: '.wapcar-page2',
type: 'fraction',
},
scrollbar: {
el: '.wapcar-scrollbar2',
dragSize: 100,
},
navigation: {
nextEl: '.wapcarbtn4',
prevEl: '.wapcarbtn3',
},
on: {
click: function () {
var atitle = this.clickedSlide.dataset.title,aimg = this.clickedSlide.dataset.img,adesc = '.' + this.clickedSlide.dataset.desc,acontent = '.' + this.clickedSlide.dataset.content,adesc1=$(adesc).val(),acontent1=$(acontent).val();
if(atitle =="" || atitle == null){
}else{
showtca(atitle,adesc1,acontent1,aimg)
}
},
}
});
}
if ($('.storeswiper1_wap').length > 0) {
var storeswiper1_wap = new Swiper(".storeswiper1_wap", {
slidesPerView: 1,
// centeredSlides: true,
spaceBetween: 0,
autoplay:false,
loop: true,
pagination: {
el: '.wapcar-page1',
type: 'fraction',
},
scrollbar: {
el: '.wapcar-scrollbar1',
dragSize: 100,
},
navigation: {
nextEl: '.wapcarbtn2',
prevEl: '.wapcarbtn1',
},
on: {
click: function () {
var atitle = this.clickedSlide.dataset.title,aimg = this.clickedSlide.dataset.img,adesc = '.' + this.clickedSlide.dataset.desc,acontent = '.' + this.clickedSlide.dataset.content,adesc1=$(adesc).val(),acontent1=$(acontent).val();
if(atitle =="" || atitle == null){
}else{
showtca(atitle,adesc1,acontent1,aimg);
}
},
}
});
}
if ($('.storeswiper2_wap').length > 0) {
var storeswiper2_wap = new Swiper(".storeswiper2_wap", {
slidesPerView: 1,
// centeredSlides: true,
spaceBetween: 0,
autoplay:false,
loop: true,
pagination: {
el: '.wapcar-page2',
type: 'fraction',
},
scrollbar: {
el: '.wapcar-scrollbar2',
dragSize: 100,
},
navigation: {
nextEl: '.wapcarbtn4',
prevEl: '.wapcarbtn3',
},
on: {
click: function () {
var atitle = this.clickedSlide.dataset.title,aimg = this.clickedSlide.dataset.img,adesc = '.' + this.clickedSlide.dataset.desc,acontent = '.' + this.clickedSlide.dataset.content,adesc1=$(adesc).val(),acontent1=$(acontent).val();
if(atitle =="" || atitle == null){
}else{
showtca(atitle,adesc1,acontent1,aimg)
// $('.abt26btc').show();
// $('.abt26btcbg').show();
// $('.abt26btcclose').show();
// alert(adesc);
// $('.pop_title').html(atitle)
// $('.pop_con1_tc').html(adesc1)
// $('.pop_table').html(acontent1);
// $('.pop_src').attr('src', aimg);
}
},
}
});
}
if ($storeswiper1.length > 0) {
var storeswiper1 = new Swiper(".storeswiper1", {
slidesPerView: '1.7',
// centeredSlides: true,
spaceBetween: '3%',
autoplay: {
delay: 4500,
disableOnInteraction: false,
},
loop: true,
pagination: {
el: '.wapcar-page1',
type: 'fraction',
},
scrollbar: {
el: '.wapcar-scrollbar1',
dragSize: 100,
},
navigation: {
nextEl: '.wapcarbtn2',
prevEl: '.wapcarbtn1',
},
on: {
click: function () {
var atitle = this.clickedSlide.dataset.title,aimg = this.clickedSlide.dataset.img,adesc = '.' + this.clickedSlide.dataset.desc,acontent = '.' + this.clickedSlide.dataset.content,adesc1=$(adesc).val(),acontent1=$(acontent).val();
if(atitle =="" || atitle == null){
}else{
showtca(atitle,adesc1,acontent1,aimg)
}
},
}
});
}
var $relatedSwiper = $('.relatedSwiper')
if ($relatedSwiper.length > 0) {
var relatedSwiper = new Swiper('.relatedSwiper', {
spaceBetween: 10,
slidesPerView: 1.1,
loop: false,
centeredSlides: true,
pagination: {
el: '.relate_page'
}
})
}
if ($('.clound0aaswiper').length > 0) {
var clound0aaswiper = new Swiper('.clound0aaswiper',{
effect:'fade',
loop:true,
autoplay: {
delay: 4500,
stopOnLastSlide: false,
disableOnInteraction: false,
},
navigation: {
nextEl: '.clound0aaswiperbtn2',
prevEl: '.clound0aaswiperbtn1',
}
})
}
if ($('.clound0bswiper1').length > 0) {
var clound0bswiper1 = new Swiper('.clound0bswiper1',{
effect:'fade',
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
pagination: {
el: '.clound0b_page_1'
}
})
}
if ($('.clound0bswiper2').length > 0) {
var clound0bswiper2 = new Swiper('.clound0bswiper2',{
effect:'fade',
autoplay: {
delay: 4000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
pagination: {
el: '.clound0b_page_2'
}
})
}
var $nyzcgswiper = $('.nyzcgswiper')
if ($nyzcgswiper.length > 0) {
var nyzcgswiper = new Swiper(".nyzcgswiper", {
autoplay: {
delay: 5000,
disableOnInteraction: false,
},
// effect: 'fade',
loop: true,
pagination: {
el: '.nyzcg-page',
type: 'fraction',
},
scrollbar: {
el: '.nyzcg-scrollbar',
dragSize: 100,
},
navigation: {
nextEl: '.nyzcgbtn2',
prevEl: '.nyzcgbtn1',
}
});
}
var $pserbslide = $('.pserbslide')
if ($pserbslide.length > 0) {
var pserbslide = new Swiper('.pserbslide', {
slidesPerView: 'auto',
loop: true,
speed: 1000,
spaceBetween: 20,
centeredSlides: true,
navigation: {
nextEl: '.psernext',
prevEl: '.pserprev'
}
})
}
if ($('.ab7eslide').length > 0) {
var ab7eslide = new Swiper('.ab7eslide', {
effect: 'fade'
})
$('.ab7esubm').hover(function () {
var isind = $(this).index()
$(this).addClass('on').siblings().removeClass('on')
ab7eslide.slideTo(isind, 600, true)
})
}
if ($('.ab7kswiper').length > 0) {
var ab7kswiper = new Swiper('.ab7kswiper', {
effect: 'fade',
initialSlide: 1,
})
$('.ab7ksubm').hover(function () {
var isid = $(this).index()
$(this).addClass('on').siblings().removeClass('on')
ab7kswiper.slideTo(isid, 600, true)
})
}
//
$('.giojs').click(function () {
var indxx1 = $(this).index()
$(this).addClass('on').siblings().removeClass('on')
$('.nkzstabjsm1').eq(indxx1).addClass('on').siblings().removeClass('on')
})
$('.giojs1').click(function () {
$(this).addClass('on').siblings().removeClass('on')
var isload = $(this).attr('data-id')
var indxxs1 = $(this).index()
if (isload == 0) {
$(this).attr('data-id', 1)
if (indxxs1 == 1) {
yltwo()
}
if (indxxs1 == 2) {
ylthree()
}
if (indxxs1 == 3) {
ylfour()
}
if (indxxs1 == 4) {
ylfive()
}
}
$('.nkzstabjsm1').eq(indxxs1).addClass('on').siblings().removeClass('on')
})
var nkzsslider01 = new Swiper('.nkzsslider01', {
loop: false,
// 娓愬彉
effect: 'fade',
// autoplay: {
// delay: 4000,
// disableOnInteraction: false
// },
navigation: {
nextEl: '.carnext1',
prevEl: '.carprev1'
}
})
function yltwo() {
var nkzsslider02 = new Swiper('.nkzsslider02', {
loop: false,
// 娓愬彉
effect: 'fade',
// autoplay: {
// delay: 4000,
// disableOnInteraction: false
// },
navigation: {
nextEl: '.carnext2',
prevEl: '.carprev2'
}
})
}
function ylthree() {
var nkzsslider03 = new Swiper('.nkzsslider03', {
loop: false,
// 娓愬彉
effect: 'fade',
// autoplay: {
// delay: 4000,
// disableOnInteraction: false
// },
navigation: {
nextEl: '.carnext3',
prevEl: '.carprev3'
}
})
}
function ylfour() {
var nkzsslider04 = new Swiper('.nkzsslider04', {
loop: false,
// 娓愬彉
effect: 'fade',
// autoplay: {
// delay: 4000,
// disableOnInteraction: false
// },
navigation: {
nextEl: '.carnext4',
prevEl: '.carprev4'
}
})
}
function ylfive() {
var nkzsslider05 = new Swiper('.nkzsslider05', {
loop: false,
// 娓愬彉
effect: 'fade',
// autoplay: {
// delay: 4000,
// disableOnInteraction: false
// },
navigation: {
nextEl: '.carnext5',
prevEl: '.carprev5'
}
})
}
//