//棣栭〉tab鍒囨崲js鍔熻兘 var lis=document.querySelectorAll('.nav-menu .container .index-tabLi') lis.forEach((item)=>{ let liIndex=0 for(var a=0;a{ for(var i=0;i{ for(var i=0;i{ item.onmouseover=()=>{ const indexProductTechnologyMessageContent=indexProductTechnologyMessage[index].querySelector('p').innerText const indexProductTechnologyImgSrc=indexProductTechnologyMessage[index].querySelector('img').getAttribute('src') // const indexProductTechnologyAHref=indexProductTechnologyMessage[index].querySelector('a').getAttribute('href') technologyIntroduce.innerText=indexProductTechnologyMessageContent idnexProductTechnologyImg.setAttribute('src',indexProductTechnologyImgSrc) // indexProductTechnologyA.setAttribute('href',indexProductTechnologyAHref) page.innerText="0"+(index+1) } }) // 鍏充簬鎴戜滑鍒楄〃椤祃i鍒囨崲鍔熻兘 var iconImg = $('.aboutUsList .left .bottom ul li').eq(0).find('.icon img').eq(0); var iconSelectName = iconImg.attr('data-selected-img'); $('.aboutUsList .left .bottom ul li').eq(0).addClass('active').find('.icon img').eq(0).attr('src','/static/default/img/listImg/'+iconSelectName) $('.aboutUsList .left .bottom ul li').hover(function(){ $(this).addClass('active').siblings().removeClass('active'); $('.aboutUsList .left .bottom ul li .icon img').each(function(index, element){ var iconUnSelectName = $(element).attr('data-UnSelected-img'); $(element).attr('src','/static/default/img/listImg/'+iconUnSelectName); }); var iconImg = $(this).find('.icon img').eq(0); var iconSelectName = iconImg.attr('data-selected-img'); iconImg.attr('src','/static/default/img/listImg/'+iconSelectName); },function(){ }) // 浜у搧鏈嶅姟鍒楄〃椤祃i鍒囨崲鍔熻兘 var iconImg = $('.productService .left .bottom ul li').eq(0).find('.icon img').eq(0); var iconSelectName = iconImg.attr('data-selected-img'); $('.productService .left .bottom ul li').eq(0).addClass('active').find('.icon img').eq(0).attr('src','/static/default/img/listImg/'+iconSelectName) $('.productService .left .bottom ul li').hover(function(){ $(this).addClass('active').siblings().removeClass('active'); $('.productService .left .bottom ul li .icon img').each(function(index, element){ var iconUnSelectName = $(element).attr('data-UnSelected-img'); $(element).attr('src','/static/default/img/listImg/'+iconUnSelectName); }); var iconImg = $(this).find('.icon img').eq(0); var iconSelectName = iconImg.attr('data-selected-img'); iconImg.attr('src','/static/default/img/listImg/'+iconSelectName); },function(){ }) // 浼佷笟璧勮鍒楄〃椤靛垏鎹㈠姛鑳 $('.companyNews .body .message').eq(0).addClass('active') $('.companyNews .body .message').hover(function(){ $(this).addClass('active').siblings().removeClass('active'); },function(){ }) // 鏂伴椈鎶ラ亾鍒楄〃椤靛垏鎹㈠姛鑳 $('.newsMedia .body .message').eq(0).addClass('active') $('.newsMedia .body .message').hover(function(){ $(this).addClass('active').siblings().removeClass('active'); },function(){ }) $('.newsMedia .afterClickMessage').hide() $('.newsMedia .body .message .left .more .moreClick').each(function(index,element){ element.onclick=function(event){ var messageAttr=$('.newsMedia .body .message').eq(index).attr('media-url') $('.newsMedia .afterClickMessage .mainMessage video').attr('src',messageAttr) $('.newsMedia .afterClickMessage').show() event.stopPropagation(); } }) $(document).click(function(e){ var target = $(e.target); if(target.closest(".newsMedia .afterClickMessage .mainMessage").length != 0) return; $(".newsMedia .afterClickMessage").hide(); $('.newsMedia .afterClickMessage .mainMessage video').load().stop() }) // 棣栭〉鑽h獕璧勮川鏀惧ぇ鍥剧墖鍔熻兘 $('.contact-info .content .mark').hide() if(document.body.clientWidth>480){ window.onload=function(){ $('.contact-info .swiper-container1 .swiper-wrapper .swiper-slide').each(function(index,element){ element.onclick=function(event){ var contactInfoName=$(element).find('img').attr('img-data-url') $('.contact-info .content .mark img').attr('src',contactInfoName) $('.contact-info .content .mark').show() event.stopPropagation(); // 璧勮川鎶ュ憡鑷€傚簲閫傞厤妯悜绔栧悜鐨勫浘鐗 $('.contact-info .content .mark img').load(function(){ // 鍔犺浇瀹屾垚涔嬪悗浣犺鎵ц鐨勫嚱鏁 const honorPic=$('.contact-info .content .mark img')[0] if(honorPic.offsetWidth >honorPic.offsetHeight){ honorPic.style="width:65%" }else{ honorPic.style="width:500px" } }); } }) $(document).click(function(e){ var target = $(e.target); if(target.closest(".contact-info .content .mark img").length != 0) return; $(".contact-info .content .mark").hide(); }) } } // 鏅鸿兘璁惧璇︽儏椤典腑闂撮儴鍒嗗浘鐗囪嚜鍔ㄥ眳涓 var intellientP=document.querySelectorAll('.outletDetail .body .message .top p') intellientP.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;" } }) var intellientFigure=document.querySelectorAll('.outletDetail .body .message .top figure') intellientFigure.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;" } }) // 鍏充簬鎴戜滑璇︽儏椤典腑闂撮儴鍒嗗浘鐗囪嚜鍔ㄥ眳涓 var aboutUsP=document.querySelectorAll('.companyIntroductDetail .left .bottom .bottomMessage p') aboutUsP.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;" } }) var aboutUsFigure=document.querySelectorAll('.companyIntroductDetail .body .message .top figure') aboutUsFigure.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;" } }) // 鎷涚撼璐ゅ+璇︽儏椤典腑闂撮儴鍒嗗浘鐗囪嚜鍔ㄥ眳涓 var talentSearchingDetailP=document.querySelectorAll('.talentSearchingDetail .left .bottom .bottomMessage p') talentSearchingDetailP.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;margin-top:20px;margin-bottom:10px;" } }) var aboutUsFigure=document.querySelectorAll('.talentSearchingDetail .body .message .top figure') aboutUsFigure.forEach((item)=>{ if(item.querySelectorAll('img').length!=0){ item.style="text-align:center;margin-top:10px;" } }) // 鍏充簬鎴戜滑璇︽儏椤礱ctive浜斾釜瀛楃殑li鎹ine var aboutUsDetailLi=document.querySelectorAll('.companyIntroductDetail .right ul li') aboutUsDetailLi.forEach((item,index)=>{ if(item.className=='active' && index>2 ){ item.querySelector('a').style="background: url('/static/default/img/DetailImg/lineLong.png') no-repeat;" } }) //鎵嬫満绔彸涓婅鑿滃崟 $(window).load(function () { $(".inner-header-icon").click(function(){ //鐐瑰嚮鑿滃崟鎸夐挳浜嬩欢 $(this).toggleClass("inner-header-icon-click inner-header-icon-out"); $('.nav .index-mobile-tab').toggleClass('activeTab'); }) }) // var activeUlHeight=0 // var tt=document.styleSheets[0]; $('.nav .index-mobile-tab .index-tabLi').each((index,element)=>{ if(element.children.length>2){ $('.nav .index-mobile-tab .index-tabLi').eq(index).append('') } }) $('.nav .index-mobile-tab .index-tabLi span').each((index,element)=>{ element.onclick=()=>{ $('.nav .index-mobile-tab .index-tabLi span').eq(index).toggleClass('spanActive') $('.nav .index-mobile-tab .index-tabLi span').eq(index).parent().eq(0).toggleClass('tabLiUlActive') }}) // 鎵嬫満绔祫璐ㄦ姤鍛婅嚜閫傚簲 if(document.body.clientWidth<480){ if(document.querySelector('.swiper-container1')!=null){ document.querySelector('.swiper-container1').className='swiper-container2 swiper-container-horizontal' document.querySelector('.swiper-button-prev1').className='swiper-button-prev2' document.querySelector('.swiper-button-next1').className='swiper-button-next2' } } var iconMessageInnerHTML= document.querySelectorAll('.contactUs .body .top .iconMessage')[3].querySelector('p').innerHTML.replace(/[\n|\r]/g,"
") document.querySelectorAll('.contactUs .body .top .iconMessage')[3].querySelector('p').innerHTML=iconMessageInnerHTML