//棣栭〉婊氬睆 $(function () { if ($("#dowebok").length > 0) { $('#dowebok').fullpage({ // 鑳屾櫙 // sectionscolor: ['#004e94', '#fff','#00396c', '#00396c', '#fff','#00396c'], // 姣忎竴椤电殑鍐呭鏄惁鍨傜洿灞呬腑锛岄粯璁や负true銆備竴鑸垜浠繚鎸侀粯璁ゅ€? verticalcentered: true, // 瀛椾綋鏄惁闅忕潃绐楀彛缂╂斁鑰岀缉鏀撅紝榛樿涓篺alse resize: false, // 婊氬姩閫熷害锛屽崟浣嶄负姣锛岄粯璁や负700 scrollingspeed: 700, // 婊氬姩鍒版渶椤堕儴鍚庢槸鍚﹁繛缁粴鍔ㄥ埌搴曢儴锛岄粯璁や负false銆? looptop: false, // 婊氬姩鍒版渶搴曢儴鍚庢槸鍚﹁繛缁粴鍔ㄥ洖椤堕儴锛岄粯璁や负false銆? loopbottom: false, // 妯悜slider骞荤伅鐗囨槸鍚﹀惊鐜粴鍔紝榛樿涓簍rue銆傝缃负false鏃讹紝鍦ㄧ涓€涓猻lider鏃讹紝娌℃湁鍚戝乏婊氬姩鐨勭澶达紝涓嶈兘鍚戝乏婊氬姩銆傚悓鐞嗭紝鏈€鍚庝竴涓猻lider鏃讹紝娌℃湁鍚戝彸婊氬姩鐨勭澶达紝涓嶈兘鍚戝彸婊氬姩銆? loophorizontal: true, // 璁剧疆姣忎竴涓猻ection椤堕儴鍜屽簳閮ㄧ殑padding锛岄粯璁ら兘涓?.涓€鑸鏋滄垜浠渶瑕佽缃竴涓浐瀹氬湪椤堕儴鎴栬€呭簳閮ㄧ殑鑿滃崟銆佸鑸€佸厓绱犵瓑锛屽彲浠ヤ娇鐢ㄨ繖涓や釜閰嶇疆椤广€? paddingtop: 0, paddingbottom: 0, // 鍥哄畾鐨勫厓绱狅紝榛樿涓簄ull锛岄渶瑕侀厤缃竴涓猨query閫夋嫨鍣ㄣ€傚湪椤甸潰婊氬姩鐨勬椂鍊欙紝fixedelements璁剧疆鐨勫厓绱犲浐瀹氫笉鍔ㄣ€? fixedelements: null, // 鏄惁鏄剧ず妯悜骞荤伅鐗囩殑瀵艰埅锛岄粯璁alse銆? slidesnavigation: true, // 妯悜骞荤伅鐗囧鑸殑浣嶇疆锛岄粯璁や负bottom锛屽彲浠ヨ缃负top鎴朾ottom slidesnavposition: "bottom", //鏄惁鍙互浣跨敤閿洏鏂瑰悜閿鑸? keyboardscrolling: true, //鏄惁閫氳繃绠ご鏉ユ帶鍒秙lide骞荤伅鐗? controlarrows: false, //鏄惁寰幆婊氬姩锛岄粯璁や负false銆傚鏋滆缃负true锛屽垯椤甸潰浼氬惊鐜粴鍔紝 continuousvertical: false, // 鏄惁鏄剧ず瀵艰埅鐐? navigation: true, //婊氬睆鍥炶皟鍑芥暟 afterload: function (anchorlink, index) { //杩涘叆灞忓箷 var index = index.index; index = index + 1; console.log(index); if ($(window).width() >= 1200) { if (index == 1) { $(".header").removeclass("min"); $("#fp-nav").removeclass('dark'); } if (index == 2) { $("#fp-nav").addclass('dark'); donghua($('.section2 .columntitle'), 800, 0, 0); donghua($('.section2 .slogan'), 800, 0, 0); zgzxdh($(".section2 .solutionlist li"), 800, 250, 0); $(".header").addclass("min"); } if (index == 3) { $("#fp-nav").removeclass('dark'); donghua($('.section3 .columntitle'), 800, 0, 0); donghua($('.section3 .productlist'), 800, 0, 0); $(".header").addclass("min"); } if (index == 4) { $("#fp-nav").removeclass('dark'); donghua($('.section4 .columntitle'), 800, 0, 0); donghua($('.section4 .contont .more'), 800, 0, 0); donghua($('.section4 .contont .list'), 800, 0, 0); donghua($('.section4 .contont .text'), 800, 0, 0); donghua($('.section4 .services'), 800, 0, 0); //涓€绔欏紡绉戞妧鏈嶅姟杩愯惀銆佹棆杞? var list = $(".section4 .services li"); for (var i = 0; i < list.length; i++) { // console.log(list.eq(i)) xuanzuan(list.eq(i), i * 240); } function xuanzuan(obj, time) { settimeout(function () { obj.css({ "transform": "rotatey(360deg)", "-webkit-transform": "rotatey(360deg)", "-ms-transform": "rotatey(360deg)", "-o-transform": "rotatey(360deg)", "-moz-transform": "rotatey(360deg)" }) }, time); } } if (index == 5) { $("#fp-nav").addclass('dark'); donghua($('.section5 .columntitle'), 800, 0, 0); donghua($('.section5 .contont .text'), 800, 0, 0); donghua($('.section5 .contont .list'), 800, 0, 0); donghua($('.section5 .contont .more'), 800, 0, 0); $('.section5 .hand').css({ "bottom": "107px", "left": "0px", "opacity": "1" }); //鏁板瓧澧為暱 var num = $(".section5 .list .num"); for (var i = 0; i < num.length; i++) { num.eq(i).numberrock({ speed: 20 }); } $('.section6 .columntitle').css({ "top": "-150px", "opacity": "0" }); $('.section6 .clientslist').css({ "top": "150px", "opacity": "0" }); } if (index == 6) { $("#fp-nav").removeclass('dark'); donghua($('.section6 .columntitle'), 800, 0, 0); donghua($('.section6 .clientslist'), 800, 0, 0); $(".header").addclass("min"); } if (index == 7) { $("#fp-nav").removeclass('dark'); } } }, onleave: function (index, direction) { //绂诲紑灞忓箷 if ($(window).width() >= 1200) { var index = index.index; index = index + 1; if (index == 2) { $('.section2 .columntitle').css({ "top": "-150px", "opacity": "0" }); $('.section2 .slogan').css({ "top": "150px", "opacity": "0" }); $('.section2 .solutionlist li').css({ "top": "150px", "opacity": "0" }); console.log("likai2"); } if (index == 3) { $('.section3 .columntitle').css({ "top": "-150px", "opacity": "0" }); $('.section3 .productlist').css({ "top": "150px", "opacity": "0" }); } if (index == 4) { $('.section4 .columntitle').css({ "top": "-150px", "opacity": "0" }); $('.section4 .contont .more').css({ "top": "150px", "opacity": "0" }); $('.section4 .contont .list').css({ "top": "150px", "opacity": "0" }); $('.section4 .contont .text').css({ "top": "150px", "opacity": "0" }); $('.section4 .services').css({ "top": "150px", "opacity": "0" }); $(".section4 .services li").css({ "transform": "rotatey(90deg)", "-webkit-transform": "rotatey(90deg)", "-ms-transform": "rotatey(90deg)", "-o-transform": "rotatey(90deg)", "-moz-transform": "rotatey(90deg)" }); } if (index == 5) { $('.section5 .columntitle').css({ "top": "-150px", "opacity": "0" }); $('.section5 .contont .text').css({ "top": "150px", "opacity": "0" }); $('.section5 .contont .list').css({ "top": "150px", "opacity": "0" }); $('.section5 .contont .more').css({ "top": "150px", "opacity": "0" }); $('.section5 .hand').css({ "bottom": "-300px", "left": "-400px", "opacity": "0" }); } // if(index == 6){ // $('.section6 .columntitle').css({"top":"-150px","opacity":"0"}); // $('.section6 .clientslist').css({"top":"150px","opacity":"0"}); // } } } }); //绗竴灞忓乏鍙虫粴鍔? setinterval(function () { $.fn.fullpage.moveslideright(); }, 3000); //鎵嬫満涓嶆粴灞? $(window).resize(function () { autoscrolling(); }); function autoscrolling() { var $ww = $(window).width(); if ($ww <= 1200) { $.fn.fullpage.setautoscrolling(false); } else { $.fn.fullpage.setautoscrolling(true); } } autoscrolling(); //淇濇寔棣栭〉鑳屾櫙濉弧绐楀彛 function proportion() { var portion = ($(document).width()) / ($(document).height()); // $('title').text(portion); if (portion > 0.39) { //鑳屾櫙鍥剧墖楂樺姣? $(".section1 .slide").css({ "background-size": "100% auto" }); } else { $(".section1 .slide").css({ "background-size": "auto 100%" }); } } proportion(); $(window).resize(function () { proportion(); }); $(".return-top").click(function () { fullpage_api.moveto(1); }); } //鍒ゆ柇鏈夋棤div锛岄伩鍏嶅叾浠栭〉闈㈡姤閿檈nd }); //棣栭〉婊氬睆end //瀵艰埅涓嬫媺 $(function () { if ($(window).width() >= 1200) { $(".header .nav li").hover( function () { $(this).find(".sub").stop().slidedown(150); }, function () { $(this).find(".sub").stop().slideup(150); } ); } if ($(window).width() < 1200) { $(".header .nav>ul>li>a").click(function () { var li = $(this).parent('li'); li.find('.sub').parent('li').children('a').attr("href", "javascript:void(0);"); if (li.find(".sub").is(':hidden')) { li.find(".sub").stop().slidedown(150); li.siblings('li').find('.sub').stop().slideup(150); li.addclass('now').siblings('li').removeclass('now'); } else { li.find(".sub").stop().slideup(150); li.removeclass('now'); } }); } }); //鎵嬫満寮瑰嚭瀵艰埅鑿滃崟 $(function () { if ($(window).width() < 1200) { $(".header .menubtn").click(function () { $(".header").toggleclass("shiftleft"); $(".mainfilter").fadetoggle(); }); $(".mainfilter").click(function () { $(".header").removeclass("shiftleft"); $(".mainfilter").fadetoggle(); $(".header .nav>ul>li").removeclass('now'); $(".header .nav>ul>li .sub").stop().slideup(150); }); } }); //瀵艰埅鎼滅储 $(function () { var searchbox = $(".header .searchbox .searchbox"); var searchbar = $(".header .searchbox .searchbar"); var searchbtn = $(".header .searchbox .searchbtn"); if ($(window).width() >= 1200) { searchbtn.click(function () { if (searchbar.is(":hidden")) { searchbar.fadein(200); searchbar.find(".inpu input").focus(); } else { searchbar.fadeout(200); } }); $(window).scroll(function () { if ($(window).scrolltop() > 100) { searchbar.fadeout(200); } }); } if ($(window).width() < 1200) { searchbtn.click(function () { if (searchbar.is(":hidden")) { searchbar.fadein(200); searchbar.find(".inpu input").focus(); $(".header").addclass('on'); $(".mainfilter").fadein(200); } else { searchbar.fadeout(200); $(".header").removeclass('on'); } }); $(".mainfilter").click(function () { $(this).fadeout(200); searchbar.fadeout(200); $(".header").removeclass('on'); }); } }); // 鎵嬫満鏁板瓧澧為暱 if ($(".section5").length > 0) { if ($(window).width() < 1200) { var sw = true; $(window).scroll(function () { var section5 = $('.section5'); var wst = $(window).scrolltop() + 50; var num = $(".section5 .list .num"); if (sw == true) { if (section5.offset().top < wst) { for (var i = 0; i < num.length; i++) { num.eq(i).numberrock({ speed: 20 }); } sw = false; } } }); } } // 鏁板瓧澧為暱 (function ($) { $.fn.numberrock = function (options) { // console.log(this.text()); var defaults = { speed: 24, count: this.attr('date') }; var opts = $.extend({}, defaults, options); var div_by = 100, count = opts["count"], speed = math.floor(count / div_by), sum = 0, $display = this, run_count = 1, int_speed = opts["speed"]; var int = setinterval(function () { if (run_count <= div_by && speed != 0) { $display.text(sum = speed * run_count); run_count++; } else if (sum < count) { $display.text(++sum); } else { clearinterval(int); } }, int_speed); } })(jquery); // 棣栭〉end============================ $(function () { // alert( (270*2)+20 ); // alert(27.4/2) }); $(function () { //瑙嗛鍒楄〃 for (var i = 0; i < $(".container .videolist li").length; i++) { clickpicvideo($(".container .videolist li").eq(i)); } //瑙e喅鏂规銆佹櫤鎱у洯鍖哄満鏅痩ist楂樺害 listheight($(".solutionpage .scene li .txt"), 4); if ($(window).width() < 1200) { listheight($(".solutionpage .scene li .txt"), 2); } //鍏充簬鎴戜滑銆佷笁澶у钩鍙發ist楂樺害 listheight($(".aboutpage .platform li .text"), 3); //璧勮川鑽h獕銆佸垪琛ㄩ珮搴? listheight($(".honorpage .honorlist li .text"), 4); if ($(window).width() < 1200) { listheight($(".honorpage .honorlist li .text"), 3); } if ($(window).width() < 850) { listheight($(".honorpage .honorlist li .text"), 2); listheight($(".honorpage .honorlist li .pic"), 2); } //浜烘墠鎷涜仒锛屽睍寮€鏀惰捣 $('.talentpage .recruitment li .top').click(function () { var li = $(this).parents('li'); var text = li.find('.text'); if (text.is(':hidden')) { li.addclass('on'); text.slidedown(200); li.siblings('li').removeclass('on'); li.siblings('li').find('.text').slideup(200); } else { li.removeclass('on'); text.slideup(200); } }); }); $(window).scroll(function () { //瑙e喅鏂规銆佹櫤鎱у洯鍖哄満鏅痩ist楂樺害 listheight($(".solutionpage .scene li .txt"), 4); if ($(window).width() < 1200) { listheight($(".solutionpage .scene li .txt"), 2); } //鍏充簬鎴戜滑銆佷笁澶у钩鍙發ist楂樺害 listheight($(".aboutpage .platform li .text"), 3); //璧勮川鑽h獕銆佸垪琛ㄩ珮搴? listheight($(".honorpage .honorlist li .text"), 4); if ($(window).width() < 1200) { listheight($(".honorpage .honorlist li .text"), 3); } if ($(window).width() < 850) { listheight($(".honorpage .honorlist li .text"), 2); listheight($(".honorpage .honorlist li .pic"), 2); } }); //楂樺害鐩哥瓑 function listheight(list, row) { for (var i = 0; i < list.length; i++) { if (i % row == 0) { var maxheight = 0; for (var k = 0; k < row; k++) { if (maxheight < list.eq(i + k).height()) { maxheight = list.eq(i + k).height(); } } for (var k = 0; k < row; k++) { list.eq(i + k).css("min-height", maxheight); } } } } // 婊氬姩鍔犺浇鍔ㄧ敾 // $(function(){ // if( $(window).width()>1200 ){ // donghua($(".newspage .newslist li").eq(0),800,0,0 ); // zgzxdh( $(".newspage .newslist li"),800,100,1 ); // donghua($(".newspage .videolist li:first-child").eq(0),800,0,0 ); // zgzxdh( $(".newspage .videolist li"),800,100,1 ); // zgzxdh( $(".casepage .caselist li"),800,100,0 ); // donghua($(".solutionpage .concept .wrap"),800,0,0 ); // donghua($(".solutionpage .core .title"),800,0,1 ); // donghua($(".solutionpage .core .row").eq(0),800,0,1 ); // donghua($(".solutionpage .core .row").eq(1),800,0,1 ); // donghua($(".solutionpage .core .row").eq(2),800,0,1 ); // donghua($(".solutionpage .scene .title"),800,0,1 ); // zgzxdh( $(".solutionpage .scene li"),800,150,1 ); // donghua($(".solutionpage .worth .wrap"),800,0,1 ); // donghua($(".servicepage .operator .title"),800,0,0 ); // donghua($(".servicepage .operator .text"),800,0,0 ); // zgzxdh( $(".servicepage .operator .list li"),800,150,1 ); // donghua($(".servicepage .worth .wrap"),800,0,1 ); // donghua($(".servicepage .service .wrap"),800,0,1 ); // donghua($(".servicepage .system .wrap"),800,0,1 ); // donghua($(".servicepage .customer .publictitle"),800,0,1 ); // zgzxdh( $(".servicepage .customer li"),800,150,1 ); // donghua($(".aboutpage .introduce .wrap"),800,0,0 ); // donghua($(".aboutpage .platform .title"),800,0,1 ); // zgzxdh( $(".aboutpage .platform .list li"),800,150,1 ); // donghua($(".aboutpage .centerbox .wrap"),800,0,1 ); // donghua($(".aboutpage .culture .wrap"),800,0,1 ); // zgzxdh( $(".aboutpage .culture .content li"),800,150,1 ); // zgzxdh( $(".honorpage .honorlist li"),800,150,0 ); // donghua($(".talentpage .recruiting .wrap"),800,0,0 ); // donghua($(".talentpage .recruitment .wrap"),800,0,1 ); // donghua($(".talentpage .development .wrap"),800,0,1 ); // donghua($(".talentpage .activity"),800,0,1 ); // donghua($(".contactpage .addressbox"),800,0,0 ); // donghua($(".contactpage .mapbox"),800,0,1 ); // } // }); // 鍒楄〃閫愪釜鎵ц鍔ㄧ敾|瀵硅薄锛岄珮搴︼紝闂撮殧鏃堕棿锛屾槸鍚﹂渶瑕佹粴鍔? function zgzxdh(obj, top, time, first) { for (var i = 0; i < obj.length; i++) { donghua(obj.eq(i), top, i * time, first); } } //婊氬姩鍒版寚瀹氫綅缃紝鎵ц function donghua(obj, top, time, first) { if (obj.length > 0) { if (first == 0) { settimeout(function () { obj.css({ "top": "0", "opacity": "1" }); }, time); } else { $(window).scroll(function () { var wst = $(window).scrolltop() + top; if (obj.offset().top < wst) { settimeout(function () { obj.css({ "top": "0", "opacity": "1" }); }, time); } }); } } } //鐐瑰嚮鍥剧墖寮瑰嚭瑙嗛 function clickpicvideo(obj) { var box = obj.find('.video'); var video = obj.find('video'); var pic = obj.find('.pic'); if ($(window).width() >= 1200) { //鐐瑰嚮寮瑰嚭鎾斁 pic.click(function () { box.fadein(400); video.trigger('play');//鎾斁 $(".mainfilter").fadein(400); }); //鐐瑰嚮鑳屾櫙鏀惰捣鏆傚仠 $(".mainfilter").click(function () { box.fadeout(400); video.trigger('pause');//鏆傚仠 $(".mainfilter").fadeout(400); }); //鐐瑰嚮鍏抽棴鎸夐挳 obj.find('.close').click(function () { box.fadeout(400); video.trigger('pause');//鏆傚仠 $(".mainfilter").fadeout(400); }); } if ($(window).width() < 1200) { pic.click(function () { video.trigger('play');//鎾斁 }); } } //鐐瑰嚮瑙嗛绐楀彛锛屾挱鏀炬殏鍋? $(function () { if ($(window).width() >= 1200) { $('video').click(function () { if ($(this).hasclass('pause')) { $(this).trigger("play"); $(this).removeclass('pause'); $(this).addclass('play'); } else { $(this).trigger("pause"); $(this).removeclass('play'); $(this).addclass('pause'); } }); } }); // 娴姩渚ф爮 $(function () { if ($(window).width() >= 1200) { $(".fixed-sidebar li").hover( function () { $(this).find(".hide").stop().animate({ width: 'toggle' }, 150); } ); } if ($(window).width() < 1200) { $(".fixed-sidebar li a").click(function (event) { event.stoppropagation(); var qr = $(this).siblings('.qrcode'); if (qr.is(':hidden')) { qr.slidedown(150); } else { qr.slideup(150); } }); $(".fixed-sidebar .qrcode").click(function (event) { event.stoppropagation(); }); $(".wrapper").click(function () { $(".fixed-sidebar .qrcode").slideup(150); }); } $(".return-top").click(function () { $('body,html').animate({ scrolltop: 0 }, 200); return false; }); }); //搴曢儴鏀剁缉 $(function () { if ($(window).width() < 1200) { var tit = $('.footer .link-list .list .tit'); tit.click(function (event) { event.stoppropagation(); var a = $(this).siblings('ul').find('li').parents('ul').siblings('.tit'); a.attr("href", "javascript:void(0);"); var ul = $(this).siblings('ul'); if (ul.is(':hidden')) { ul.slidedown(150); $(this).parents('.list').siblings('.list').find('ul').slideup(150); } else { ul.slideup(150); } }); $('.wrapper').click(function () { $('.footer .link-list .list ul').slideup(150); }); } }); //棣栭〉浜у搧涓績 //$(function(){ // $(".productlist li").hover( // function(){ // $(".productlist li").removeclass("on"); // $(this).addclass("on"); // $(".section3").attr("style","background-image: url('"+$(this).attr("lang")+"')"); // } // ); //});