Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 27
/*! Project : 同时进一步加强“两个闭环”管理,对事故隐患整治进行全过程督促,直至隐患消除。为提升城市安全整体数字化、智能化、效率协同化等综合条件赋利赋能,实现安全、高效发展模式。"和晨明电动车 +---------common.js----------+ | | | Author | yeshiqiu | | Q__Q | 337676937 | | Addr | SC_Chengdu | | Date | 2021.05.10 | | | +--!-_-!--------------!-_-!--+ */ $b=$('body'); w.Y_LazyLoad(); // ;(function($){ if(ysq.IsMoble/*&&MacTest()*/) return ; $('.sAbout-factory .head').attr({'swAnimate': ['zoomIns'],swStep:[100,100]}) $('.index-brand .coc ').addClass('scrollCount').attr({scrollEle: 'aniSerialize',scrollCbk:.5}); $('.index-brand .numCountUp').addClass('waitCount').attr({'data-delay':1200}); // xxxxxxxxxxx $('.waitAniTitleBlock').attr({scrollEle: 'aniSerialize',scrollCbk:.4}); $('.landing-case .sCase-list,.index-system .oList,.sMarketing-business .oList,.sMarketing-axdvantage .oList') .attr({scrollEle: 'team', scrollArray: 'fadeInDowns'}); ; $('.sMarketing-service-body .oList') .attr({scrollEle: 'team', scrollArray: ['fadeInLefts','fadeInRights'],scrollDelayArray:200,scrollColumns:6}); ; $('.index-flow .oList') .attr({scrollEle: 'team', scrollArray: 'fadeInRights' }); ; $('.sAbout-culture .oList ') .attr({scrollEle: 'team', scrollArray: 'fadeInDownm' }); ; $('.sAbout-intro .imax,.sTerritory-partner-list,.sContact-intro .oList,.sHonor-awards-list,.sHonor-brand .oList,.sComponent-list, .sDepreciation-list,.sAfterSale-section2 .list6,.subpage .sCase-list,.sProduct-list,.sEvent-list') .attr({scrollEle: 'team', scrollNext: 'fadeInDowns' }); ; $('.wave,.sContact-list .item,.sHr-list,.subpage-banner .words,.sQuestion-list .item,.subpage-form,.sNews-list .item') .attr({scrollEle: 'fadeInDowns',scrollCbk:'.2' }); ; $('.sFactory-resMove,.sAbout-factory .description') .attr({scrollEle: 'fadeInDownm' }); ; // $('.sFactory-resMove .shade') // .attr({scrollEle: 'fadeInRightm' }); // ; $('.landing-project .list .item .picArea,.sAbout-honor .contain,.index-flow .consule-btn,.index-product .Tt .box.on,.sProject-list .item .pic,.sMaintenance-tab .contain') .attr({scrollEle: 'zoomIns' }); ; $('.index-system .dct') .attr({scrollEle: 'fadeInRightm' }); ; $('.landing-product-list,.landing-service .oList,.sAbout-intro .digitalData,.citymapSearch .mapList') .attr({scrollEle: 'team', scrollArray: 'zoomIns',scrollCbk:'.4'}); ; $('.landing-service .oList').data('fn_AniStart', function($e){ $('.dot',$e).each(function(i,oDot) { $(oDot).css({'animation-delay':-i*Math.random().toFixed(4)*2+'s'}); }); }) $('.landing-axdvantage .head') .attr({scrollEle: 'team', scrollArray: 'fadeInDowns' }); ; $('.landing-service .foot,.landing-section .bg.c.t') .attr({scrollEle: 'fadeInUpm' }); ; // $('.landing-section .bg.c.b') // .attr({scrollEle: 'fadeInDownm' }); ; $('.landing-axdvantage .body ') .attr({scrollEle: 'team', scrollArray: ['zoomIns','fadeInLefts','fadeInRights','fadeInLefts','fadeInRights'],scrollDelayArray:200,scrollColumns:5,scrollCbk:.5}); // $('.landing-section .bg.c.b').attr({"data-depth":"0.15"}); // $('.landing-section .bg.c.b').attr({"scrollParallax":"0.15"}); })(jQuery); // subpage ;(function($){ // sub navs if($h.hasClass('pc')){ $('.subpage-nav .link2,.subpage-thirdNav .link3,.pageList a').each(function(i,oLink) { if($(oLink).attr('href').indexOf('javascript')<0&&$(oLink).attr('href').indexOf('#')<0){ $(oLink).attr('href', $(oLink).attr('href')+'#subpage_neck'); } }); $('.subpage-nav,.subpage-thirdNav').Y_HoverOn({item:".link"}) .Y_OffsetMove({item:".link",single:!1,prev:".prev",next:".next",vertical:!1}); $('.subpage-search .keywords .sdd').Y_OffsetMove({item:".link",single:!1,prev:".prev",next:".next",vertical:!1}); } $('.subpage-nav,.subpage-thirdNav,.subpage-search .keywords .sdd').each(function(i,oE) { var $this=$(oE),X=0.5, //0.5居中 0居左 $viewport=$('.viewport',oE), $overview=$(".overview",oE), $itemOn=$('.link.on',oE); if($itemOn.length&&$overview.outerWidth()>$viewport.outerWidth()){ $viewport.scrollLeft($itemOn.offset().left+$viewport.scrollLeft()-($viewport.offset().left)+($itemOn.outerWidth()-$viewport.outerWidth())*X); } }); })(jQuery); // sub head ;(function($){ var $oE = $('.subpage-head .cn'); if(!$oE.length) return !1; $($oE).each(function(i,oSpan) { strSplit($(oSpan),$(oSpan).text().length/2,'s'); }); })(jQuery); // subpage-crumbs ;(function($){ var $oE = $('.subpage-crumbs .now .en'); if(!$oE.length) return !1; $oE.each(function(i,oE) { var str = $(oE).html(); $(oE).html(''+str.replace(' ',' ')+'') $('span',$(oE)).each(function(i,oSpan) { strSplit($(oSpan),1,'s'); }); }); })(jQuery); // index-head ;(function($){ var $oE = $('.index-head .en'); if(!$oE.length) return !1; $oE.each(function(i,oE) { var str = $(oE).html(); $(oE).html(''+str.replace(' ',' ')+'') }); // $('span',$oE).each(function(i,oSpan) { // strSplit($(oSpan),1,'s'); // }); })(jQuery); // countUp ;(function($){ var nCreatedYear = $('[data-created]').attr("data-created")/1; var nNowYear = new Date().getFullYear(); // $('#createdYear').attr({"data-startVal":nNowYear,"data-endVal":nCreatedYear}); $('#createdAge').attr({"data-endVal":nNowYear-nCreatedYear+1}); w.on("scroll.numCountUp",function(event) { if(ysq.shutDown)return; $(".numCountUp").each(function(i,oE) { if(inWindow($(oE))&&!$(oE).hasClass("bindedFn")){ $(".num",oE).each(function(ii,oNum) { var numStart = new CountUp(oNum, $(oNum).attr("data-startVal")||0, $(oNum).attr("data-endVal"), getDecimals($(oNum).attr("data-endVal")).length, 2); setTimeout(function(){numStart.start(); },100*ii+(parseInt($(oE).attr("data-delay"))||150) ); }); $(oE).addClass('bindedFn'); } }); }).trigger("scroll.numCountUp"); })(jQuery); // scrollbox ;(function($){ function scrollBox_init($oE){ var $this = $oE; if ($this.hasClass('disable')) {return !0; } var axis = $this.hasClass('x') ? "x" : "y"; var flag = axis=="x" ? ($(".overview", $this).children().width() > $(".viewport", $this).width()) : ($(".overview", $this).height() > $(".viewport", $this).height()); if (flag) { $(".overview", $this).addClass("mousein"); $this[0].unbindable||$this.tinyscrollbar({ // thumbSize: 60, wheelLock:!0, axis: axis, wheelSpeed:40, wheel: true });$this[0].unbindable=!0; $this.data("MsFlag", !0).find(".scrollbar").stop(!0,!1).fadeIn(); } else { $this.find('.scrollbar').hide(); } $this.data("MsFlag") && $this.data("plugin_tinyscrollbar").update("relative"); } $b.delegate(".module-Scrollbox", 'mouseenter.scrollbox', function() { scrollBox_init($(this)); }).delegate(".module-Scrollbox", 'mouseleave.scrollbox', function() { var $this = $(this); if ($this.hasClass('disable')) {return !0; } $(".overview", $this).removeClass("mousein"); // $(".scrollbar",$this).delay(200).stop(!0,!1).fadeOut(); }); $('.module-Scrollbox').each(function(i,oE) {scrollBox_init($(oE)); }); w.on("resize.scrollbox",function(event) { $('.module-Scrollbox .scrollbar').hide(); MinWidth(1024)?$(".module-Scrollbox").removeClass("unlock"):$(".module-Scrollbox").addClass("unlock"); }).trigger('resize.scrollbox'); })(jQuery); // searchbox ;(function($){ $(".searchBox").each(function(i,oE) { var $sForm=$(oE); $sForm.delegate(".enter","click",function(event){ // if($sForm.hasClass("show")){ var $ipt=$('.skin',$sForm); // $ipt.removeClass("red"); if(isNull($ipt.val())){ return $ipt.focus(), // $ipt.Y_Animation({animation:"false"}), prevent_default(event); } }); }); })(jQuery); // canvas ;(function($){ var canvas_particle = function (){ if(!$h.hasClass("bCanvas")||!$(".canvasRoom").length) return ; var $oE=$('.index-about'); var _cc, _bgcc, $oEx, _timeout; // if($('.subpage').length){ _cc='#d9d9d9'; _bgcc='#353535'; bgcc_opacity=0; $oEx=$('.canvasRoom'); _timeout=200; // } var _this=this; var counter=0; var bFirst=!0; var bSwitch=!0; var SEPARATION = 100, AMOUNTX = 50, AMOUNTY = 50; var container; var camera, scene, renderer; var particles, particle, count = 0; var mouseX = 0, mouseY = 0; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; // //fns function init() { container = document.createElement('div'); $oEx.append(container); camera = new THREE.PerspectiveCamera(120, window.innerWidth / window.innerHeight, 1, 2000); camera.position.z = 1000; scene = new THREE.Scene(); // scene.background = new THREE.Color(_bgcc); particles = new Array(); // var PI2 = Math.PI * 1; //爱心 var PI2 = Math.PI * 2; var color = new THREE.Color(_cc); var material = new THREE.SpriteCanvasMaterial({ color: color, opacity: 1, program: function(context) { context.beginPath(); context.arc(0, 0, 0.4, 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.Sprite(material); particle.position.x = ix * SEPARATION - ((AMOUNTX * SEPARATION) / 2); particle.position.z = iy * SEPARATION - ((AMOUNTY * SEPARATION) / 2); scene.add(particle); // c(scene) } } renderer = new THREE.CanvasRenderer({antialias: true, alpha: true }); renderer.setPixelRatio(window.devicePixelRatio); renderer.setSize($oEx.outerWidth(), $oEx.outerHeight()); renderer.setClearColor(new THREE.Color(_bgcc), bgcc_opacity); container.appendChild(renderer.domElement); // document.addEventListener('mousemove', onDocumentMouseMove, false); //document.addEventListener( 'touchstart', onDocumentTouchStart, false ); //document.addEventListener( 'touchmove', onDocumentTouchMove, false ); // 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() { if(counter<30){ requestAnimationFrame(animate); counter++; render(); } } function animate2() { if(bSwitch&&!ysq.IsMoble){ requestAnimationFrame(animate2); counter++; render(); } } function render() { camera.position.x += (w.outerWidth()/2 - camera.position.x) * .5; camera.position.y += (400 - camera.position.y) * 1; camera.up={x:.1,y:1,z:.1}; 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) * 4 + (Math.sin((iy + count) * 0.5) + 1) * 4; } } renderer.render(scene, camera); count += 0.1; } _this._init=function(){ init(); render(); setTimeout(function(){ $('.canvasRoom').show(); w.on('scroll.canvas', function(event) { c(bFirst) if(inWindow($oEx)&&bFirst){ bSwitch=!0; animate2(); bFirst=!1; } }).trigger('scroll.canvas'); },_timeout); },_this._leave=function(){ bSwitch=!1; },_this._come=function(){ bSwitch=!0; if(bFirst){animate2(); bFirst=!1; } } _this._init(); // _this._come(); } // canvas_particle(); })(jQuery); // product ;(function($){ $('.sel-Param').each(function(i,oSel) { var $line = $(this).parents('.sel-Line'); $('.panel',$line).text($('.btn.on',$line).text()); }); $('.sel-Param').click(function(event) { var $this = $(this); if(ysq.IsMoble){ $this.toggleClass('unfold'); $this.siblings('.sel-Value').slideToggle() } }); $('.sProduct-album').Y_Tab({TimeOut:0,IsDrag:ysq.IsMoble, prev:'.prev',next:'.next',clickMoveTg:[!0,'h','scroll']}) $('.sProduct-parameter-tab').Y_Tab({TimeOut:0,clickMoveTg:[!0,'h','scroll']}); $('.sProduct-photo-tab').Y_Tab({TimeOut:0,IsDrag:ysq.IsMoble,clickMoveTg:[!0,'h','scroll']}); $('.sProduct-relative-resMove').Y_ResMove({sData:[{w:1025,n:3,mr:.02},{w:1024,n:2,mr:.02}],lazyLoad:[!0,100],IsDrag:!0,instant:!0,IsPaging:!0,setPaging:!0,TimeOut:3}); $('.sCase-relative-resMove').Y_ResMove({sData:[{w:1025,n:3,mr:.02},{w:1024,n:2,mr:.02}],lazyLoad:[!0,100],IsDrag:!0,instant:!0,IsPaging:!0,setPaging:!0,TimeOut:3}); $('.sFactory-resMove').Y_ResMove({sData:[{w:1025,n:3,mr:.02},{w:1024,n:2,mr:.02}],lazyLoad:[!0,100],IsDrag:!0,instant:!0,IsPaging:!0,setPaging:!0,TimeOut:3}); $('.sProduct-project-tab').Y_Tab({TimeOut:0,IsDrag:!1,clickMoveTg:[!0,'o','scroll']}); $('.sProduct-detail').Y_Anchors({Tt:".sProduct-detail",TtC:".sProduct-detail-section",TtClass:"on",Tg:".sProduct-anchor",TgC:".btn",TgClass:"on",InitMove:!0,fn:{ after:function($this,$Tt,$TtC,$Tg,$TgC,idx){ // $Tg.css({top:(w.height() - $Tg.outerHeight())/2}); w.on('scroll.floatAnchor', function(event) { setVertical($('.sProduct-anchor'),$('.sProduct-detail'),$('.axd'),[0,0], Global.device == "pc" ? ($('.header-b').outerHeight()+5) :$('.header').outerHeight()); }).trigger('scroll.floatAnchor'); } }}); })(jQuery); // case ;(function($){ // list $('.sCase-switch').Y_Move({stopable:!1,IsPaging:!0,setPaging:!0,duration:600,transparent:!1,flipIn:!1,slidable:!0,IsDrag:!0,TimeOut:3,fn:{ before:function($this,$TtC,$Tg){ fnLazyloadPd($this)&&$.fn.Y_LazyLoad.Init($this,!0,50); // c(Global.device) if(!ysq.IsMoble){ var arr_item=[],arr_pItem=[],arr_nItem=[]; $('.item',$this).each(function(i,oItem) { arr_item.push(oItem) }); // 防止原数组被污染 arr_pItem = arr_item.concat(); arr_nItem = arr_item.concat(); // 创建新排序 arr_nItem = arr_nItem.concat(arr_nItem.splice(0,1)); arr_pItem = arr_pItem.splice(arr_pItem.length-1,1).concat(arr_pItem); // c('------------------------------') var _tempArray=[arr_pItem,arr_nItem]; _tempArray.forEach(function(value,index,arr){ var options = {TimeOut:3,duration:600,transparent:!1,slidable:!0,outerCtr:!0,prev:'.sCase-switch .prev',next:'.sCase-switch .next'}; if(index==0){ var _html = $('
').append($(value).clone()).html(); $this.prepend(`
    ${_html}
