(function(op){var effect1=function(){var head=$('#xg_header');var an=function(){if(document.documentElement.scrollTop+document.body.scrollTop>head.height()){head.css('opacity',0);}else{head.css('opacity',1);}} head.hover(function(){head.css('opacity',1);},an);page.scroll(an);head.on('mousemove',function(){$(this).css('opacity',1);});$(an);} if(page.currentDevice()==1){if(op.pcEffect==2){effect1();}}else{}})({'pcEffect':0,'mobileEffect':0}); var menu=function(obj,options){var cssAColor='';var addClass=function(el,className){el.addClass(className);if(el.css('color')&&cssAColor.indexOf('.'+className)==-1){cssAColor+='.'+className+' a{color:'+el.css('color')+';}';}} var nid=parseInt(util.queryString('nid'));if(isNaN(nid)){nid=0;} if(nid>0){var navi=obj.find('li[data-nid='+nid+']');var tid=parseInt(util.queryString('typeid'));if(isNaN(tid)){tid=parseInt(util.queryString('tid'));} var li=obj.children('.xg_menuUl').children('li[data-tid='+tid+']');if(li.length>0){addClass(li,li.attr('class').split(' ')[0]+'-select');}else if(navi.length>0){addClass(navi,navi.attr('class').split(' ')[0]+'-select');if(tid>0){var li=navi.find('li[data-tid='+tid+']');if(li.length>0){addClass(li,li.attr('class').split(' ')[0]+'-select');li.parentsUntil('.xg_menu','li').each(function(){addClass($(this),$(this).attr('class').split(' ')[0]+'-select');actived=true;return false;});}}}}else{var url=util.createUrl();if(url.replace(document.location.host,'').indexOf('.')==-1||url.indexOf('index.aspx')>0){var home=obj.find('li[home=1]');if(home.length>0){addClass(home,home.attr('class').split(' ')[0]+'-select');}}} if(cssAColor){var style=document.createElement('style');style.type='text/css';style.innerText=cssAColor;document.head.appendChild(style);} var showType=obj.data('mobileshoweffect');obj.find('.xg_menuMobile .xg_memu_btn').on('click',function(){options.mobileMenuEffect.show(obj);if(util.isNullOrEmpty($('body').attr('style'))||(!util.isNullOrEmpty($('body').attr('style')&&$('body').attr('style').indexOf('overflow-y')==-1))){$('body').css('overflow-y','hidden');$('body').attr('data-overflow',true);}else{$('body').attr('data-overflow',false);} if(showType==0||showType==2){$(this).next().css({'left':'0px'});}else if(showType==1||showType==3){$(this).next().css({'top':'0px'});} setTimeout(function(){obj.find('img').lazyload();},300);});obj.find('.xg_menuShade').on('click',function(){if($('body').data('overflow')){$('body').css('overflow-y','');} $('body').removeAttr('data-overflow');var css={};if(showType==0){css={'left':'-100%'};}else if(showType==1){css={'top':'-100%'};}else if(showType==2){css={'left':'100%'};}else if(showType==3){css={'top':'100%'};} $(this).parent().css(css);options.mobileMenuEffect.hide(obj);});var design=util.inDesign();if(design){if(obj.find('.xg_menutop').children().length==0){obj.find('.xg_menutop').html('
可拖动行到此
');} if(obj.find('.xg_menubottom').children().length==0){obj.find('.xg_menubottom').html('
可拖动行到此
');}} var device=page.currentDevice();if(device==2){options.mobileMenuEffect.init(obj);if(obj.data('mobilelisttype')==2){var mobile=obj.find('.xg_menuMobile');mobile.children('.xg_menuPanel').find('ul').show();mobile.find('.xg_menuUl').css({'height':'100%','overflow-y':'auto'});return;}} obj.children('.xg_menuMobile').find('.xg_menuTitle1,.xg_menuTitle2,.xg_menuTitle3,.xg_menuTitle4').on('click',function(e){var ul=$(this).next();if(ul.length==0){return true;} ul.slideToggle();return true;});if(device==1&&obj.data('droptype')=='1'){var ul=obj.children('.xg_menuUl');var needEffect=obj.data('effect');if(!needEffect){needEffect=0;} var menulis=ul.children('li');var droplist=obj.children('.xg_dropdownlist');if(design){var html='';if(droplist.length==0){html='
';} obj.children('.xg_menuUl').children('li').each(function(){var id=$(this).data('nid');var type='n';if(!id){id=$(this).data('tid');type='t';} if($(this).attr('home')||droplist.children('div[data-rid='+id+']').length>0){return;} html+='
当前下拉菜单中无内容,访客访问将不显示当前下拉菜单
';});if(droplist.length==0){html+='
';obj.append(html);droplist=obj.children('.xg_dropdownlist');}else{droplist.append(html);} menulis.on('click',function(){var _this=$(this);setTimeout(function(){if(!selector._element.innerSelect){return;} var id=_this.data('nid');if(!id){id=_this.data('tid');} if(!id){return;} var mWidth=$(this).parents('.xg_header').width();droplist.css({'width':document.documentElement.clientWidth+'px','height':'auto','display':'block','min-width':mWidth+'px','position':'absolute','top':ul.height()+'px'});if(droplist.offset().left!=0){var mLeft=parseInt(droplist.css('margin-left'));isNaN(mLeft)&&(mLeft=0);var left=mLeft-droplist.offset().left;droplist.css({'margin-left':left+'px'});} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} if(list.css('display')=='block'){list.hide();}else{list.show().siblings().hide();}},150);});}else if(droplist.length>0){menulis.hover(function(){clearTimeout($(this).data('menuHide'));var id=$(this).data('nid');if(!id){id=$(this).data('tid');} if(!id){return;} var mWidth=$(this).parents('.xg_header').width();droplist.css({'width':document.documentElement.clientWidth+'px','height':'auto','display':'block','min-width':mWidth+'px','position':'absolute','top':ul.height()+'px'});if(droplist.offset().left!=0){var mLeft=parseInt(droplist.css('margin-left'));isNaN(mLeft)&&(mLeft=0);var left=mLeft-droplist.offset().left;droplist.css({'margin-left':left+'px'});} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} list.siblings().hide();if(needEffect==0){list.show();}else{list.stop().slideDown('fast');}},function(){var _this=$(this);var id=_this.data('nid');if(!id){id=_this.data('tid');} if(!id){return;} var list=droplist.children('[data-rid='+id+']');if(list.length==0){return;} clearTimeout(_this.data('menuHide'));_this.data('menuHide',setTimeout(function(){if(needEffect==0){list.hide();}else{list.stop().slideUp('fast');}},120));});droplist.children('div').hover(function(){var id=$(this).data('rid');menulis.each(function(){var _that=$(this);var mid=_that.data('nid');if(!mid){mid=_that.data('tid');} if(mid==id||mid==id){clearTimeout(_that.data('menuHide'));}});},function(){if(needEffect==0){$(this).hide();}else{$(this).stop().slideUp('fast');}});}}} var banner={init:function(panel){banner.autoChange(panel);var adaptive=panel.data('adaptive');var firstImg=panel.find('img:first');firstImg.addClass('lazyload');firstImg.one('animationend webkitAnimationEnd oAnimationEnd webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){firstImg.removeClass('lazyload');});firstImg.one('load',function(e){var maxWidth=e&&e.target?e.target.width:0;var op=banner.getOptions(panel);op.onAfterChange=banner.afterChange;op.centerPadding='0px';op.index=0;op.pcMouseTouch=true;if(typeof op.animaType=='undefined'||op.animaType==1){if(typeof myBannerOption!='undefined'){op=myBannerOption(op);} var sc=panel.slick(op);panel.on('beforeChange',function(event,slick,currentSlide,nextSlide){slick.$slides.eq(currentSlide).find('[data-eventid]').trigger('screenout');if(typeof myBannerBeforeChange!='undefined'){myBannerBeforeChange(slick,currentSlide,nextSlide);}});panel.on('afterChange',function(event,slick,currentSlide,nextSlide){var container=slick.$slides.eq(currentSlide);var device=page.currentDevice();var hideClass=(device==1?'pc_an_hide':'mobile_an_hide');setTimeout(function(){container.find('[data-anids]').each(function(){var ok=false;String($(this).data('anids')).split(',').forEach(function(item){if(!ok&&animation.anFindEvent(item)){ok=true;}});if(ok){$(this).removeClass(hideClass);}});},17);container.find('[data-eventid]').trigger('screenin');container.siblings().find('[data-anids]').each(function(){animation.removeAllAn($(this));var ok=false;String($(this).data('anids')).split(',').forEach(function(item){if(!ok&&animation.anFindEvent(item)){ok=true;}});if(ok){$(this).removeClass(hideClass).addClass(hideClass);}});if(typeof myBannerAfterChange!='undefined'){myBannerAfterChange(slick,currentSlide,nextSlide);}});$(function(){setTimeout(function(){setTimeout(function(){sc.find('.slick-current').find('[data-anids]').each(function(){$(this).removeClass(hideClass);});},17);sc.find('.slick-current').find('[data-eventid]').trigger('screenin');},100);});}else{var relwidth=panel.data('width');var relheight=panel.data('height');var width=panel.width();var height=panel.height();if(width>relwidth){width=relwidth;op.Width=relwidth;} if(height>relheight){height=relheight;op.Height=relheight;} if(typeof myBannerOption!='undefined'){op=myBannerOption(op);} banner.initshutter(op);panel.find('.xg_banner_item').addClass('xg_banner_show');if(width>relwidth){panel.find('.shutter').css({'width':width+'px','height':height+'px','margin-left':'auto','margin-right':'auto','overflow':'hidden'});}} var maxWidthFun=function(){if(maxWidth>0&&screen.width>maxWidth){panel.find('.xg_banner_item').css({'maxWidth':maxWidth+'px','overflow':'hidden','margin-left':'auto','margin-right':'auto'});panel.find('.xg_banner_img img').css({'maxWidth':maxWidth+'px'});}} maxWidthFun();var hideClass=(page.currentDevice()==1?'pc_an_hide':'mobile_an_hide');var ans=[];panel.find('[data-anids]').each(function(){var ok=false;String($(this).data('anids')).split(',').forEach(function(item){if(!ok&&animation.anFindEvent(item)){ok=true;}});if(ok){$(this).addClass(hideClass);ans.push($(this));}});panel.find('.container').on('click',function(e){if(util.inDesign()){return;} var a=$(this).prev().find('a');util.openUrl(a.attr('href'),a.attr('target'));e.stopPropagation();});});if(firstImg.length>0&&firstImg.parent().is('picture')&&firstImg.get(0).complete){firstImg.trigger('load');};panel.find('img').each(function(){banner.loadImage($(this));});},imgSrc:function(img){var data=$(img).data('src');if(data){var src=data.split(',');if(src.length==1){return src[0].split(' ')[0];} if(page.currentDevice()==1){return src[0].split(' ')[0];}else{return src[1].split(' ')[0];}}else{return '';}},afterChange:function(){},loadImage:function(obj){var src=banner.imgSrc(obj);if(!src) return;if(banner.imgCached(src)){$(obj).attr('src',src);}else{setTimeout(function(){$(obj).attr('src',src);},0);}},imgCached:function(src){var img=new Image();img.src=src;if(img.complete){return true;} return false;},getOptions:function(panel){if(!panel){typeof console=='undefined'&&console.log('banner不存在');return;} var op={};var data=panel.data('autoplay');if(data){op.autoplay=true;op.autoplaySpeed=data;} if(!util.inDesign()){op.pauseOnHover=false;} data=panel.data('loop');data&&(op.infinite=data=='1'?true:false);data=panel.data('dots');if(data=='1'){op.dots=true;}else{op.dots=false;} data=panel.data('arrows');if(data=='1'){op.arrows=true;}else{op.arrows=false;} data=panel.data('effect');op.animaType=data;op.speed=panel.data('speed')*1000==0?1000:panel.data('speed')*1000;if(typeof data=='undefined'||data=='1'){op.fade=false;op.cssEase='ease';} op.variableWidth=true;op.centerMode=true;op.responsive=[{breakpoint:page.splitMobileWidth,settings:{arrows:false,variableWidth:false,centerMode:false}}];data=panel.data('mobilarrow');if(data=='1'){op.responsive[0].settings.arrows=true;op.mobilarrow=true;} data=panel.data('width');if(typeof data=='undefined'){op.Width=1920;}else{op.Width=data;} data=panel.data('height');if(typeof data=='undefined'){op.Height=600;}else{op.Height=data;} return op;},autoChangeWidth:function(container){var device=page.currentDevice();if(device==2&&util.inDesign()){$('html').addClass('xg_scrollwidth');} if(parent!=window){if(device==2){container.css({'width':container.parent().width()+'px'});}else{container.css({'width':''});}}else if(page.currentDevice()==1){container.css({'width':''});}},resize:function(container){var device=page.currentDevice();var relwidth=container.data('width');var relheight=container.data('height');var width=container.width();var height=container.height();var adaptive=container.data('adaptive');if(device==2){if(width>document.documentElement.clientWidth){width=document.documentElement.clientWidth;} relwidth=width;height=relheight=container.width()/(parseInt(container.data('scalheight'))/100);}else{if(typeof relwidth=='undefined'){relwidth=1920;} if(typeof relheight=='undefined'){relheight=600;} if(!adaptive&&height>relheight){height=relheight;}} var screenWidth=banner.getWidth(container);if(width0){$('#xg_banner').css('min-width',width+'px');}} if(device==2){height=width/(parseInt(container.data('scalheight'))/100);}else if(adaptive){height=relheight/relwidth*width;} if(!adaptive&&device==1){container.css('height','');}else{if(device==2){container.css({'height':height+'px','width':width+'px'});}else{container.css({'height':(relheight/relwidth*width)+'px','width':width+'px'});}} container.find('.xg_banner_item').css({'width':width+'px','height':height+'px','max-width':width+'px','max-height':height+'px','min-width':width+'px','min-height':height+'px'});if(parent.$('#preview_page').length>0){setTimeout(function(){container.find('.xg_banner_item').css({'width':width,'height':height,'max-width':width,'max-height':height,'min-width':width,'min-height':height});},40);} if(device==1){if(container.data('effect')==1){container.find('.slick-list').css({'width':width+'px','height':height+'px','margin-left':'auto','margin-right':'auto','overflow':'hidden'});if(adaptive){container.find('.xg_banner_img img').css({'width':'100%','height':'100%','min-width':'','max-width':'','min-height':'','left':'','margin-left':'','top':'','margin-top':''});}else{container.find('.xg_banner_img img').css({'width':relwidth+'px','height':relheight+'px','min-width':relwidth+'px','min-height':relheight+'px','max-width':'','left':'50%','position':'relative','margin-left':(-1*relwidth/2)+'px'});}}else if(adaptive){container.find('.xg_banner_img img').css({'width':'100%','height':'100%','position':'relative','min-width':'','min-height':'','max-width':'','left':'','margin-left':'','top':'','margin-top':''});}else{container.find('.xg_banner_img img').css({'width':relwidth+'px','height':relheight+'px','min-width':relwidth+'px','min-height':relheight+'px','max-width':'','left':'50%','top':'50%','position':'relative','margin-left':(-1*relwidth/2)+'px','margin-top':(-1*relheight/2)+'px'});}}else{container.find('.xg_banner_img img').css({'width':'100%','height':'100%','position':'relative','min-width':'','max-width':'100%','min-height':'','left':'','margin-left':'','top':'','margin-top':''});}},autoChange:function(container){var pcAdaptive=container.data('adaptive');if(parent!=window&&page.currentDevice()==2&&container.parent().width()==banner.getWidth(container)){var width=container.parent().width();width=screen.widthswh){return swh;} return w;}else{var width=document.documentElement.clientWidth;if($('#xg_header').width()>width){width=$('#xg_header').width();}else if($('#xg_content').width()>width){width=$('#xg_content').width();}else if($('#xg_footer').width()>width){width=$('#xg_footer').width();} var swh=screen.width-util.getScrollBarWidth();if(width>swh){return swh;} return width;}},initshutter:function(option){option.shutterW=option.Width;option.shutterH=option.Height;option.isAutoPlay=option.autoplay;option.playInterval=option.autoplaySpeed;option.curDisplay=0;option.fullPage=false;option.dotsNav=option.dots;option.arrows=option.arrows;option.animaType=option.animaType;option.duration=option.speed;option.mobilarrow=option.mobilarrow;option.currentDevice=page.currentDevice();$('.shutter').shutter(option);}} var configf4e8c1a58d67cd98={"autoPlay":"true","slidesToShow":"1","slidesToScroll":"1","arrows":"true","autoplaySpeed":"4","m_slidesToShow":"1","m_slidesToScroll":"1","m_arrows":"false","speed":"1000","errorAutoPlay":"false"};(function(root,config){var slick = root.find('.data_row'); slick.data("currentDevice", 0); function main() { setTimeout(function () { play(); }, 2000); } var play = function () { if (config.autoPlay) { slick.slick('slickPlay'); } } function init() { config.errorAutoPlay = util.toBool(config.errorAutoPlay); config.autoPlay = util.toBool(config.autoPlay); config.slidesToShow = util.toInt(config.slidesToShow); config.slidesToScroll = util.toInt(config.slidesToScroll); config.arrows = util.toBool(config.arrows); config.autoplaySpeed = util.toInt(config.autoplaySpeed) == 0 ? 3 : util.toInt(config.autoplaySpeed); config.speed = util.toInt(config.speed); if (page.currentDevice() == 2) { config.arrows = util.toBool(config.m_arrows); config.slidesToShow = util.toInt(config.m_slidesToShow) == 0 ? 3 : util.toInt(config.m_slidesToShow); config.slidesToScroll = util.toInt(config.m_slidesToScroll) == 0 ? 3 : util.toInt(config.m_slidesToScroll); } var options = { autoplay: config.errorAutoPlay, //自动播放 autoplaySpeed: config.autoplaySpeed * 1000, //自动播放速度 arrows: config.arrows, //上一页下一页箭头 infinite: true, //循环播放 speed: config.speed, //滑动时间 slidesToShow: config.slidesToShow, //幻灯片每屏显示个数 slidesToScroll: config.slidesToScroll, // 幻灯片每次滑动个数 vertical: true, adaptiveHeight: true, pauseOnHover: true, //鼠标悬停暂停 cssEase: 'cubic-bezier(0.950, 0.050, 0.795, 0.950)', } if (typeof mySlickOption != 'undefined') { options = mySlickOption(options, root); } if (slick.children().length > 0 && slick.data("currentDevice") != 0 && slick.find(".slick-list").length > 0) { slick.slick('destroy'); } var loaded = false; var load = function () { if (loaded) { return; } loaded = true; slick.on('init', function (slick) { var $imgs = $(slick.currentTarget).find('img').not('[loaded]'); $imgs.each(function (index, item) { var src = $(item).attr("src"); if (!src || src.indexOf("data:") == 0) { $(item).attr("src", $(item).attr("data-src")).attr('loaded', 1); } else { $(item).attr('loaded', 1); } }); }).slick(options); slick.data("currentDevice", page.currentDevice()); } load(); } function reloadSlick() { root.data("tabload", "0"); if (slick.data("currentDevice") && slick.data("currentDevice") != page.currentDevice()) { init(); main(); } } page.resize(reloadSlick); page.registeTabReload.push(function (tabItem, index) { var find = false; root.parents().each(function () { if ($(this).is(tabItem)) { find = true; } }); if (find) { if (root.data("tabload") == "1") { if (config.autoPlay) { slick.slick('slickPlay'); //继续播放 } } else { root.data("tabload", "1"); init(); main(); } } else { slick.slick('slickPause'); //暂停 } }); init(); $(main);})($('#cf4e8c1a58d67cd98'),configf4e8c1a58d67cd98); $(function(){ // 首页-产品与解决方案 $("#i7db0be686b167867 .data_col").eq(0).addClass('on'); $('#ib2641bbdfcb3bb04 >div>div').eq(0).addClass('cur'); $("#i7db0be686b167867 .data_col").each(function(i){ $(this).hover(function(){ $(this).addClass('on').siblings().removeClass('on'); $('#ib2641bbdfcb3bb04 >div>div').eq(i).addClass('cur').siblings().removeClass('cur') }) }) }); $(function(){ // 产品与解决方案鼠标移入效果 $(".p1700m226390a8c072e33e >div>div").each(function(){ $(this).hover(function(){ $(this).find('.p1700m3ca1451f46c7b515').stop(true,true).slideDown(300); $(this).find('.p1700me5f2365e8e74b84a').stop(true,true).slideDown(300); },function(){ $(this).find('.p1700m3ca1451f46c7b515').stop(true,true).slideUp(300); $(this).find('.p1700me5f2365e8e74b84a').stop(true,true).slideUp(300); }) }); }); // 首页-产品与解决方案鼠标移入背景切换 $('#ib2641bbdfcb3bb04 >div >.data_col').each(function (i) { $(this).css('background', 'url("' + $(this).find('.p1700mf04a3c7ecaf706db img').attr('src') + '")'); }) $('#i226390a8c072e33e >div >.data_col').each(function () { $(this).hover(function () { var imageUrl = $(this).find('.p1700mf04a3c7ecaf706db img').attr('src') $(this).parents('.data_col').css('background-image', 'url("' + imageUrl + '")'); }, function () { $('#ib2641bbdfcb3bb04 >div >.data_col').each(function (i) { $(this).css('background', 'url("' + $(this).find('.p1700mf04a3c7ecaf706db img').attr('src') + '")'); }) }) }); // 首页新闻轮播 $("#i92f60579cc76080c").addClass("swiper-container"); $("#i92f60579cc76080c >div").addClass("swiper-wrapper"); $("#i92f60579cc76080c >div>div").addClass("swiper-slide"); var next = '
'; var prev = '
'; $("#i92f60579cc76080c").after(next, prev); var swiper = new Swiper('.swiper-container', { slidesPerView: 1, spaceBetween: 30, centeredSlides: true, loop: true, autoplay: { delay: 4000,//1秒切换一次 }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, breakpoints: { // 当屏幕大于768 768: { slidesPerView: 3, spaceBetween: 30, centeredSlides: true, loop: true, autoplay: { delay: 4000,//4秒切换一次 }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, } } }); $(function () { // 首页3D粒子动画 var SEPARATION = 100, AMOUNTX = 80, AMOUNTY = 80; var container; var camera, scene, renderer; var particles, particle, count = 0; var mouseX = 80, mouseY = -700; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; init(); animate(); function init() { container = document.createElement('div'); container.className = 'canvas-bg'; var box = document.getElementById('c500160001'); box.appendChild(container); camera = new THREE.PerspectiveCamera(100, window.innerWidth / window.innerHeight, .01, 10000); camera.position.z = 1000; scene = new THREE.Scene(); particles = new Array(); var PI2 = Math.PI * 2; var material = new THREE.ParticleCanvasMaterial({ color: '#dae2fe', program: function (context) { context.beginPath(); context.arc(0, 0, 1, 0, PI2, true); context.fill(); } }); var i = 0; for (var ix = 0; ix < AMOUNTX; ix++) { for (var iy = 0; iy < AMOUNTY; iy++) { particle = particles[i++] = new THREE.Particle(material); particle.position.x = ix * SEPARATION - ((AMOUNTX * SEPARATION) / 2); particle.position.z = iy * SEPARATION - ((AMOUNTY * SEPARATION) / 2); scene.add(particle); } } renderer = new THREE.CanvasRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); container.appendChild(renderer.domElement); window.addEventListener('resize', onWindowResize, false); } function onWindowResize() { windowHalfX = window.innerWidth / 2; windowHalfY = window.innerHeight / 2; camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth, window.innerHeight); } function onDocumentMouseMove(event) { mouseX = event.clientX - windowHalfX; mouseY = event.clientY - windowHalfY; } function onDocumentTouchStart(event) { if (event.touches.length === 1) { event.preventDefault(); mouseX = event.touches[0].pageX - windowHalfX; mouseY = event.touches[0].pageY - windowHalfY; } } function onDocumentTouchMove(event) { if (event.touches.length === 1) { event.preventDefault(); mouseX = event.touches[0].pageX - windowHalfX; mouseY = event.touches[0].pageY - windowHalfY; } } function animate() { requestAnimationFrame(animate); render(); } function render() { camera.position.x += (mouseX - camera.position.x) * .05; camera.position.y += (-mouseY - camera.position.y) * .05; camera.lookAt(scene.position); var i = 0; for (var ix = 0; ix < AMOUNTX; ix++) { for (var iy = 0; iy < AMOUNTY; iy++) { particle = particles[i++]; particle.position.y = (Math.sin((ix + count) * 0.3) * 50) + (Math.sin((iy + count) * 0.5) * 50); particle.scale.x = particle.scale.y = (Math.sin((ix + count) * 0.3) + 1) * 2 + (Math.sin((iy + count) * 0.5) + 1) * 2; } } renderer.render(scene, camera); count += 0.1; } }); menu($('#'+'if1717099a2581b2a6b3c75'),{mobileMenuEffect:{init:function(root){},show:function(root){var lis=root.find('.xg_menuMobile').find('li');var count=0;for(var index=0;index0){ $("#if17170f24dad563f2a4bd4 input[type=text]").val(decodeURIComponent(paras[2])); } }},verify:function(el,val){util.isNullOrEmpty(val)&&(val='');var col='Key';var span=el.find('span.xg_fierror');var error=false;if(!validate[col]){return true;} validate[col].forEach(function(item){if(!error&&!item.reg.test(val)){error=true;span.text(item.msg).show();return false;}});if(error){return!error;$('html,body').scrollTop(el.offset().top);}else{span.text('');} return!error;},getValue:function(el){var inputs=el.find('input[type=text]');var textArea=el.find('textarea');var selects=el.find('select');var val='';if(inputs.length>0){var hid=el.find('input[type=hidden]');if(hid.length>0){type='hidden';}else{type=inputs.eq(0).attr('type');} if(type=='hidden'){val=hid.val();}else if(type=='radio'){inputs.each(function(){if($(this).is(':checked')){val=$(this).val();}});}else if(type=='checkbox'){inputs.each(function(){if($(this).is(':checked')){val+=$(this).val()+',';}});if(val.length>0){val=val.replace(/,$/g,'');}}else{val=inputs.eq(0).val();}}else if(textArea.length>0){val=textArea.val();}else if(selects.length>0){val=selects.find(':selected').val();}else{util.log('未能设别的内容');} if(util.isNullOrEmpty(val)){return val;} return val;},siteSearch:function(){if(util.inDesign()) return;var btn=root.find('#'+root.data('btn'));var inKey=root.find('input[type=text]');if(inKey.length<1){return;} var div=inKey.parent();var verify=div.data('verify');if(!verify||!verify()){return;} var searchVal=encodeURIComponent(inKey.val());search.openUrl(searchVal);},openUrl:function(key){var goUrl=root.data('go');if(goUrl){goUrl=util.createUrl(goUrl,false,['key'],[key]);}else{goUrl=util.createUrl(null,false,['key'],[key]);} if(typeof mySiteSearch!='undefined'){mySiteSearch(root,goUrl);return;} util.openUrl(goUrl,root.data('target'));}} ;var validate={"Key":[{"reg":/\S{1,}/,"msg":"不允许为空"},{"reg":/^\S{1,11}$/,"msg":"允许输入字符数范围是:1到11位"}]} $(search.init);})($('#if17170f24dad563f2a4bd4')); animation.config['an115']={"id":"115","clientIndex":"594e2da84bd0b594","timingFunction":"","duration":"1","delay":"0","type":1,"name":"广告图文案1_飞入","anName":"an_tran_115","library":"fadeInLeft","device":1,"loop":1,"resume":1,"clear":1}; banner.init($('#i6d4bef526313b8fa')); animation.config['an74']={"id":"74","clientIndex":"c1a7c96ea38128a1","timingFunction":"","duration":"1","delay":"0","type":1,"name":"关于天喻左侧内容_飞入","anName":"an_tran_74","library":"fadeInLeft","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an75']={"id":"75","clientIndex":"6204edbfe809993b","timingFunction":"","duration":"1","delay":"0","type":1,"name":"关于天喻右侧图片_向左飞入","anName":"an_tran_75","library":"fadeInRight","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an104']={"id":"104","clientIndex":"3e73266c0a81693f","timingFunction":"","duration":"1","delay":"0","type":1,"name":"产品与解决方案标题_向上飞入","anName":"an_tran_104","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an106']={"id":"106","clientIndex":"7db0be686b167867","timingFunction":"","duration":"1","delay":"0","type":1,"name":"产品与解决方案选项卡_向上飞入","anName":"an_tran_106","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an105']={"id":"105","clientIndex":"b2641bbdfcb3bb04","timingFunction":"","duration":"1","delay":"0","type":1,"name":"产品与解决方案内容_向上飞入","anName":"an_tran_105","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an78']={"id":"78","clientIndex":"e49a13d15abc72e2","timingFunction":"","duration":"1","delay":"0","type":1,"name":"新闻标题_向上飞入","anName":"an_tran_78","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an79']={"id":"79","clientIndex":"92f60579cc76080c","timingFunction":"","duration":"1","delay":"0.2","type":1,"name":"新闻内容_向上飞入","anName":"an_tran_79","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1}; animation.config['an80']={"id":"80","clientIndex":"f1718-0341bbe810ac93f8b","timingFunction":"","duration":"1","delay":"0.3","type":1,"name":"底部效果_向上飞入","anName":"an_tran_80","library":"fadeInUp","device":1,"loop":1,"resume":1,"clear":1};