1$(function () { 2 Init(); 3}); 4/** 5 * åå§å 6 */ 7Init = function () { 8 Nav(); 9 mNav(); 10 Lang(); 11 BackTop(); 12 CrumbsNav(); 13 indexBanner(); 14 indexNew(); 15 CountryMap(); 16 TeamMemeber(); 17 TeamManagement(); 18 honorSwiper(); 19 Honor(); 20 MapArea(); 21 Brand(); 22 SerialNum(); 23 RelatedVideos(); 24 Promotion(); 25 promotionSwiper(); 26 PopupVideo(); 27 WaterfallInit(); 28 NewsWaterfallTab(); 29 AllAni(); 30 31}; 32$(window).resize(function() { 33 honorSwiper(); 34 promotionSwiper(); 35}); 36/** 37 * PCå¯¼èª 38 */ 39ScrollAni=function () { 40 var scTop = $(document).scrollTop(); 41 var deviceHeight = $(window).height()*4/5; 42 43 var dd = $(".company-data").offset().top; 44 if(scTop+deviceHeight>=dd){ 45 NumAnimate(); 46 } 47}; 48/** 49 * PCå¯¼èª 50 */ 51Nav = function () { 52 var navli = $(".nav li"); 53 navli.mouseenter(function () { 54 $(this).find(".nav-list").stop(true,true).slideDown(); 55 }); 56 navli.mouseleave(function () { 57 $(this).find(".nav-list").stop().slideUp(); 58 }); 59}; 60/** 61 * ç§»å¨ç«¯å¯¼èª 62 */ 63mNav = function () { 64 var menu = $(".m-header .btn-menu"); 65 var nav = $(".m-nav"); 66 var mNavList = $(".m-nav-list"); 67 menu.click(function () { 68 menu.toggleClass('on'); 69 nav.toggleClass('on'); 70 }); 71 72 mNavList.find("li").click(function () { 73 $(this).find(".nav-list").stop().slideToggle(); 74 75 }); 76 77}; 78/** 79 * è¯è¨çæ¬åæ¢ 80 */ 81Lang = function () { 82 var box = $(".lang-box"); 83 var list = box.find(".lang-list"); 84 box.click(function () { 85 list.stop().slideToggle(); 86 }); 87}; 88/** 89 * è¿åé¡¶é¨ 90 */ 91BackTop =function () { 92 var btnTop = $(".footer .backtop"); 93 btnTop.click(function () { 94 $("html,body").stop().animate({"scrollTop":0},800); 95 }); 96}; 97 98/** 99 * é¢å å±å¯¼èªèå 100 */ 101CrumbsNav=function () { 102 if($(".crumbs-nav").length<1) return false; 103 var index = $(".crumbs-nav .swiper-slide.on").index(); 104 var crumbsNavSlide = new Swiper('.crumbs-nav .swiper-container',{ 105 calculateHeight:true, 106 roundLengths:true, 107 slidesPerView:"auto", 108 initialSlide:index 109 }); 110 $('.crumbs-nav .swiper-prev').click(function () { 111 crumbsNavSlide.swipePrev(); 112 }); 113 $('.crumbs-nav .swiper-next').click(function () { 114 crumbsNavSlide.swipeNext(); 115 }); 116}; 117 118/** 119 * é¦é¡µé¦å±è½®æå¾ 120 */ 121indexBanner = function () { 122 if($(".index-banner").length<1) return false; 123 var indexBannerSlide = new Swiper('.index-banner .swiper-container',{ 124 calculateHeight:true, 125 roundLengths:true, 126 loop:true, 127 autoplay:6000, 128 autoplayDisableOnInteraction:false, 129 pagination:'.index-banner .pagination' 130 }); 131 $('.index-banner .swiper-prev').click(function () { 132 indexBannerSlide.swipePrev(); 133 }); 134 $('.index-banner .swiper-next').click(function () { 135 indexBannerSlide.swipeNext(); 136 }); 137}; 138 139/** 140 * é¦é¡µæ°é»è½®æå¾ 141 */ 142indexNew = function () { 143 if($(".index-news").length<1) return false; 144 var indexNewSlide = new Swiper('.index-news .swiper-container',{ 145 calculateHeight:true, 146 roundLengths:true, 147 slidesPerView:'auto' 148 }) 149 $('.index-news .swiper-prev').click(function () { 150 indexNewSlide.swipePrev(); 151 }); 152 $('.index-news .swiper-next').click(function () { 153 indexNewSlide.swipeNext(); 154 }); 155}; 156 157/** 158 * å ¬å¸åå¸ 159 */ 160CountryMap=function () { 161 var country = $(".group-country"); 162 country.mouseenter(function () { 163 $(this).addClass("cur").find(".group-country-info").stop().fadeIn(); 164 }).mouseleave(function () { 165 $(this).removeClass("cur").find(".group-country-info").hide(); 166 }); 167 country.each(function () { 168 var posi = $(this).attr("data-pos").split(","); 169 $(this).css({'left':posi[0]+'%','top':posi[1]+'%'}); 170 }) 171 172}; 173 174/** 175 * è£äºä¼æå 176 */ 177TeamMemeber= function () { 178 if($(".team-member").length<1) return false; 179 var TeamMemberSlide = new Swiper('.team-member .swiper-container',{ 180 calculateHeight:true, 181 roundLengths:true, 182 slidesPerView:'auto' 183 }) 184 $('.team-member .swiper-prev').click(function () { 185 TeamMemberSlide.swipePrev(); 186 }); 187 $('.team-member .swiper-next').click(function () { 188 TeamMemberSlide.swipeNext(); 189 }); 190} 191/** 192 * 管çå¢é 193 */ 194TeamManagement= function () { 195 var deviceWidth = $(window).width(); 196 if($(".team-management").length<1 || deviceWidth>1024) return false;
197 var TeamManagementSlide = new Swiper('.team-management .swiper-container',{ 198 calculateHeight:true, 199 roundLengths:true, 200 slidesPerView:'auto' 201 }) 202 $('.team-management .swiper-prev').click(function () { 203 TeamManagementSlide.swipePrev(); 204 }); 205 $('.team-management .swiper-next').click(function () { 206 TeamManagementSlide.swipeNext(); 207 }); 208} 209 210/** 211 * éå¢è£èª 212 */ 213Honor=function (){ 214 if($(".box-honor").length<1) return false; 215 $(".honor-list .hr-year").click(function(){ 216 $(this).addClass("active").siblings().removeClass("active"); 217 var textli = $(this).text(); 218 $(".current-year p").text(textli); 219 var sxli = $(".honor-list ul li.active a strong").text(); 220 tabhonor(sxli); 221 }); 222 $('.current-year .btn-prev').click(function(e){ 223 e.preventDefault(); 224 var _num=$('.hr-year').filter('.active').index(); 225 if(--_num<0) return; 226 var i =_num; 227 var _w = $('.hr-year').eq(i).outerWidth(true); 228 var _oleft; 229 if(i<=5){ 230 _oleft=0; 231 }else if(i>=$('.hr-year').length-1){ 232 _oleft=-_w*($('.hr-year').length-7) 233 }else{ 234 _oleft=-_w*(i-6) 235 } 236 $('.hr-year').parent().stop().animate({"left":_oleft},300) 237 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 238 var sxli = $(".honor-list ul li.active a strong").text(); 239 $(".current-year p").text(sxli); 240 tabhonor(sxli); 241 }); 242 $('.current-year .btn-next').click(function(e){ 243 e.preventDefault(); 244 var _num=$('.hr-year').filter('.active').index(); 245 if(++_num==$('.hr-year').length) return;//_num=0; 246 var i =_num; 247 var _w = $('.hr-year').eq(i).outerWidth(true); 248 var _oleft; 249 if(i<=6){ 250 _oleft=0; 251 }else if(i>=$('.hr-year').length-1){ 252 _oleft=-_w*($('.hr-year').length-7); 253 }else{ 254 _oleft=-_w*(i-6); 255 } 256 $('.hr-year').parent().stop().animate({"left":_oleft},300); 257 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 258 var sxli = $(".honor-list ul li.active a strong").text(); 259 $(".current-year p").text(sxli); 260 tabhonor(sxli); 261 }); 262 function tabhonor(id){ 263 var url = tabYearAjaxUrl; 264 $.ajax({ 265 type:"post", 266 url:url, 267 data:{'year':id}, 268 datatype:"html", 269 success:function(data){ 270 271 $(".group-honor-swiper .swiper-container").html(""); 272 $(".group-honor-swiper .swiper-container").html('<div class="swiper-wrapper"></div>') 273 $(".group-honor-swiper .swiper-wrapper").html(data); 274 honorSwiper(); 275 }, 276 error:function(){ 277 return; 278 } 279 }) 280 } 281} 282/** 283 * éå¢è£èªè½®ææ¨¡å 284 */ 285honorSwiper = function(){ 286 if($(".box-honor").length<1) return false; 287 var num; 288 if($(window).width()>1024){ 289 num = 4; 290 }else if ($(window).width()>768 && $(window).width()<1025){ 291 num = 2; 292 }else if ($(window).width()<769){ 293 num = 1; 294 } 295 honorslide = new Swiper('.group-honor-swiper .swiper-container',{ 296 slidesPerView : num, 297 slidesPerGroup : 1, 298 calculateHeight : true, 299 // loop:true, 300 // autoplay:6000, 301 // autoplayDisableOnInteraction : false, 302 roundLengths : true 303 }); 304 $('.gh-lf').click(function(){ 305 honorslide.swipePrev(); 306 }); 307 $('.gh-rt').click(function(){ 308 honorslide.swipeNext(); 309 }); 310} 311 312/** 313 * èç³»æä»¬å°å¾æ¨¡å 314 */ 315MapArea = function(){ 316 if($(".map-area").length<1) return false; 317 var mapList = ""; 318 var curCountry = $(".map-area-name strong").text(); 319 var curCity; 320 tabCity(curCountry); 321 function tabCity(name){ 322 for (var i = 0; i < geoCoordMap.length; i++) { 323 if(geoCoordMap[i].country == name){ 324 curCity = geoCoordMap[i].city; 325 for(var j = 0; j<curCity.length; j++){ 326 mapList +="<dl class='item-branch'>"; 327 mapList +="<dt>"+curCity[j].name+"</dt>"; 328 if(curCity[j].addr!='')
329 mapList +="<dd>"+curCity[j].addr+"</dd>"; 330 if(curCity[j].tel!='') 331 mapList +="<dd>çµè¯ï¼"+curCity[j].tel+"</dd>"; 332 if(curCity[j].fax!='') 333 mapList +="<dd>ä¼ çï¼"+curCity[j].fax+"</dd>"; 334 if(curCity[j].email!='') 335 mapList +="<dd>é®ç®±ï¼"+curCity[j].email+"</dd>"; 336 mapList +="</dl>"; 337 } 338 } 339 } 340 $(".branch-posi .container").html(mapList); 341 mapList=""; 342 AniCreat(".item-branch","90%"); 343 } 344 345 346 var myChart = echarts.init(document.getElementById('map-area-box')); 347 var convertData = function (data) { 348 var res = []; 349 for (var i = 0; i < data.length; i++) { 350 var citylist = data[i].city; 351 for (var j = 0; j < citylist.length; j++) { 352 var geoCoord = citylist[j].name; 353 var geoPosi = citylist[j].posi; 354 res.push({ 355 name: geoCoord, 356 value:geoPosi 357 }); 358 } 359 } 360 return res; 361 }; 362 CountyRegions = function(data){ 363 var res = []; 364 for (var i = 0; i < data.length; i++) { 365 var geoCoord = data[i].country; 366 var seleFlag = i==0? 1:0; 367 if (geoCoord) { 368 res.push({ 369 name: geoCoord, 370 selected:seleFlag, 371 itemStyle:{ 372 normal:{ 373 areaColor:'#c7c7c9' 374 } 375 376 } 377 }); 378 } 379 } 380 return res; 381 } 382 383 // getTipInfo=function(data){ 384 // console.log(data) 385 // var res = []; 386 // for (var i = 0; i < geoCoordMap.length; i++) { 387 // if(data==geoCoordMap[i].name){ 388 // res.push({ 389 // name: geoCoordMap[i].name, 390 // addr:geoCoordMap[i].addr, 391 // tel:geoCoordMap[i].tel, 392 // fax:geoCoordMap[i].fax, 393 // email:geoCoordMap[i].email 394 // }); 395 // } 396 // } 397 // setTipInfo(res); 398 // } 399 // setTipInfo=function (data){ 400 // var tempStr = '<div class="map-tip">'; 401 // tempStr+= '<div class="map-name">'+data.name+'</div>'; 402 // tempStr+= '<div class="map-info"><ul>'; 403 // if(data.addr!='') 404 // tempStr+= '<li class="map-addr">'+data.addr+'</li>'; 405 // if(data.addr!='') 406 // tempStr+= '<li class="map-tel">'+data.tel+'</li>'; 407 // if(data.addr!='') 408 // tempStr+= '<li class="map-fax">'+data.fax+'</li>'; 409 // if(data.addr!='') 410 // tempStr+= '<li class="map-email">'+data.email+'</li>'; 411 // tempStr+= '</ul></div></div>'; 412 // return tempStr; 413 // } 414 option = { 415 backgroundColor:'#f9f9fb', 416 tooltip: { 417 borderWidth:0, 418 backgroundColor:'#fff', 419 textStyle:{ 420 color:"#4c4c4c" 421 }, 422 extraCssText:'box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.21);', 423 trigger: 'item', 424 formatter: function (params, ticket, callback) { 425 var res = []; 426 // console.log(params) 427 for (var i = 0; i < geoCoordMap.length; i++) { 428 var citylist = geoCoordMap[i].city; 429 for (var j = 0; j < citylist.length; j++) { 430 if(params.name==citylist[j].name){ 431 res.push({ 432 name: citylist[j].name, 433 addr:citylist[j].addr, 434 tel:citylist[j].tel, 435 fax:citylist[j].fax, 436 email:citylist[j].email 437 }); 438 } 439 } 440 } 441 var tempStr = '<div class="map-tip">'; 442 tempStr+= '<div class="map-name">'+res[0].name+'</div>'; 443 tempStr+= '<div class="map-info"><ul>'; 444 if(res[0].addr!='') 445 tempStr+= '<li class="map-addr" style="background-image: url(./static/images/icon-posi.png);">'+res[0].addr+'</li>'; 446 if(res[0].tel!='') 447 tempStr+= '<li class="map-tel" style="background-image: url(./static/images/icon-tel.png);">'+res[0].tel+'</li>'; 448 if(res[0].fax!='') 449 tempStr+= '<li class="map-fax" style="background-image: url(./static/images/icon-fax.png);">'+res[0].fax+'</li>'; 450 if(res[0].email!='') 451 tempStr+= '<li class="map-email" style="background-image: url(./static/images/icon-email.png);">'+res[0].email+'</li>'; 452 tempStr+= '</ul></div></div>'; 453 return tempStr; 454 } 455 456 }, 457 visualMap: { 458 show:false, 459 min: 0, 460 max: 1, 461 inRange: { 462 color: ['#e84416'] 463 } 464 }, 465 geo:{ 466 type:'map', 467 name:'asia', 468 map:'world', 469 roam: false, 470 center:[109.4,24.33], 471 zoom:2.5, 472 selectedMode : 'single', 473 label:{ 474 show:false 475 }, 476 itemStyle:{ 477 normal:{ 478 areaColor:'#f9f9fb', 479 borderColor:'#464647' 480 }, 481 emphasis:{ 482 areaColor:'#7c92aa' 483 } 484 485 }, 486 regions:CountyRegions(geoCoordMap) 487 488 }, 489 series: [ 490 { 491 type:'scatter', 492 coordinateSystem:'geo', 493 symbolSize: 12, 494 data:convertData(geoCoordMap), 495 itemStyle:{ 496 normal:{ 497 color:'#e84416' 498 } 499 } 500 501 } 502 ] 503 }; 504 if (option && typeof option === "object") { 505 myChart.setOption(option, true); 506 } 507 508 myChart.on('click', function (params) { 509 if(typeof params.region != "undefined") 510 if(typeof params.region.selected != "undefined" && params.region.selected){ 511 $(".map-area-name strong").text(params.name); 512 tabCity(params.name); 513 } 514 515 516 517 518 }); 519}; 520/** 521 * åä½åç 522 */ 523Brand = function () { 524 var brandPic = $(".cooperation-list li a");
525 brandPic.mouseenter(function () { 526 $(this).parents("li").addClass("hover"); 527 }).mouseleave(function () { 528 $(this).parents("li").removeClass("hover"); 529 }); 530}; 531 532/** 533 * æ£ååºåå·æ¥è¯¢ 534 */ 535SerialNum = function () { 536 if($(".serial-number").length<1) return false; 537 var serialForm = $(".serial-form"); 538 var serialFormInp = serialForm.find('.serial-i'); 539 var serialFormBtn = serialForm.find('.btn-serial-search'); 540 serialFormBtn.click(function () { 541 var getNum = serialFormInp.val(); 542 $.get("number.php?no=" + getNum, function(data) { 543 if (data.length > 20) { 544 var str = $(data).filter("table").html(); 545 str = $(str).filter("tbody").html(); 546 str = $(str).filter("tr").html(); 547 str = $(str).filter("td").html(); 548 //str=$(str).filter("table").html(); 549 str = $(str).filter("table").eq(1).html(); 550 str = $(str).filter("tbody").html(); 551 var aa = str; 552 aa = $(str).filter("tr").eq(5).text() 553 str = $(str).filter("tr").eq(6).text(); 554 str = aa + "\n" + str; 555 } else { 556 } 557 }) 558 }) 559}; 560/** 561 * ç¸å ³è§é¢ 562 */ 563RelatedVideos = function () { 564 if($('.related-videos').length<1) return false; 565 var videoSrc = $("#mediaVideo").attr("data-video"); 566 var videoPic = $("#mediaVideo").attr("data-pic"); 567 var videoPlayer = VideoPlay('mediaVideo',videoSrc,videoPic); 568} 569/** 570 * è§é¢ææ¾å¨åå§å 571 */ 572VideoPlay = function (idName, videoUrl,imgUrl) { 573 var player = jwplayer(idName).setup({ 574 // "flashplayer": "./statics/video/jwplayer.flash.swf", 575 "file": videoUrl, 576 "image": imgUrl, 577 "repeat":false, 578 // "controls":false, 579 // 'mute': true, 580 "stretching": "fill", 581 "width": "100%", 582 "height": "100%" 583 }); 584 return player; 585 //console.log(player); 586} 587 588 589/** 590 * ä¼ä¸å®£ä¼ ç 591 */ 592Promotion=function (){ 593 if($(".box-promotion").length<1) return false; 594 $(".honor-list .hr-year").click(function(){ 595 $(this).addClass("active").siblings().removeClass("active"); 596 var textli = $(this).text(); 597 $(".current-year p").text(textli); 598 var sxli = $(".honor-list ul li.active a strong").text(); 599 tabpromotion(sxli); 600 }); 601 $('.current-year .btn-prev').click(function(e){ 602 e.preventDefault(); 603 var _num=$('.hr-year').filter('.active').index(); 604 if(--_num<0) return; 605 var i =_num; 606 var _w = $('.hr-year').eq(i).outerWidth(true); 607 var _oleft; 608 if(i<=5){ 609 _oleft=0; 610 }else if(i>=$('.hr-year').length-1){ 611 _oleft=-_w*($('.hr-year').length-7) 612 }else{ 613 _oleft=-_w*(i-6) 614 } 615 $('.hr-year').parent().stop().animate({"left":_oleft},300) 616 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 617 var sxli = $(".honor-list ul li.active a strong").text(); 618 $(".current-year p").text(sxli); 619 tabpromotion(sxli); 620 }); 621 $('.current-year .btn-next').click(function(e){ 622 e.preventDefault(); 623 var _num=$('.hr-year').filter('.active').index(); 624 if(++_num==$('.hr-year').length) return;//_num=0; 625 var i =_num; 626 var _w = $('.hr-year').eq(i).outerWidth(true); 627 var _oleft; 628 if(i<=6){ 629 _oleft=0; 630 }else if(i>=$('.hr-year').length-1){ 631 _oleft=-_w*($('.hr-year').length-7); 632 }else{ 633 _oleft=-_w*(i-6); 634 } 635 $('.hr-year').parent().stop().animate({"left":_oleft},300); 636 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 637 var sxli = $(".honor-list ul li.active a strong").text(); 638 $(".current-year p").text(sxli); 639 tabpromotion(sxli); 640 }); 641 function tabpromotion(id){ 642 var url = tabYearAjaxUrl; 643 $.ajax({ 644 type:"post", 645 url:url, 646 data:{'year':id}, 647 datatype:"html", 648 success:function(data){ 649 650 $(".group-honor-swiper .swiper-container").html(""); 651 $(".group-honor-swiper .swiper-container").html('<div class="swiper-wrapper"></div>') 652 $(".group-honor-swiper .swiper-wrapper").html(data); 653 promotionSwiper(); 654 }, 655 error:function(){ 656 return; 657 } 658 }) 659 } 660}; 661/** 662 * ä¼ä¸å®£ä¼ çè½®ææ¨¡å 663 */ 664promotionSwiper = function(){ 665 if($(".box-promotion").length<1) return false;
666 var num; 667 if($(window).width()>1024){ 668 num = 3; 669 }else { 670 num = 1; 671 } 672 promotionslide = new Swiper('.group-honor-swiper .swiper-container',{ 673 slidesPerView : num, 674 slidesPerGroup : 1, 675 calculateHeight : true, 676 centeredSlides:true, 677 loop:true, 678 autoplay:6000, 679 autoplayDisableOnInteraction : false, 680 roundLengths : true, 681 onSlideClick:function (swiper) { 682 var cur = swiper.clickedSlide; 683 var videoSrc = $(cur).find('a').attr("data-video"); 684 var promotionvideo = VideoPlay('promotionvideo',videoSrc,''); 685 $(".popup-video").stop().fadeIn(); 686 promotionvideo.play(); 687 } 688 }); 689 $('.gh-lf').click(function(){ 690 promotionslide.swipePrev(); 691 }); 692 $('.gh-rt').click(function(){ 693 promotionslide.swipeNext(); 694 }); 695}; 696 697/** 698 * è§é¢ææ¾æµ®å± 699 */ 700PopupVideo = function () { 701 var popup = $(".popup-video"); 702 if(popup.length<1) return false; 703 popup.find(".btn-close").click(function () { 704 popup.hide(); 705 popup.find(".box-video>div").empty(); 706 }); 707 708}; 709 710 711 712WaterfallInit=function () { 713 if($("#waterfall").length<1) return false; 714 715 //window resize 716 var currentWidth = 1600; 717 var conWidth; 718 curSize(); 719 function curSize() { 720 var winWidth = $(window).width(); 721 if(winWidth < 370) { 722 conWidth = 300; 723 col = 1 724 } else if(winWidth < 540) { 725 conWidth = 360; 726 col = 1 727 } else if(winWidth < 800) { 728 conWidth = 540; 729 col = 2 730 } else if(winWidth < 1200) { 731 conWidth = 800; 732 col = 2; 733 } else if(winWidth < 1640) { 734 conWidth = 1200; 735 col = 3; 736 } else { 737 conWidth = 1640; 738 col = 3; 739 } 740 } 741 $("img.lazy").lazyload({ 742 load:function(){ 743 $('#waterfall').BlocksIt({ 744 numOfCol:col, 745 offsetX: 8, 746 offsetY: 8 747 }); 748 } 749 }); 750 $(window).resize(function() { 751 curSize(); 752 753 if(conWidth != currentWidth) { 754 currentWidth = conWidth; 755 $('#waterfall').width(conWidth); 756 $('#waterfall').BlocksIt({ 757 numOfCol: col, 758 offsetX: 8, 759 offsetY: 8 760 }); 761 } 762 }); 763}; 764 765/** 766 * ä¼ä¸å®£ä¼ ç 767 */ 768NewsWaterfallTab=function (){ 769 if($(".news-waterfall").length<1) return false; 770 $(".honor-list .hr-year").click(function(){ 771 $(this).addClass("active").siblings().removeClass("active"); 772 var textli = $(this).text(); 773 $(".current-year p").text(textli); 774 var sxli = $(".honor-list ul li.active a strong").text(); 775 tabWaterfall(sxli); 776 }); 777 $('.current-year .btn-prev').click(function(e){ 778 e.preventDefault(); 779 var _num=$('.hr-year').filter('.active').index(); 780 if(--_num<0) return; 781 var i =_num; 782 var _w = $('.hr-year').eq(i).outerWidth(true); 783 var _oleft; 784 if(i<=5){ 785 _oleft=0; 786 }else if(i>=$('.hr-year').length-1){ 787 _oleft=-_w*($('.hr-year').length-7) 788 }else{ 789 _oleft=-_w*(i-6) 790 } 791 $('.hr-year').parent().stop().animate({"left":_oleft},300) 792 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 793 var sxli = $(".honor-list ul li.active a strong").text(); 794 $(".current-year p").text(sxli); 795 tabWaterfall(sxli); 796 }); 797 $('.current-year .btn-next').click(function(e){ 798 e.preventDefault(); 799 var _num=$('.hr-year').filter('.active').index(); 800 if(++_num==$('.hr-year').length) return;//_num=0; 801 var i =_num; 802 var _w = $('.hr-year').eq(i).outerWidth(true); 803 var _oleft; 804 if(i<=6){ 805 _oleft=0; 806 }else if(i>=$('.hr-year').length-1){ 807 _oleft=-_w*($('.hr-year').length-7); 808 }else{ 809 _oleft=-_w*(i-6); 810 } 811 $('.hr-year').parent().stop().animate({"left":_oleft},300); 812 $('.hr-year').eq(i).addClass('active').siblings().removeClass('active'); 813 var sxli = $(".honor-list ul li.active a strong").text(); 814 $(".current-year p").text(sxli); 815 tabWaterfall(sxli); 816 }); 817 function tabWaterfall(id){ 818 var url = tabYearAjaxUrl; 819 $.ajax({ 820 type:"post", 821 url:url, 822 data:{'year':id}, 823 datatype:"html", 824 success:function(data){ 825 $("#waterfall").attr('style','').empty().append(data); 826 WaterfallInit(); 827 }, 828 error:function(){ 829 return; 830 } 831 }) 832 } 833}; 834AllAni = function () { 835 AniCreat(".index-layout-list","60%"); 836 AniCreat(".module-tit","70%"); 837 AniCreat(".banner",0); 838 839 NumAnimate=function () { 840 var NumBox = $(".counter"); 841 if(NumBox.length<1) return false;
842 NumBox.countUp(); 843 }; 844 NumAnimate(); 845 846 AniCreat(".box-txt","70%"); 847 AniCreat(".company-pic","70%"); 848 AniCreat(".company-map-list","70%"); 849 AniCreat(".team-leader-cont","70%"); 850 AniCreat(".team-management .swiper-container","70%"); 851 AniCreat(".years-swipers","70%"); 852 AniCreat(".map-area","70%"); 853 AniCreat(".item-branch","90%"); 854 AniCreat(".cooperation-txt","70%"); 855 AniCreat(".tab-list","70%"); 856 AniCreat(".news-detail","70%"); 857} 858 859AniCreat=function (className,offset) { 860 $(className).each(function (index,el) { 861 var that = el; 862 new Waypoint({ 863 element: el, 864 offset:offset, 865 handler: function(direction) { 866 $(that).addClass("ani"); 867 } 868 }) 869 }); 870} 871/** 872 * éå®äº§å 873 */ 874$('document').ready(function(){ 875 //å è½½é»è®¤æ°æ® 876 var data_key = $("#data_key").val(); 877 var data_page = $('#data_page').val(); 878 data_page = Number(data_page); 879 getProduct2(data_key,data_page,'prev'); 880 //æ´æ°æç´¢åæ° 881 $(".sales-products .tab-list").on('click','li',function(){ 882 $(this).addClass("on").siblings().removeClass("on"); 883 var text = $(this).text(); 884 $('#data_key').val(text); 885 $('#data_page').val(1); 886 887 //å è½½é»è®¤æ°æ® 888 var data_key = $("#data_key").val(); 889 var data_page = $('#data_page').val(); 890 data_page = Number(data_page); 891 getProduct2(data_key,data_page,'prev') 892 }); 893 //ä¸ä¸é¡µ 894 $(".sales-products .page-control .page-prev").click(function(){ 895 var data_key = $("#data_key").val(); 896 var data_page = $('#data_page').val(); 897 data_page = Number(data_page); 898 getProduct2(data_key,data_page,'prev') 899 }) 900 //ä¸ä¸é¡µ 901 $(".sales-products .page-control .page-next").click(function(){ 902 var data_key = $("#data_key").val(); 903 var data_page = $('#data_page').val(); 904 905 data_page = Number(data_page); 906 getProduct2(data_key,data_page,'next') 907 }) 908}); 909//æ¥è¯¢æ°æ® 910function getProduct2(data_key,data_page,data_active){ 911 912 if(data_active=='prev'){ 913 data_page = data_page - 1; 914 } 915 if(data_active=='next'){ 916 data_page = data_page + 1; 917 } 918 if(data_page<1){ 919 data_page = 1; 920 } 921 922 $.ajax({ 923 url: '/index.php?m=content&c=index&a=lists_ajax', 924 type: 'get', 925 dataType: 'html', 926 data: { 927 'catid':26, 928 'page':data_page, 929 'data_key':data_key, 930 'template':'category_cooperation.ajax', 931 }, 932 success:function(data){ 933 if(data.length>25){ 934 $('#data_list').html(data); 935 $("#data_page").val(data_page); 936 } 937 } 938 }) 939}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.