`); $('.sCase-switch-prev').Y_Move(options); } else if(index==1){ var _html = $('
').append($(value).clone()).html(); $this.append(`
    ${_html}
`); $('.sCase-switch-next').Y_Move(options); } }); } },start :function($this,$TtC,idx,pdx,ndx,dir,dir,icoClick){ onoff($('.Tt .box',$this).eq(idx)); // $this.find('.counts .now').text(tensDigit(idx+1)); } }}); $('.sCase-album').Y_Tab({TimeOut:0,IsDrag:ysq.IsMoble, prev:'.prev',next:'.next',clickMoveTg:[!0,'h','scroll']}) })(jQuery); // shouhou ;(function($){ $('.sMaintenance-tab').Y_Tab({TimeOut:0,IsDrag:!1,clickMoveTg:[!0,'o','scroll'],fn:{ callback:function($this,idx,$TtC,$TgC,$Ta){ $('.module-Scrollbox',$TtC.eq(idx)).trigger('mouseenter.scrollbox'); } }}); })(jQuery); // about ;(function($){ $('.sAbout-honor-switch').Y_Move({TimeOut:3,IsPaging:!0,setPaging:!0,duration:600,transparent:!0,slidable:!1,IsDrag:!0}) })(jQuery); // else ;(function($){ // $('[data-anchorTo]').click(function(event) { var _id=$(this).attr('data-anchorTo'); Y_BodyScroll({goal:$('#'+_id).length&&$('#'+_id).offset().top,cbk:function(){ $('#'+_id).find('.skin').focus(); }}) }); w.on('scroll.floatFns', function(event) { setVertical($('.floatFns'),$('.TopLine'),$('.BottomLine'),[0,0],0); }).trigger('scroll.floatFns'); $(".backToTop").click(function(){Y_BodyScroll({goal:0,err:0,dur:600});}); $('.floatMessageBoard .Tg').click(function(event) {$('.floatMessageBoard').addClass('unfold') }); $('.floatMessageBoard .close').click(function(event) {$('.floatMessageBoard').removeClass('unfold'); }); // setVertical($('.floatRight'),$('.TopLine'),$('.BottomLine'),[0,0],0); $('.sEvent-tab').Y_Tab({duration:0,IsDrag:ysq.IsMoble, prev:'.prev',next:'.next',clickMoveTg:[!0,'h','scroll']}); // index-banner $('.index-banner').Y_Move({IsPaging:!0,setPaging:!0,duration:1200,transparent:!0,slidable:!1,IsDrag:!0,TimeOut:3,fn:{ before:function($this,$TtC,$Tg){ $TtC.length>1&&$this.find('.counts').append('01/ 01'); },after:function($this,$TtC,$Tg){ $TtC.length>1&&$this.find('.counts .all').text(tensDigit($TtC.length)); },start :function($this,$TtC,idx,pdx,ndx,dir,dir,icoClick){ $TtC.length>1&&$this.find('.counts .now').text(tensDigit(idx+1)); } }}); $('.index-product').Y_Tab({clickMoveTg:[!0,'h','scroll'],fn:{ start:function($this,idx,$TtC,$TgC,$Ta){ $('.index-product-rotateMove',$TtC.eq(idx)).hasClass('_binded')|| $('.index-product-rotateMove',$TtC.eq(idx)).addClass('_binded').Y_RotateMove({ duration:800,clickMove:!0,bCss3:[!0,5],IsDrag:!0,fn:{ callback:function($this,idx){ // $this.find('.now').text(tensDigit((idx+1)/1)); // $this.find('.sum').text(tensDigit($this.find('.item').length/1)); // onoff($('.bgs .bg').eq(idx)); },after:function($this){ // setTextLine($("[data-text-line]",$this)); fnLazyloadPd($TtC.eq(idx))&&$.fn.Y_LazyLoad.Init($TtC.eq(idx),!0,50); } } }); } }}) if ($("#spots").length && $('.bCanvas').length) { function hexToRgb(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,a,i){return t+t+a+a+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,t,a){return Math.min(Math.max(e,t),a)}function isInArray(e,t){return t.indexOf(e)>-1}var pJS=function(e,t){var a=document.querySelector("#"+e+" > .spots-canvas-el");this.pJS={canvas:{el:a,w:a.offsetWidth,h:a.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;t&&Object.deepExtend(i,t),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,t,a){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=a?a.x:Math.random()*i.canvas.w,this.y=a?a.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,a),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.particles.move.direction){case"top":n={x:0,y:-1};break;case"top-right":n={x:.5,y:-.5};break;case"right":n={x:1,y:-0};break;case"bottom-right":n={x:.5,y:.5};break;case"bottom":n={x:0,y:1};break;case"bottom-left":n={x:-.5,y:1};break;case"left":n={x:-1,y:0};break;case"top-left":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var r=i.particles.shape.type;if("object"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if("image"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),"svg"==i.tmp.img_type&&void 0!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.fn.particle.prototype.draw=function(){var e=this;if(void 0!=e.radius_bubble)t=e.radius_bubble;else var t=e.radius;if(void 0!=e.opacity_bubble)a=e.opacity_bubble;else var a=e.opacity;if(e.color.rgb)s="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+a+")";else var s="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+a+")";switch(i.canvas.ctx.fillStyle=s,i.canvas.ctx.beginPath(),e.shape){case"circle":i.canvas.ctx.arc(e.x,e.y,t,0,2*Math.PI,!1);break;case"edge":i.canvas.ctx.rect(e.x-t,e.y-t,2*t,2*t);break;case"triangle":i.fn.vendors.drawShape(i.canvas.ctx,e.x-t,e.y+t/1.66,2*t,3,2);break;case"polygon":i.fn.vendors.drawShape(i.canvas.ctx,e.x-t/(i.particles.shape.polygon.nb_sides/3.5),e.y-t/.76,2.66*t/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case"star":i.fn.vendors.drawShape(i.canvas.ctx,e.x-2*t/(i.particles.shape.polygon.nb_sides/4),e.y-t/1.52,2*t*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==i.tmp.img_type)n=e.img.obj;else var n=i.tmp.img_obj;n&&i.canvas.ctx.drawImage(n,e.x-t,e.y-t,2*t,2*t/e.img.ratio)}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e=i.particles.opacity.value&&(t.opacity_status=!1),t.opacity+=t.vo):(t.opacity<=i.particles.opacity.anim.opacity_min&&(t.opacity_status=!0),t.opacity-=t.vo),t.opacity<0&&(t.opacity=0)),i.particles.size.anim.enable&&(1==t.size_status?(t.radius>=i.particles.size.value&&(t.size_status=!1),t.radius+=t.vs):(t.radius<=i.particles.size.anim.size_min&&(t.size_status=!0),t.radius-=t.vs),t.radius<0&&(t.radius=0)),"bounce"==i.particles.move.out_mode)s={x_left:t.radius,x_right:i.canvas.w,y_top:t.radius,y_bottom:i.canvas.h};else var s={x_left:-t.radius,x_right:i.canvas.w+t.radius,y_top:-t.radius,y_bottom:i.canvas.h+t.radius};switch(t.x-t.radius>i.canvas.w?(t.x=s.x_left,t.y=Math.random()*i.canvas.h):t.x+t.radius<0&&(t.x=s.x_right,t.y=Math.random()*i.canvas.h),t.y-t.radius>i.canvas.h?(t.y=s.y_top,t.x=Math.random()*i.canvas.w):t.y+t.radius<0&&(t.y=s.y_bottom,t.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case"bounce":t.x+t.radius>i.canvas.w?t.vx=-t.vx:t.x-t.radius<0&&(t.vx=-t.vx),t.y+t.radius>i.canvas.h?t.vy=-t.vy:t.y-t.radius<0&&(t.vy=-t.vy)}if(isInArray("grab",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(t),(isInArray("bubble",i.interactivity.events.onhover.mode)||isInArray("bubble",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(t),(isInArray("repulse",i.interactivity.events.onhover.mode)||isInArray("repulse",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(t),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+c.r+","+c.g+","+c.b+","+r+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(t.x,t.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,t){var a=e.x-t.x,s=e.y-t.y;if(Math.sqrt(a*a+s*s)<=i.particles.line_linked.distance){var n=a/(1e3*i.particles.move.attract.rotateX),r=s/(1e3*i.particles.move.attract.rotateY);e.vx-=n,e.vy-=r,t.vx+=n,t.vy+=r}},i.fn.interact.bounceParticles=function(e,t){var a=e.x-t.x,i=e.y-t.y,s=Math.sqrt(a*a+i*i);e.radius+t.radius>=s&&(e.vx=-e.vx,e.vy=-e.vy,t.vx=-t.vx,t.vy=-t.vy)},i.fn.modes.pushParticles=function(e,t){i.tmp.pushing=!0;for(var a=0;e>a;a++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:t?t.pos_x:Math.random()*i.canvas.w,y:t?t.pos_y:Math.random()*i.canvas.h})),a==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){function t(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function a(t,a,s,n,r){if(t!=a)if(i.tmp.bubble_duration_end){if(void 0!=s){o=t+(t-(n-p*(n-t)/i.interactivity.modes.bubble.duration)),"size"==r&&(e.radius_bubble=o),"opacity"==r&&(e.opacity_bubble=o)}}else if(v<=i.interactivity.modes.bubble.distance){if(void 0!=s)c=s;else var c=n;if(c!=t){var o=n-p*(n-t)/i.interactivity.modes.bubble.duration;"size"==r&&(e.radius_bubble=o),"opacity"==r&&(e.opacity_bubble=o)}}else"size"==r&&(e.radius_bubble=void 0),"opacity"==r&&(e.opacity_bubble=void 0)}if(i.interactivity.events.onhover.enable&&isInArray("bubble",i.interactivity.events.onhover.mode)){var s=e.x-i.interactivity.mouse.pos_x,n=e.y-i.interactivity.mouse.pos_y,r=1-(v=Math.sqrt(s*s+n*n))/i.interactivity.modes.bubble.distance;if(v<=i.interactivity.modes.bubble.distance){if(r>=0&&"mousemove"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){(o=e.radius+i.interactivity.modes.bubble.size*r)>=0&&(e.radius_bubble=o)}else{var c=e.radius-i.interactivity.modes.bubble.size,o=e.radius-c*r;e.radius_bubble=o>0?o:0}if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value){(l=i.interactivity.modes.bubble.opacity*r)>e.opacity&&l<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=l)}else{var l=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*r;l=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=l)}}}else t();"mouseleave"==i.interactivity.status&&t()}else if(i.interactivity.events.onclick.enable&&isInArray("bubble",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){var s=e.x-i.interactivity.mouse.click_pos_x,n=e.y-i.interactivity.mouse.click_pos_y,v=Math.sqrt(s*s+n*n),p=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;p>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),p>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}i.tmp.bubble_clicking&&(a(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,"size"),a(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},i.fn.modes.repulseParticle=function(e){if(i.interactivity.events.onhover.enable&&isInArray("repulse",i.interactivity.events.onhover.mode)&&"mousemove"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,a=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(t*t+a*a),n={x:t/s,y:a/s},r=clamp(1/(o=i.interactivity.modes.repulse.distance)*(-1*Math.pow(s/o,2)+1)*o*100,0,50),c={x:e.x+n.x*r,y:e.y+n.y*r};"bounce"==i.particles.move.out_mode?(c.x-e.radius>0&&c.x+e.radius0&&c.y+e.radius=p&&function(){var t=Math.atan2(v,l);if(e.vx=d*Math.cos(t),e.vy=d*Math.sin(t),"bounce"==i.particles.move.out_mode){var a={x:e.x+e.vx,y:e.y+e.vy};a.x+e.radius>i.canvas.w?e.vx=-e.vx:a.x-e.radius<0&&(e.vx=-e.vx),a.y+e.radius>i.canvas.h?e.vy=-e.vy:a.y-e.radius<0&&(e.vy=-e.vy)}}()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&"mousemove"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,a=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(t*t+a*a);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){"window"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener("mousemove",function(e){if(i.interactivity.el==window)var t=e.clientX,a=e.clientY;else var t=e.offsetX||e.clientX,a=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=t,i.interactivity.mouse.pos_y=a,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status="mousemove"}),i.interactivity.el.addEventListener("mouseleave",function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status="mouseleave"})),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener("click",function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case"push":i.particles.move.enable?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case"remove":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case"bubble":i.tmp.bubble_clicking=!0;break;case"repulse":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout(function(){i.tmp.repulse_clicking=!1},1e3*i.interactivity.modes.repulse.duration)}})},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var t=e*i.particles.number.value/i.particles.number.density.value_area,a=i.particles.array.length-t;0>a?i.fn.modes.pushParticles(Math.abs(a)):i.fn.modes.removeParticles(a)}},i.fn.vendors.checkOverlap=function(e,t){for(var a=0;av;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL("image/png"),"_blank")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,""!=i.particles.shape.image.src)if("svg"==e){var t=new XMLHttpRequest;t.open("GET",i.particles.shape.image.src),t.onreadystatechange=function(e){4==t.readyState&&(200==t.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),i.tmp.img_error=!0))},t.send()}else{var a=new Image;a.addEventListener("load",function(){i.tmp.img_obj=a,i.fn.vendors.checkBeforeDraw()}),a.src=i.particles.shape.image.src}else console.log("Error pJS - No image.src"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):void 0!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type&&void 0==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray("image",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.fn.vendors.start()};Object.deepExtend=function(e,t){for(var a in t)t[a]&&t[a].constructor&&t[a].constructor===Object?(e[a]=e[a]||{},arguments.callee(e[a],t[a])):e[a]=t[a];return e},window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,window.pJSDom=[],window.particlesJS=function(e,t){"string"!=typeof e&&(t=e,e="spots"),e||(e="spots");var a=document.getElementById(e),i="spots-canvas-el",s=a.getElementsByClassName(i);if(s.length)for(;s.length>0;)a.removeChild(s[0]);var n=document.createElement("canvas");n.className=i,n.style.width="100%",n.style.height="100%";null!=document.getElementById(e).appendChild(n)&&pJSDom.push(new pJS(e,t))},window.particlesJS.load=function(e,t,a){var i=new XMLHttpRequest;i.open("GET",t),i.onreadystatechange=function(t){if(4==i.readyState)if(200==i.status){var s=JSON.parse(t.currentTarget.response);window.particlesJS(e,s),a&&a()}else console.log("Error pJS - XMLHttpRequest status: "+i.status),console.log("Error pJS - File config not found")},i.send()}; // particlesJS('spots', { "particles": { "number": { "value": 120, "density": { "enable": true, "value_area": 800 } }, "color": { "value": "#fff" }, "shape": { "type": "circle", "stroke": { "width": 0, "color": "#000" }, "polygon": { "nb_sides": 5 } // , // "image": { // "src": "img/github.svg", // "width": 100, // "height": 100 // } }, "opacity": { "value": .8, "random": true, "anim": { "enable": true, "speed": 1, "opacity_min": 0, "sync": true } }, "size": { "value": 3, "random": true, "anim": { "enable": false, "speed": 4, "size_min": 0.3, "sync": false } }, "line_linked": { "enable": !0, "distance": 50, "color": "#ffffff", "opacity": 0.4, "width": 1 }, "move": { "enable": true, "speed": 2, "direction": "none", "random": true, "straight": false, "out_mode": "out", "bounce": false, "attract": { "enable": false, "rotateX": 600, "rotateY": 600 } } }, "interactivity": { "detect_on": "canvas", "events": { "onhover": { "enable": true, "mode": "bubble" }, "onclick": { "enable": false, "mode": "repulse" }, "resize": true }, "modes": { "grab": { "distance": 100, "line_linked": { "opacity": 0.8 } }, "bubble": { "distance": 250, "size": 4, "duration": 2, "opacity": 1, "speed": 3 }, "repulse": { "distance": 400, "duration": 0.4 }, "push": { "particles_nb": 4 }, "remove": { "particles_nb": 2 } } }, "retina_detect": true }); } $('.index-about-switch').Y_Move({IsPaging:!0,setPaging:!0,duration:600,transparent:!0,slidable:!1,IsDrag:!0,TimeOut:0}); $('.index-case-tab').Y_Tab({lazyLoad:[!0,100],clickMoveTg:[!0,'h','scroll'],fn:{ before:function($this,$TtC,$TgC,$Ta){ $TtC.each(function(i1,oE) { $(oE).attr('id', 'index_case_tab_'+i1); var $list = $('.sCase-list',oE); if($('.item',$list).length>0){ $list.hide(); var arr_item=[],arr_pItem=[],arr_nItem=[]; $('.item',$list).each(function(i,oItem) { arr_item.push(oItem); }); // 防止原数组被污染 arr_pItem = arr_item.concat(); arr_nItem = arr_item.concat(); // 创建新排序 arr_nItem = arr_nItem; arr_pItem = arr_pItem.reverse(); // c('------------------------------') var _tempArray=[arr_pItem,arr_nItem]; _tempArray.forEach(function(value,index,arr){ if(index==0){ var _html = $('
').append($(value).clone()).html(); $(oE).append(`
    ${_html}
`); } else if(index==1){ var _html = $('
').append($(value).clone()).html(); $(oE).append(`
    ${_html}
`); } }); $list.remove(); $('.index-case-swiper',oE).each(function(i2,_oSwiper) { _oSwiper.swiperFn = new Swiper('#index_case_tab_'+i1+' #swper'+i1+'-'+i2, { speed: 4800, loop: !0, autoplay: { delay: 0, // reverseDirection:!0, waitForTransition:!0, stopOnLastSlide: !1, disableOnInteraction: !1, }, slidesPerView: 3, spaceBetween: '1.25%', breakpoints: { 1024:{spaceBetween: '2%',slidesPerView: 2 }, }, longSwipesRatio:0.5, on: { init: function(){ var oSwiper = this; oSwiper.params.autoplay.reverseDirection=oSwiper.$el.attr('direction-reverse')==1; var $this = oSwiper.$el; // swiperAutoPlayFn(oSwiper); // oSwiper.params.autoplay.reverseDirection=oSwiper.$el.attr('direction-reverse')==1; }, slideChange: function() { // var oSwiper = this; // var $this = oSwiper.$el; // var _idx = oSwiper.activeIndex; // var _perView = Math.ceil($this.outerWidth()/$('.swiper-slide',$this).outerWidth()); // var $lazyImgs = $('.swiper-slide',$this).slice(_idx,_idx + _perView); // fnLazyloadPd($lazyImgs) && $.fn.Y_LazyLoad.Init($lazyImgs, !0, 50); }, setTransition: function(event){ // var oSwiper = this; // var $this = oSwiper.$el; // !!fnLazyloadPd && fnLazyloadPd($this) && $.fn.Y_LazyLoad.Init($this); }, slideChangeTransitionStart: function() { }, slideChangeTransitionEnd: function() {}, sliderMove: function(event){}, progress: function(percent){ // c(percent); } }, }); _oSwiper.swiperFn.autoplay.stop(); }); } }).addClass('_bindjs'); }, callback:function($this,idx,$TtC,$TgC,$Ta){ $TtC.eq(idx).addClass('tempTag').siblings('.tempTag').removeClass('tempTag'); }, start:function($this,idx,$TtC,$TgC,$Ta){ $('.index-case-swiper',$TtC.eq(idx)).each(function(i,oSwiper) { $(oSwiper).hasClass('changeTrans')&& ($(oSwiper).removeClass('changeTrans'),oSwiper.swiperFn.setTranslate(oSwiper.swiperFn.translate-1)); $.fn.Y_LazyLoad.destroy($('.swiper-slide',$(oSwiper))); setTimeout(function(){ oSwiper.swiperFn.autoplay.start(); !!fnLazyloadPd && fnLazyloadPd($(oSwiper)) && $.fn.Y_LazyLoad.Init($(oSwiper),!0,50); },1); }); $this.find('.tempTag .index-case-swiper').each(function(i,oSwiper) { oSwiper.swiperFn.autoplay.stop(); $(oSwiper).addClass('changeTrans'); oSwiper.swiperFn.$wrapperEl.css({transition:'all 300ms linear 0ms'}); setTimeout(function(){ oSwiper.swiperFn.setTranslate(oSwiper.swiperFn.translate+1); },1); }); } }}); // $('.index-case-marquee').Y_Marquee({stopable:!1,oneByone:!1,TimeOut:1.5,direction:'h',IsReverse:!0,IsCss:!0}); $('.index-informations-inform .dd').Y_Marquee({stopable:!0,oneByone:!0,TimeOut:1.5,direction:'v'}); })(jQuery); // 顶部切换Class ;(function($){ var setNav = function(dur){ // if($('.mc-Main').length) {return;} var bFlag=w.scrollTop()>($('.TopLine').length?$('.TopLine').next().offset().top:1); // var bFlag=w.scrollTop()>($('.subpage-banner').length?$('.subpage-banner').next().offset().top:1); // var bFlag = !0; if($('.sNews-view').length){ bFlag=!1; $('.sNews-view-wrap .side').css({top:200}); } if(dur!=undefined){$('.header').Y_SetCss3({dur:'0ms'}); setTimeout(function(){$('.header').removeAttr('style'); },100); } bFlag?$('.header').addClass('fixedNav'):$('.header').removeClass('fixedNav'); }; w.on('scroll.navC',function(){setNav();}); setNav(0); })(jQuery); // ;(function($){ // // 上下收缩top // var setUpDownNav = function(bInit){ // // c(w.scrollTop()>=$('.TopLine').length?$('.TopLine').offset().top:1) // if(w.scrollTop()>=($('.TopLine').length?$('.TopLine').offset().top:1)){ // if(bInit||setUpDownNav.baseY>w.scrollTop()){ // $('.header').removeClass('foldNav'); // }else if (setUpDownNav.baseYGlobal.resWidth) { Global.device = "pc"; // 首屏banner // if(920/1920*w.width()>w.height()-$(".header").outerHeight()){ // $(".banner").css({paddingBottom:(w.height()-$(".header").outerHeight())/w.width()*100+"%"}); // } //bg set // $(".suitableBg").length && fullsetImg($(".suitableBg"), 1920, Global.DesignHeight); } else { Global.device = "wap"; } //bg set // ysq.FzAuto(); // $(".suitableBg").each(function(i, oE) { // $(oE).css({height: "100%", width: "auto"}); // if($(oE).width()<=w.width()){ // $(oE).css({width: "100%", height: "auto", top: "50%", marginTop:-$(oE).height()/2,left:0,marginLeft:0 }); // }else{ // $(oE).css({left: "50%", marginLeft:-$(oE).width()/2,top:0,marginTop:0 }); // } // }); // $("[resImg-src]").each(function(i,oE) { $(oE).attr("src",function(e,a){ var _src=''; $.each($(oE).attr("resImg-src").split("|"),function(i,data) { data=data.split(","); if(w.width()<=data[0]){_src=data[1]; } }); return _src; }); }); //
// 根据当前宽度/basewidth*100px; $('[data-suitRem]').each(function(i,oRem){ $(oRem).css('font-size',$(oRem).outerWidth()/parseInt($(oRem).attr('data-suitRem'))*100+'px'); }); // var _device=Global.device; // if(!MinWidth(750)){_device="mini";} // $(".sec_bg img").each(function(i,e) { // $(e).attr({"src":$(e).attr(Global.device+"-src")}) // }); // $(".res-img").css({paddingBottom:$(".sban").attr(_device+"-pad")}); if (w.data("device_status") != Global.device) { if (Global.device == "pc") { $h.addClass(Global.device).removeClass('wap'); $(".header").removeClass('navshow').find(".subnav").hide(); } else if (Global.device == "wap") { $h.addClass(Global.device).removeClass('pc'); } w.data("device_status", Global.device); } this.resizeTimer = setTimeout(function(){ w.trigger('scroll'); },100); }).trigger('resize.baset'); // 导航 ;(function($) { var baseY=0; var $navBg=$(".header .bg"),$firNav = $(".header .firNav"),$secNav = $(".header .secNav"); $(".navbtn").click(function(e) { var $this=$(this), $initItem=$firNav.find('.secNav .secItem.on'); // fnScrollElePd($(".header"))&&$.fn.Y_ScrollEle.Init($(".header"))&&$.fn.Y_ScrollEle.Do($(".header"),0,!0); if($b.hasClass('navShow')){ $b.removeClass('navShow'); // $navBg.fadeOut(); // $firNav.css({right: "-100%"}); }else{ $b.addClass('navShow'); // $navBg.fadeIn(); // $initItem.length&&$initItem.parents(".secNav").show(); // $firNav.css({"right": "0%"}); } }); $navBg.click(function(event) { $b.removeClass('navShow'); // $navBg.fadeOut(); // $firNav.css({right: "-100%"}); }); // w.on("resize.nav",function(event) { $firNav.find('.firItem').off("mouseleave.nav").off("mouseenter.nav").off("click.nav"); if(Global.device == "pc"){ // reset-Pc $(".navbtn").removeClass('navShow'); $navBg.fadeOut(); $firNav.add($secNav).removeAttr('style'); // $firNav.find('.firItem').on("mouseenter.nav",function(eve) { $(this).siblings().find('.secNav').slideUp().removeClass("active"); $(this).find('.secNav').stop(!0,!0).slideDown().addClass("active"); }).on("mouseleave.nav",function(event) { $(this).find('.secNav').stop(!0,!1).slideUp().removeClass("active"); }); }else{ $firNav.find('.firItem').on("click.nav",function(eve) { var $this=$(this); if($this.find('.secNav').length){ if($this.find('.secNav').is(':hidden')){ $this.siblings(".firItem").removeClass("on").find('.secNav').hide(0); $this.addClass("on").find('.secNav').show(0); return prevent_default(eve); } } }); } }).trigger('resize.nav'); })(jQuery); // subNav ;(function($){ $('.subpage-nav,.subpage-third').each(function(i,oE) { var $this=$(oE),X=0.5, //0.5居中 0居左 $viewport=$('.viewport',oE), $overview=$(".overview",oE), $itemOn=$('.link.on',oE); if($itemOn.length&&$overview.outerWidth()>$viewport.outerWidth()){ $viewport.scrollLeft($itemOn.offset().left+$viewport.scrollLeft()-($viewport.offset().left)+($itemOn.outerWidth()-$viewport.outerWidth())*X); } }); var $subNav=$(".subNav"), $firNav=$subNav.find('.firNav'),$firItem=$firNav.find('.firItem'), $secNav=$subNav.find('.secNav'),$secItem=$secNav.find('.secItem'); // if(!$subNav.length){return;} w.on("resize.subNav",function(event) { $firItem.off("mouseleave.subNav").off("mouseenter.subNav").off("click.subNav"); var $baseOn=$(".subNav .firItem.on"); if(Global.device == "pc"){ $secItem.removeClass('on'); $firItem.add($secItem).on("mouseenter.subNav",function(eve) { // $(this).siblings().find('.secNav').slideUp(300); // $(this).find('.secNav').stop(!0,!0).slideDown(500); $secNav.show(); onoff($(this)); onoff($secItem.eq($(this).index())); }).on("mouseleave.subNav",function(event) { $secNav.hide(); $secItem.removeClass('on'); onoff($baseOn); // $(this).find('.secNav').stop(!0,!1).slideUp(200); }); }else{ $secItem.removeClass('on'); $firItem.on("click.subNav",function(eve) { if($secItem.eq($(this).index()).hasClass('on')){ $secNav.hide(); $secItem.removeClass('on'); }else { $secNav.show(); onoff($(this)); onoff($secItem.eq($(this).index())); } if($secItem.eq($(this).index()).children().length>0){return prevent_default(eve);} }); } // if($firItem.width()*$firItem.length>$firNav.offset().left+$firNav.width()){ // $subNav.addClass('scrollX').children('.arrow').length||$subNav.append($("
",{class:"arrow"})); // $subNav.each(function(i,oE) { // var $scBox=$(".firNav",$(oE)),$linkOn=$(".firItem.on",$scBox); // if(!$scBox.length){return;} // $(oE).Y_OffsetMove({Tt:".firNav",TtC:".firItem",next:".arrow",single:!1}); // $scBox.length&&$linkOn.length&&($scBox.scrollLeft($linkOn.offset().left-$scBox.offset().left)); // }); // }else{ $subNav.removeClass('scrollX').children('.arrow').remove();} }).trigger('resize.subNav'); })(jQuery); // 人才 ;(function($){ // $(".sHr-list,.sQuestion-list").delegate('.show', 'click', function(event) { $(".sHr-list").delegate('.show', 'click', function(event) { var $item=$(this).parents(".item"), $btn=$(this).find('.btn span'); // if($btn.length){ $btn.text()=="展开全部信息"?$btn.text("收起全部信息"):$btn.text("展开全部信息");} if(!$item.hasClass('unfold')){ $item.addClass('unfold').find('.hide').slideDown(200).parents(".item").siblings('.item').removeClass("unfold").find('.hide').slideUp(200); }else{ $item.removeClass('unfold').find('.hide').slideUp(200); } }); })(jQuery); }); ;(function($){ // 视差滚动 // $('[scrollParallax]').each(function(i,oE) { // $(this).attr({scrollParallax:Math.max(0,0.5*($('[scrollParallax]').length-i-1)/$('[scrollParallax]').length)}) // }); // w.on('scroll.parallax', function(event) { // var wt=w.scrollTop(); // $('[scrollParallax]').each(function(i,oE) { // if(wt<=$(oE).offset().top){ // $(oE).css({transform:"translateY(0)"}); // }else if(inWindow($(oE),[-w.outerHeight()/3,-w.outerHeight()/3])){ // $(oE).css({transform:"translateY("+-(wt-$(oE).offset().top)*$(oE).attr("scrollParallax")/1+"px)"}); // } // }); // }).trigger('scroll.parallax'); })(jQuery); // landing-page ;(function($){ $('.landing-product-tab').Y_Tab({clickMoveTg:[!0,'h','scroll']}); $('.landing-case-tab').Y_Tab({clickMoveTg:[!0,'h','scroll']}); })(jQuery);