1// ä½è ï¼è´ºæ½® 2// QQ:1720849931 3// çµè¯ï¼18600406328 4 5 6// IE10以䏿µè§å¨æç¤º 7function hiUpgrade() { 8 window.AESKey = ''; 9 // 夿æµè§å¨æ¯å¦æ¯æplaceholder屿§ 10 function isSupportPlaceholder() { 11 var input = document.createElement('input'); 12 return 'placeholder' in input; 13 }; 14 //夿æ¯å¦æ¯IEæµè§å¨ï¼å æ¬Edgeæµè§å¨ 15 function IEVersion() { 16 //å徿µè§å¨çuserAgentå符串 17 var userAgent = navigator.userAgent; 18 //夿æ¯å¦IEæµè§å¨ 19 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; 20 if (isIE) { 21 // ie10åä»¥ä¸ 22 var reIE = new RegExp("MSIE (\\d+\\.\\d+);"); 23 reIE.test(userAgent); 24 var fIEVersion = parseFloat(RegExp["$1"]); 25 if (fIEVersion < 10 || !isSupportPlaceholder()) { 26 return true; 27 } 28 } else { 29 return false; 30 } 31 } 32 var tpl = '<div id="hi-upgrade"><div class="hi-wrap"><p class="hi-title">æ æ³æ£å¸¸æµè§æ¬ç½ç«ï¼</p><div class="hi-close">ç»§ç»æµè§</div><div class="hi-text1"><p>1ãæ¨çæµè§å¨çæ¬è¿ä½ï¼è¯·å级æ¨çæµè§å¨ã</p><p>2ã妿æ¨çæµè§å¨æ¯ææ°çæ¬ï¼è¯·<span>忢尿鿍¡å¼</span>访é®ã</p><p>3ãæ¨ä½¿ç¨çæ¯IE10以ä¸çæµè§å¨ï¼å»ºè®®æ¨<span>使ç¨ä¸»æµæµè§å¨</span>访é®ã</p></div><p class="hi-text2"><span>ä¸»æµæµè§å¨ä¸è½½</span></p><ul class="hi-list"><li><a href="https://www.google.cn/intl/zh-CN/chrome/" target="_blank"><div class="hi-ico1"></div><p>è°·ææµè§å¨</p></a></li><li><a href="http://www.firefox.com.cn/download/" target="_blank"><div class="hi-ico2"></div><p>ç«çæµè§å¨</p></a></li><li><a href="http://browser.360.cn" target="_blank"><div class="hi-ico3"></div><p>UCæµè§å¨</p></a></li><li><a href="https://www.uc.cn" target="_blank"><div class="hi-ico4"></div><p>360æµè§å¨</p></a></li><li><a href="https://browser.qq.com" target="_blank"><div class="hi-ico5"></div><p>QQæµè§å¨</p></a></li><li><a href="https://ie.sogou.com" target="_blank"><div class="hi-ico6"></div><p>æçæµè§å¨</p></a></li></ul></div></div>'; 33 if (IEVersion()) { 34 document.write(tpl); 35 } 36} 37hiUpgrade(); 38 39 40// çªå£åçæ¹åå·æ°é¡µé¢ 41var videoElement = document.querySelector('video'); 42// çå¬å ¨å±ç¶æåå 43document.addEventListener('fullscreenchange', function () { 44 var isFullScreen = document.fullscreenElement === videoElement; 45 videoElement.dataset.isFullScreen = isFullScreen; 46}); 47// åå§çªå£å®½åº¦ 48var windowWidth = $(window).width(); 49$(window).resize(function () { 50 var isFullScreen = Boolean(videoElement && videoElement.dataset.isFullScreen); 51 if (!isFullScreen && Math.abs($(this).width() - windowWidth) > 20) { 52 window.location.href = ""; 53 windowWidth = $(this).width(); 54 } 55}); 56 57layui.use(["form", "layer", "laydate", "rate", "table"], function() { 58 $(".layui-layer-photos-toolbar a").html("View Full Image"); 59 console.log("12121212"); 60 console.log($(".layui-layer-photos-toolbar a")); 61 62}) 63 64// setTimeout(function () { 65function fixedScrollHeader() { 66 var PC = $(window).width() > 990, 67 mobile = $(window).width() <= 990, 68 winWidth = $(window).width(), 69 winHeight = $(window).height(); 70 if (mobile) {} 71 if (PC) { 72 // setTimeout(function () { 73 let navbar = document.querySelector('.header-pc'); 74 let lastScrollY = window.pageYOffset; 75 window.addEventListener('scroll', function () { 76 let currentScrollY = window.pageYOffset; 77 if (currentScrollY > lastScrollY) { 78 gsap.to(navbar, { 79 duration: 0.1, 80 y: '-100%', 81 opacity: 0, 82 // ease: 'power2.in' 83 }); 84 } else { 85 gsap.to(navbar, { 86 duration: 0.1, 87 y: '0%', 88 opacity: 1, 89 // ease: 'power2.out' 90 }); 91 } 92 lastScrollY = currentScrollY; 93 }); 94 95 // }, 1000) 96 } 97} 98fixedScrollHeader() 99 100 101 102// å¯¼èª 103function headNav() { 104 // pc 105 if ($(".header-pc").length) { 106 // 触åç½åº 107 $("#header").mouseover(function () { 108 $(this).addClass("active"); 109 }).mouseleave(function () { 110 $(this).removeClass("active"); 111 }) 112 113 // äºçº§æ¾ç¤º 114 $(".header-pc .nav dl").mouseover(function () { 115 // var i = $(this).index(); 116 $(".header-pc .nav dd").stop().slideUp(300); 117 $(this).find("dd").stop().slideDown(300); 118 }); 119 120 $(".header-pc .header-wrap .nav").mouseleave(function () { 121 $(".header-pc .nav dd").stop().slideUp(300); 122 }); 123 // æç´¢ 124 $(".header-search").mouseover(function () { 125 var _this = $(this); 126 $(_this).addClass('active'); 127 $(".mask-bg").fadeIn(); 128 $(".search-pop").fadeIn(); 129 }); 130 $(".mask-bg").mouseover(function () { 131 var _this = $(this); 132 $(".header-search").removeClass('active'); 133 $(".mask-bg").fadeOut(); 134 $(".search-pop").fadeOut(); 135 }); 136 $(".search-pop .clear-search,.mask-bg").on("click", function () { 137 $(".header-search").removeClass('active'); 138 $(".mask-bg").fadeOut(); 139 $(".search-pop").fadeOut(); 140 }); 141 142 // æ»å
143 var $nav_bor = $(".header .nav .bor"); 144 var $nav_a = $(".nav dl"); 145 var $on_a = $('.nav dt a.active'); 146 if ($on_a.length) { 147 $nav_bor.css({ 148 'width': $on_a.parents("dl").width() + 'px', 149 'left': $on_a.parents("dl").position().left 150 }); 151 152 $nav_a.mouseover(function () { 153 154 $nav_bor.stop().animate({ 155 'width': $(this).innerWidth() + 'px', 156 'left': $(this).position().left 157 }); 158 159 }); 160 $(".nav").mouseleave(function () { 161 // console.log($on_a.p) 162 $nav_bor.stop().animate({ 163 'width': $on_a.parents("dl").width() + 'px', 164 'left': $on_a.parents("dl").position().left 165 }); 166 }); 167 } 168 } 169 170 // è¿åé¡¶é¨ 171 if ($(".backToTopBtn").length) { 172 var btnTop = document.getElementById('backToTopBtn'); 173 btnTop.addEventListener('click', function () { 174 window.scrollTo({ 175 top: 0, 176 behavior: 'smooth' 177 }); 178 }); 179 } 180 181 // ææº 182 if ($(".m_header_box").length) { 183 function mHeaderBox() { 184 let c = "active"; 185 let mHeader = $('#mHeader'), 186 title = mHeader.children('#mHeaderTitle'), 187 btn = title.find('#menuBtn'), 188 body = mHeader.children('#mHeaderBody'), 189 nav = body.find('#menuNav'); 190 btn.click(function () { 191 if (!$(this).hasClass(c)) { 192 $(this).addClass(c); 193 body.stop().slideDown(500); 194 } else { 195 body.stop().slideUp(300); 196 $(this).removeClass(c); 197 } 198 }); 199 let li = nav.children().children(); 200 li.find('.one.active').siblings().show(); 201 li.find('ul').siblings('.one').addClass('is_active') 202 li.find('ul').siblings('a').attr('href', 'javascript:;'); 203 li.find('ul').siblings().click(function () { 204 $(this).siblings().stop().slideToggle(300).parent().siblings().children('.active').siblings().stop().slideUp(300); 205 $(this).toggleClass(c).parent().siblings().children('.active').removeClass(c); 206 }); 207 } 208 mHeaderBox(); 209 } 210} 211headNav(); 212// }, 500); 213 214// æ»è½®ä¸æ» 215$(window).scroll(function () { 216 headInit(); 217}) 218 219 220function headInit() { 221 var t = $(window).scrollTop(); 222 if (t >= 60) { 223 $("#header").addClass("header-bg") 224 $(".kefu-box").addClass("active") 225 } else { 226 $("#header").removeClass("header-bg") 227 $(".kefu-box").removeClass("active") 228 } 229} 230headInit(); 231 232 233 234// åºé¨å¯¼èª 235function footerNav() { 236 $("html").on("click", ".foot-nav .dl .dt", function () { 237 if ($(window).width() > 990) return; 238 var footNav = $(this).siblings(".foot-nei-nav"); 239 if (footNav.css("display") === "none") { 240 $(this).siblings(".foot-nei-nav").slideDown(); 241 $(this).parents(".dl").siblings().find(".foot-nei-nav").slideUp(); 242 $(this).addClass("active"); 243 $(this).parents(".dl").siblings().find(".dt").removeClass("active"); 244 } else { 245 $(this).siblings(".foot-nei-nav").slideUp(); 246 $(this).removeClass("active"); 247 } 248 }); 249} 250footerNav(); 251 252 253$("p:last-child").addClass("no_margin"); 254 255 256 257 258 259 260 261// äºç»´ç å¼¹çª 262function codePop(obj) { 263 var oImgBox = $("#c-code-pop"); //å¼¹çª 264 var oClose = oImgBox.find(".c-close"); //å ³éæé® 265 var oImg = oImgBox.find("img"); //å¾çæ ç¾ 266 // ç¹å»æ¾ç¤ºå¼¹çªï¼è®¾ç½®å¾çsrc 267 $(document).on("click", obj, function () { 268 if ($(this).attr("data-img-src")) { 269 oImgBox.stop().fadeIn(); 270 oImg.attr("src", $(this).attr("data-img-src")); 271 } 272 }); 273 // ç¹å»å¾ç黿¢å泡 274 oImg.click(function (event) { 275 event.stopPropagation(); 276 }); 277 // ç¹å»å ³éå¼¹çª 278 oClose.click(function (event) { 279 event.stopPropagation(); 280 oImgBox.stop().fadeOut(); 281 }); 282 // ç¹å»å¼¹çªå ³éå¼¹çª 283 oImgBox.click(function (event) { 284 event.stopPropagation(); 285 oImgBox.stop().fadeOut(); 286 }); 287} 288codePop(); 289codePop(".c-code-btn"); 290 291 292// è§é¢å¼¹çª 293// setTimeout(function () { 294function HiVideoPop(obj) { 295 var oVideoBox = $("#hi-video-pop"); //å¼¹çª 296 var oClose = oVideoBox.find(".hi-close"); //å ³éæé® 297 var oVideo = oVideoBox.find("video"); //è§é¢æ ç¾ 298 var oVideoBox2 = $("#hi-iframe-video"); //iframeå¼¹çª 299 var oClose2 = oVideoBox2.find(".hi-close"); //iframeå ³éæé® 300 // ç¹å»æ¾ç¤ºå¼¹çªï¼è®¾ç½®è§é¢srcï¼ææ¾è§é¢ 301 $(document).on("click", obj, function () { 302 if ($(this).attr("data-video-src")) { 303 if ($(this).attr("data-video-src").indexOf("iframe") > 0) { 304 oVideoBox2.stop().fadeIn(); 305 oVideoBox2.append($(this).attr("data-video-src")); 306 } else { 307 oVideoBox.stop().fadeIn(); 308 oVideo.attr("src", $(this).attr("data-video-src")); 309 oVideo.trigger("play"); 310 } 311 } 312 }); 313 // ç¹å»å ³éå¼¹çªï¼æåè§é¢ææ¾ 314 oClose.click(function (event) { 315 event.stopPropagation(); 316 oVideoBox.stop().fadeOut(); 317 oVideo.trigger("pause"); 318 }); 319 // ç¹å»å¼¹çªï¼æåè§é¢ææ¾ 320 oVideoBox.click(function (event) { 321 event.stopPropagation(); 322 oVideoBox.stop().fadeOut(); 323 oVideo.trigger("pause"); 324 }); 325 // ç¹å»å ³éiframeå¼¹çªï¼æ¸ é¤iframe 326 oClose2.click(function (event) { 327 event.stopPropagation(); 328 oVideoBox2.stop().fadeOut(); 329 oVideoBox2.find("iframe").remove(); 330 }); 331 // ç¹å»iframeå¼¹çªï¼æ¸ é¤iframe 332 oVideoBox2.click(function (event) { 333 event.stopPropagation(); 334 oVideoBox2.stop().fadeOut(); 335 oVideoBox2.find("iframe").remove(); 336 }); 337} 338HiVideoPop(".c-play"); 339 340// ç¹å»å±å¼ 341function tabUl() { 342 // $(".tab-ul ul li:eq(0)").addClass("active"); 343 // $(".tab-ul ul li:eq(0) .bom").slideToggle(); 344 $(".tab-ul ul").on("click", 'li .top', function () { 345 var dd = $(this).next(); 346 var li = $(this).parent(); 347 var other = li.siblings(); 348 var otherDd = other.find(".bom"); 349 li.toggleClass("active"); 350 dd.slideToggle(); 351 other.removeClass("active"); 352 otherDd.slideUp(); 353 }) 354} 355tabUl(); 356// }, 400); 357 358 359// çé 360function filterPage() { 361 $(".pulldown").click(function () { 362 var f = $(this).parent(".filter-media"); 363 if (f.hasClass("show")) { 364 f.removeClass("show"); 365 } else { 366 f.addClass("show"); 367 } 368 }); 369 $(document).on( 370 "click", 371 ".filter-media .msg-box a", 372 function () { 373 getDataList.apply(this);
374 // var container = $(this).data("container"); 375 376 // $(".js-input-newroom-search").val(""); 377 378 // GetNews(container); 379 } 380 ); 381} 382filterPage(); 383 384function getDataList() { 385 var container = $(this).data("container"); 386 var type = $(this).data("type"); 387 var v = $(this).data("val"); 388 var active = $(this).parent().hasClass("active"); 389 if (active) { 390 if (!v) { 391 $(this).parent().parent().find("li").removeClass("active"); 392 } else { 393 $(this).parent().removeClass("active"); 394 } 395 } else { 396 if (!v) { 397 $(this).parent().parent().find("li").removeClass("active"); 398 } else { 399 $(this).parent().parent().find("li").eq(0).removeClass("active"); 400 } 401 $(this).parent().addClass("active"); 402 } 403 404 // var activeDef = $(this) 405 // .parent() 406 // .parent() 407 // .find("li") 408 // .eq(0) 409 // .hasClass("active"); 410 // if (activeDef) { 411 // setInputValue(container, type, ""); 412 // } else { 413 // var kv = ""; 414 // $(this) 415 // .parent() 416 // .parent() 417 // .find("li.active a") 418 // .each(function (idx) { 419 // if (idx == 0) { 420 // kv = $(this).data("val"); 421 // } else { 422 // kv += "," + $(this).data("val"); 423 // } 424 // }); 425 // setInputValue(container, type, kv); 426 // } 427} 428 429 430// é¦é¡µ-banner 431function indexSlide() { 432 $(".index-swiper").each(function () { 433 var len = $(this).find(".swiper-slide").length; 434 if (len >= 2) { 435 $(this).addClass("active"); 436 } 437 438 var slide = new Swiper('.index-swiper', { 439 autoplay: { 440 delay: 4000, 441 disableOnInteraction: false, 442 }, 443 speed: 900, 444 effect: 'fade', 445 loop: true, 446 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 447 navigation: { 448 nextEl: '.index-swiper .swiper-button-next', 449 prevEl: '.index-swiper .swiper-button-prev', 450 }, 451 pagination: { 452 el: '.index-swiper .swiper-pagination', 453 clickable: true, 454 }, 455 }); 456 }); 457} 458indexSlide(); 459 460 461 462// é¦é¡µ-ç»å ¸æ¡ä¾ 463// document.onselectstart = function(){return false;}; 464function indexCasePage() { 465 $(".index-case-swiper").each(function () { 466 var len = $(this).find(".swiper-slide").length; 467 if (len >= 4) { 468 $(this).addClass("active"); 469 } 470 var bodyFont = $('html').css('fontSize'); 471 var slide = new Swiper('.index-case-swiper', { 472 speed: 900, 473 slidesPerView: 3, 474 spaceBetween: .28 * parseInt(bodyFont), 475 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 476 watchOverflow: true, 477 navigation: { 478 nextEl: '.index-case-page .swiper-button-next', 479 prevEl: '.index-case-page .swiper-button-prev', 480 }, 481 pagination: { 482 el: '.index-case-swiper .swiper-pagination', 483 clickable: true, 484 }, 485 scrollbar: { 486 el: '.index-case-page .swiper-scrollbar', 487 }, 488 breakpoints: { 489 480: { 490 slidesPerView: 1.3, 491 spaceBetween: 20, 492 }, 493 990: { 494 slidesPerView: 2, 495 spaceBetween: 20, 496 }, 497 1024: { 498 slidesPerView: 3, 499 spaceBetween: 20, 500 }, 501 }, 502 }); 503 }); 504} 505indexCasePage(); 506 507 508// é¦é¡µ-è§£å³æ¹æ¡ 509function indexSolutionPage() { 510 var PC = $(window).width() > 1024, 511 mobile = $(window).width() <= 1024, 512 winWidth = $(window).width(), 513 winHeight = $(window).height(); 514 if (mobile) {} 515 if (PC) { 516 // window.onload = function () { 517 // var h = $(".index-solution-page .img-hide .active").innerHeight(); 518 // $(".index-solution-page .list").css("height", h) 519 520 // $(window).resize(function () { 521 // var h = $(".index-solution-page .img-hide .active").innerHeight(); 522 // $(".index-solution-page .list").css("height", h) 523 // }); 524 var $industryItem = $('.index-solution-page .list .item'); 525 $industryItem.removeClass('active').eq(0).addClass('active'); 526 $industryItem.hover(function () { 527 $(this).addClass('active').siblings('.item').removeClass('active'); 528 }); 529 // }; 530 } 531} 532indexSolutionPage(); 533 534 535 536if ($(".index").length) { 537 538} 539 540 541// å å ¥æä»¬-åå·¥æ´»å¨æ°å´å¥½ 542function join3Page() { 543 $(".join3-swiper").each(function () { 544 var len = $(this).find(".swiper-slide").length; 545 if (len >= 4) { 546 $(this).addClass("active"); 547 } 548 var slide = new Swiper('.join3-swiper', { 549 speed: 900, 550 slidesPerView: 3, 551 spaceBetween: 40, 552 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 553 watchOverflow: true, 554 navigation: { 555 nextEl: '.join3-page .swiper-button-next', 556 prevEl: '.join3-page .swiper-button-prev', 557 }, 558 pagination: { 559 el: '.join3-swiper .swiper-pagination', 560 clickable: true, 561 }, 562 scrollbar: { 563 el: '.join3-page .swiper-scrollbar', 564 }, 565 breakpoints: { 566 480: { 567 slidesPerView: 2, 568 spaceBetween: 20, 569 }, 570 990: { 571 slidesPerView: 2, 572 spaceBetween: 20, 573 }, 574 1024: { 575 slidesPerView: 3, 576 spaceBetween: 20, 577 }, 578 }, 579 }); 580 }); 581 582 // å¼ç¨é¼ æ è·éææ 583 if ($(window).width() > 991) { 584 /**/
585 imousehover($('.fixed-zhl1'), $('.join3-page .join3-swiper')); 586 /**/ 587 } 588} 589join3Page(); 590 591 592// å å ¥æä»¬-æèå²ä½ 593function join4Page() { 594 var d = $(".join4-page .tab-wrap .tab-box"); 595 $(".join4-page .tab-title .title").click(function () { 596 var i = $(this).index(); 597 $(this).addClass("active").siblings().removeClass("active"); 598 d.eq(i).stop().show().siblings().stop().hide(); 599 }); 600 601 d.each(function () { 602 var len = $(this).find("li").length; 603 if (len >= 7) { 604 $(this).addClass("active2"); 605 } 606 }); 607 608 // ç¹å»æ¥çæ´å¤ 609 $('.join4-page .more-primary14').click(function () { 610 if ($(this).hasClass('active1')) { 611 this.innerHTML = "<span class='more-primary-str'>Show More</span><span class='more-primary-circle' > <img src='/application/home/view/default/images/select-icon.png' alt=''></span>"; 612 $(this).removeClass('active1'); 613 $(this).parents('.tab-box').removeClass('active'); 614 } else { 615 this.innerHTML = "<span class='more-primary-str'>Show Less</span><span class='more-primary-circle' > <img src='/application/home/view/default/images/select-icon.png' alt=''></span>"; 616 $(this).toggleClass('active1'); 617 $(this).parents('.tab-box').addClass('active'); 618 } 619 }); 620} 621join4Page(); 622 623 624// ç§æåæ°-å¼é¢ææ¯é£å° 625function technology1Page() { 626 var d = $(".technology1-page .tab-wrap .tab-box"); 627 $(".technology1-page .tab-title .title").click(function () { 628 var i = $(this).index(); 629 $(this).addClass("active").siblings().removeClass("active"); 630 $(this).parents(".item").find(".tab-box").hide(); 631 $(this).parents(".item").find(".tab-box").eq(i).show(); 632 // d.eq(i).stop().show().siblings().stop().hide(); 633 }); 634} 635technology1Page(); 636 637 638 639// èµ°è¿æ·±å³å°çµ-åå±ä¹è·¯ 640function about3Page() { 641 var slide = new Swiper('.about3-swiper', { 642 speed: 900, 643 // loop: true, 644 spaceBetween: 30, 645 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 646 navigation: { 647 nextEl: '.about3-page .swiper-button-next', 648 prevEl: '.about3-page .swiper-button-prev', 649 }, 650 pagination: { 651 el: '.about3-swiper .swiper-pagination', 652 clickable: true, 653 }, 654 on: { 655 slideChangeTransitionStart: function () { 656 // console.log(this.activeIndex); 657 // console.log(111111, this.realIndex); 658 var d = this.realIndex; 659 $('.about3-page .tab-title .title').stop().removeClass('active').eq(d).addClass('active'); 660 }, 661 } 662 }); 663 // var li_wid = $(".about3-page .tab-title .title").eq(0).width(); 664 $(".about3-page .tab-title .title").click(function () { 665 var d = $(this).index(); 666 $(".about3-swiper .swiper-pagination-bullet").eq(d).click(); 667 668 669 670 671 // $(".about3-page .tab-title-box").stop().animate({ 672 // "scrollLeft": (d - 1) * li_wid 673 // }); 674 }); 675} 676about3Page(); 677 678 679 680// èµ°è¿æ·±å³å°çµ-ä¼ä¸è£èª 681function about6Page() { 682 $(".about6-swiper").each(function () { 683 var len = $(this).find(".swiper-slide").length; 684 if (len >= 3) { 685 $(this).addClass("active"); 686 } 687 var slide = new Swiper('.about6-swiper', { 688 speed: 900, 689 slidesPerView: 3, 690 spaceBetween: 40, 691 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 692 watchOverflow: true, 693 navigation: { 694 nextEl: '.about6-page .swiper-button-next', 695 prevEl: '.about6-page .swiper-button-prev', 696 }, 697 pagination: { 698 el: '.about6-swiper .swiper-pagination', 699 clickable: true, 700 }, 701 scrollbar: { 702 el: '.about6-page .swiper-scrollbar', 703 }, 704 breakpoints: { 705 480: { 706 slidesPerView: 1.3, 707 spaceBetween: 20, 708 }, 709 990: { 710 slidesPerView: 2, 711 spaceBetween: 20, 712 }, 713 1024: { 714 slidesPerView: 3, 715 spaceBetween: 20, 716 }, 717 }, 718 }); 719 }); 720} 721about6Page(); 722 723 724 725 726// æ°é»ä¸å¿-详æ 727function newsDPage() { 728 var slide = new Swiper('.news-d-swiper', { 729 speed: 900, 730 spaceBetween: 20, 731 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 732 watchOverflow: true, 733 navigation: { 734 nextEl: '.news-d-page .swiper-button-next', 735 prevEl: '.news-d-page .swiper-button-prev', 736 }, 737 pagination: { 738 el: '.news-d-swiper .swiper-pagination', 739 clickable: true, 740 }, 741 }); 742} 743newsDPage(); 744 745 746 747 748// æ°é»ä¸å¿-详æ -ç鍿¨è 749function recommendationsPage() { 750 var PC = $(window).width() > 1024, 751 mobile = $(window).width() <= 1024, 752 winWidth = $(window).width(), 753 winHeight = $(window).height(); 754 if (mobile) {} 755 if (PC) { 756 $(".recommendations-swiper").each(function () { 757 var len = $(this).find(".swiper-slide").length; 758 if (len >= 3) { 759 $(this).addClass("active"); 760 } 761 762 var bodyFont = $('html').css('fontSize'); 763 var slide = new Swiper('.recommendations-swiper', { 764 speed: 900, 765 slidesPerView: 3, 766 spaceBetween: .4 * parseInt(bodyFont), 767 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 768 watchOverflow: true, 769 pagination: { 770 el: '.recommendations-swiper .swiper-pagination', 771 clickable: true, 772 }, 773 breakpoints: { 774 480: { 775 slidesPerView: 1, 776 spaceBetween: 20, 777 }, 778 990: { 779 slidesPerView: 2, 780 spaceBetween: 20, 781 }, 782 1024: { 783 slidesPerView: 3, 784 spaceBetween: 20, 785 }, 786 }, 787 }); 788 }); 789 } 790} 791recommendationsPage(); 792 793 794 795// è§é¢ä¸å¿-bannner 796function banPage() { 797 var slide = new Swiper('.page-ban-swiper', { 798 speed: 900, 799 // loop: true, 800 // spaceBetween: 30, 801 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 802 pagination: { 803 el: '.page-ban-swiper .swiper-pagination', 804 clickable: true, 805 }, 806 on: { 807 slideChangeTransitionStart: function () { 808 // console.log(this.activeIndex); 809 // console.log(111111, this.realIndex); 810 var d = this.realIndex; 811 $('.page-ban .tab-title .title').stop().removeClass('active').eq(
811d).addClass('active'); 812 }, 813 } 814 }); 815 var li_wid = $(".page-ban .tab-title .title").eq(0).width(); 816 $(".page-ban .tab-title .title").click(function () { 817 var d = $(this).index(); 818 $(".page-ban-swiper .swiper-pagination-bullet").eq(d).click(); 819 $(".page-ban .tab-title-box").stop().animate({ 820 "scrollLeft": (d - 1) * li_wid 821 }); 822 }); 823} 824banPage(); 825 826 827 828// è§é¢ä¸å¿-产åç±» 829function video1Page() { 830 let divBox = $('.video1-page'); 831 if (divBox.length) { 832 const getDiv = el => divBox.find(el); 833 let tabs = getDiv('.tab-title').children(), 834 swiperBox = getDiv('.video1-swiper'), 835 prev = getDiv('.swiper-button-prev'), 836 next = getDiv('.swiper-button-next'), 837 speed = 500; 838 839 tabs.click(function () { 840 var i = $(this).index(); 841 $(this).addClass('active').siblings().removeClass('active'); 842 swiper.slideTo($(this).index()); 843 }); 844 845 const swiper = new Swiper(swiperBox, { 846 speed, 847 spaceBetween: 20, 848 allowTouchMove: false, 849 }); 850 851 let swiperArr = []; 852 swiperBox.find('.swiper-box').each(function () { 853 // let pager = $(this).siblings('.swiper-pagination'); 854 const itemSwiper = new Swiper($(this), { 855 speed, 856 spaceBetween: 20, 857 watchSlidesProgress: true, 858 watchSlidesVisibility: true, 859 pagination: { 860 // el: pager, 861 el: '.swiper-box .swiper-pagination', 862 clickable: true, 863 }, 864 }); 865 swiperArr.push(itemSwiper); 866 }); 867 868 prev.click(() => swiperArr[swiper.activeIndex].slidePrev()); 869 next.click(() => swiperArr[swiper.activeIndex].slideNext()); 870 } 871} 872video1Page(); 873 874 875 876 877// è§é¢ä¸å¿-ææ¯ç±» 878function video2Page() { 879 let divBox = $('.video2-page'); 880 if (divBox.length) { 881 const getDiv = el => divBox.find(el); 882 let tabs = getDiv('.tab-title').children(), 883 swiperBox = getDiv('.video2-swiper'), 884 prev = getDiv('.swiper-button-prev'), 885 next = getDiv('.swiper-button-next'), 886 speed = 500; 887 888 tabs.click(function () { 889 var i = $(this).index(); 890 $(this).addClass('active').siblings().removeClass('active'); 891 swiper.slideTo($(this).index()); 892 }); 893 894 const swiper = new Swiper(swiperBox, { 895 speed, 896 spaceBetween: 20, 897 allowTouchMove: false, 898 }); 899 900 let swiperArr = []; 901 swiperBox.find('.swiper-box').each(function () { 902 let pager = $(this).siblings('.swiper-pagination'); 903 let pager2 = $(this).siblings('.swiper-scrollbar'); 904 const itemSwiper = new Swiper($(this), { 905 speed, 906 slidesPerView: 4, 907 spaceBetween: 36, 908 watchSlidesProgress: true, 909 watchSlidesVisibility: true, 910 pagination: { 911 el: pager, 912 clickable: true, 913 }, 914 scrollbar: { 915 el: pager2, 916 }, 917 breakpoints: { 918 480: { 919 slidesPerView: 1.4, 920 spaceBetween: 20, 921 }, 922 768: { 923 slidesPerView: 2, 924 spaceBetween: 20, 925 }, 926 990: { 927 slidesPerView: 3, 928 spaceBetween: 20, 929 }, 930 1280: { 931 slidesPerView: 3, 932 spaceBetween: 20, 933 }, 934 }, 935 }); 936 swiperArr.push(itemSwiper); 937 }); 938 939 prev.click(() => swiperArr[swiper.activeIndex].slidePrev()); 940 next.click(() => swiperArr[swiper.activeIndex].slideNext()); 941 } 942} 943video2Page(); 944 945 946 947// è§é¢ä¸å¿-精彩å顾 948function video3Page() { 949 $(".video3-swiper").each(function () { 950 var len = $(this).find(".swiper-slide").length; 951 if (len >= 3) { 952 $(this).addClass("active"); 953 } 954 955 var bodyFont = $('html').css('fontSize'); 956 var slide = new Swiper('.video3-swiper', { 957 speed: 900, 958 slidesPerView: 3, 959 spaceBetween: .4 * parseInt(bodyFont), 960 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 961 watchOverflow: true, 962 navigation: { 963 nextEl: '.video3-page .swiper-button-next', 964 prevEl: '.video3-page .swiper-button-prev', 965 }, 966 pagination: { 967 el: '.video3-swiper .swiper-pagination', 968 clickable: true, 969 }, 970 breakpoints: { 971 480: { 972 slidesPerView: 1, 973 spaceBetween: 20, 974 }, 975 990: { 976 slidesPerView: 2, 977 spaceBetween: 20, 978 }, 979 1024: { 980 slidesPerView: 3, 981 spaceBetween: 20, 982 }, 983 }, 984 }); 985 }); 986} 987video3Page(); 988 989 990 991// ç§èµæå¡-æå¡ç¹ç¹ 992function services2Page() { 993 994 // $(".tab-ul ul li:eq(0)").addClass("active"); 995 // $(".tab-ul ul li:eq(0) .bom").slideToggle(); 996 997 var slide = new Swiper('.services2-swiper', { 998 speed: 900, 999 // effect: 'fade', 1000 // loop: true, 1001 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1002 pagination: { 1003 el: '.services2-swiper .swiper-pagination', 1004 clickable: true, 1005 }, 1006 on: { 1007 slideChangeTransitionStart: function (data) { 1008 // console.log(this.activeIndex) 1009 var d = this.activeIndex; 1010 $(".services2-page .tab-ul li").eq(d).addClass("active").siblings().removeClass("active"); 1011 }, 1012 1013 }, 1014 }); 1015 1016 1017 $(".services2-page .tab-ul li").hover(function () { 1018 var a = $(this).index(); 1019 $(".services2-swiper .swiper-pagination-bullet").eq($(this).index()).click(); 1020 $(this).addClass("active").siblings().removeClass("active"); 1021 }); 1022} 1023services2Page(); 1024 1025 1026// è§£å³æ¹æ¡-ä¼è®®ç³»ç»-䏿³¨é¢å 1027// function solution2Page() { 1028// var PC = $(window).width() > 1024, 1029// mobile = $(window).width() <= 1024, 1030// winWidth = $(window).width(), 1031// winHeight = $(window).height(); 1032// if (mobile) { 1033// var bodyFont = $('html').css('fontSize'); 1034// var slide = new Swiper('.solution2-swiper', { 1035// speed: 900, 1036// slidesPerView: 3, 1037// spaceBetween: .4 * parseInt(bodyFont), 1038// preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1039// watchOverflow: true, 1040// pagination: { 1041// el: '.solution2-swiper .swiper-pagination', 1042// clickable: true, 1043// }, 1044// breakpoints: { 1045// 480: { 1046// slidesPerView: 2, 1047// spaceBetween: 20, 1048// }, 1049// 990: { 1050// slidesPerView: 2, 1051// spaceBetween: 20, 1052// }, 1053// 1024: { 1054// slidesPerView: 3, 1055// spaceBetween: 20, 1056// }, 1057// }, 1058// }); 1059// } 1060// if (PC) { 1061 1062// } 1063// } 1064// solution2Page(); 1065 1066 1067 1068// è§£å³æ¹æ¡-ä¼è®®ç³»ç»-ç ååæ° 1069// function solution3Page() { 1070// var PC = $(window).width() > 1024, 1071// mobile = $(window).width() <= 1024, 1072// winWidth = $(window).width(), 1073// winHeight = $(window).height(); 1074// if (mobile) { 1075// var bodyFont = $('html').css('fontSize'); 1076// var slide = new Swiper('.solution3-swiper', { 1077// speed: 900, 1078// slidesPerView: 3, 1079// spaceBetween: .4 * parseInt(bodyFont), 1080// preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1081// watchOverflow: true, 1082// pagination: { 1083// el: '.solution3-swiper .swiper-pagination', 1084// clickable: true, 1085// }, 1086// breakpoints: { 1087// 480: { 1088// slidesPerView: 1, 1089// spaceBetween: 20, 1090// }, 1091// 990: { 1092// slidesPerView: 2, 1093// spaceBetween: 20, 1094// }, 1095// 1024: { 1096// slidesPerView: 3, 1097// spaceBetween: 20, 1098// }, 1099// }, 1100// }); 1101// } 1102// if (PC) { 1103 1104// } 1105// } 1106// solution3Page(); 1107 1108 1109// è§£å³æ¹æ¡-ä¼è®®ç³»ç»-ç¸å ³äº§å 1110function solution4Page() { 1111 var PC = $(window).width() > 1024, 1112 mobile = $(window).width() <= 1024, 1113 winWidth = $(window).width(), 1114 winHeight = $(window).height(); 1115 if (mobile) { 1116 // 黿¢é¾æ¥è·³è½¬ 1117 $('.solution4-page .tab-ul2 li .top a').attr('href', '##'); 1118 1119 // éåæ¯ä¸ª.tab-ul2å®¹å¨ 1120 $('.tab-ul2').each(function () { 1121 var $tabContainer = $(this), 1122 $tabListItems = $tabContainer.find('li'); 1123 1124 // ç§»é¤ææ.activeç±»ï¼å¹¶è®¾ç½®ç¬¬ä¸ä¸ªä¸ºæ´»å¨é¡¹ 1125 $tabListItems.removeClass('active active2').first().addClass('active active2'); 1126 1127 // ç»å®ç¹å»äºä»¶ 1128 $tabListItems.on('click', function () { 1129 var $currentItem = $(this); 1130 1131 if ($currentItem.hasClass('active')) { 1132 // 妿å½åç¹å»çæ¯æ´»å¨é¡¹ï¼åéèå ¶å 容 1133 $currentItem.removeClass('active active2'); 1134 $currentItem.find('.bom').slideUp(); 1135 } else { 1136 // å¦åï¼éèå½åæ´»å¨é¡¹çå 容ï¼å¹¶ä½¿æ°é¡¹æä¸ºæ´»å¨é¡¹ 1137 $tabContainer.find('.active .bom').slideUp(); 1138 $tabContainer.find('.active').removeClass('active active2'); 1139 $currentItem.addClass('active active2'); 1140 $currentItem.find('.bom').slideDown(); 1141 } 1142 }); 1143 }); 1144 } 1145 if (PC) { 1146 // $ga_card_li.removeClass('active').eq(0).addClass('active'); 1147 $('.solution4-page .tab-ul2 li').hover(function () { 1148 $(this).addClass('active').siblings('li').removeClass('active'); 1149 }); 1150 // $('.solution4-page .tab-ul2').mouseleave(function () { 1151 // $ga_card_li.removeClass('active').eq(0).addClass('active'); 1152 // }) 1153 } 1154} 1155solution4Page(); 1156 1157 1158// è§£å³æ¹æ¡-ä¼è®®ç³»ç»-æ´å¤æå¡ 1159function solution5Page() { 1160 $(".solution5-swiper").each(function () { 1161 var len = $(this).find(".swiper-slide").length; 1162 if (len >= 3) { 1163 $(this).addClass("active"); 1164 } 1165 1166 var bodyFont = $('html').css('fontSize'); 1167 var slide = new Swiper('.solution5-swiper', { 1168 speed: 900, 1169 slidesPerView: 3, 1170 spaceBetween: .4 * parseInt(bodyFont), 1171 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1172 watchOverflow: true, 1173 pagination: { 1174 el: '.solution5-swiper .swiper-pagination', 1175 clickable: true, 1176 }, 1177 breakpoints: { 1178 480: { 1179 slidesPerView: 2, 1180 spaceBetween: 20, 1181 }, 1182 990: { 1183 slidesPerView: 2, 1184 spaceBetween: 20, 1185 }, 1186 1024: { 1187 slidesPerView: 3, 1188 spaceBetween: 20, 1189 }, 1190 }, 1191 }); 1192 }); 1193} 1194solution5Page(); 1195 1196 1197// è§£å³æ¹æ¡-详æ -éæ©åéçä¼è®®å®¤ 1198function solutionD1Page() { 1199 $(".solution-d1-page").each(function () { 1200 var len = $(this).find(".swiper-slide").length; 1201 if (len >= 3) { 1202 $(this).addClass("active"); 1203 } 1204 1205 var swiper_all = $(".solution-d1-page"); 1206 swiper_all.each(function () { 1207 var swi_1 = $(this).find(".solution-d1-swiper"); 1208 var item_1 = $(this).find(".tab-title .title"); 1209 var swiper = new Swiper(swi_1, { 1210 effect: 'fade', 1211 navigation: {
1212 nextEl: '.solution-d1-swiper .swiper-button-next', 1213 prevEl: '.solution-d1-swiper .swiper-button-prev', 1214 }, 1215 pagination: { 1216 el: '.solution-d1-swiper .swiper-pagination', 1217 clickable: true, 1218 }, 1219 speed: 800, 1220 autoHeight: true, 1221 }); 1222 1223 item_1.click(function () { 1224 var d = $(this).index(); 1225 $(this).addClass("active").siblings().removeClass("active"); 1226 $(this).parents(".solution-d1-page").find(".swiper-main").eq(d).show().siblings().hide(); 1227 $(".solution-d-wrap .solution-d-tab-box").eq(d).show().siblings().hide(); 1228 // swiper.slideTo(d , 800); 1229 }); 1230 $(".solution-d1-page .swiper-main + .swiper-main").hide(); 1231 $(".solution-d-wrap .solution-d-tab-box + .solution-d-tab-box").hide(); 1232 $(".solution-d-wrap .solution-d-dl .solution-d-dd + .solution-d-dd").hide(); 1233 }) 1234 1235 $(".tab-title2 .title").click(function () { 1236 $(this).siblings().removeClass("active") 1237 $(this).addClass("active"); 1238 var d = $(this).index(); 1239 $(this).parents('.solution-d-tab-box').find(".solution-d-dd").eq(d).show().siblings().hide(); 1240 $(this).parents('.solution-d-tab-box').find(".solution-d-dd").eq(d).find('.taiden-box').addClass('box1').siblings().find('.taiden-box').removeClass('box1'); 1241 }) 1242 1243 $('.solution-d-tab-box').find(".solution-d-dd").eq(0).find('.taiden-box').addClass('box1'); 1244 }); 1245} 1246solutionD1Page(); 1247 1248 1249// 产åä¸å¿-å ¨æ°åä¼è®®ç³»ç»-为ä»ä¹éæ©ï¼ 1250function products1Page() { 1251 var p1 = document.querySelector(".products1-swiper"); 1252 if (p1 && p1.classList.contains("products1-swiper")) {} else { 1253 $('.products1-3-page .slide-btn').hide(); 1254 } 1255 1256 1257 $(".products1-swiper").each(function () { 1258 var len = $(this).find(".swiper-slide").length; 1259 if (len >= 2) { 1260 $(this).addClass("active"); 1261 } 1262 1263 var slide = new Swiper('.products1-swiper', { 1264 speed: 900, 1265 effect: 'fade', 1266 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1267 watchOverflow: true, 1268 navigation: { 1269 nextEl: '.products1-swiper .swiper-button-next', 1270 prevEl: '.products1-swiper .swiper-button-prev', 1271 }, 1272 pagination: { 1273 el: '.products1-swiper .swiper-pagination', 1274 clickable: true, 1275 }, 1276 }); 1277 }); 1278} 1279products1Page(); 1280 1281 1282 1283// 产åä¸å¿-å ¨æ°åä¼è®®ç³»ç»-产å 1284function products2Page() { 1285 var divBox = $('.products2-page'); 1286 if (divBox.length) { 1287 divBox.each(function(){ 1288 var box = $(this); 1289 var content = box.find(".page-down .list .item"); 1290 content.each(function(){ 1291 var $this = $(this); 1292 var item = $(this).find(".item-box .text-box .item-main .item-li"); 1293 var img = $(this).find(".item-box .public-img-main .img"); 1294 var img2 = $(this).find(".item-box .public-img-main .public-img"); 1295 item.hover(function (e) { 1296 if(e.type === 'mouseenter') { 1297 var index = $(this).index(); 1298 $(this).stop().addClass("active").siblings().stop().removeClass("active"); 1299 if(img.length) { img.eq(index).stop().show().addClass("active").siblings().hide().removeClass("active"); } 1300 if(img2.length) { img2.eq(index).stop().show().addClass("active").siblings().hide().removeClass("active"); } 1301 } 1302 }) 1303 }) 1304 var one = box.find(".tab-title .title"),content = box.find(".tab-wrap .tab-box") 1305 one.click(function (e) { 1306 var index = $(this).index(); 1307 $(this).stop().addClass("active").siblings().stop().removeClass("active"); 1308 if(content.length) { content.eq(index).stop().show().addClass("active").siblings().hide().removeClass("active"); } 1309 }) 1310 }) 1311 } 1312 1313 1314 1315 1316 // var d = $(".products2-page .tab-wrap .tab-box"); 1317 // var d2 = $(".products2-page .tab-wrap2 .tab-box"); 1318 // $(".products2-page .tab-title .title").click(function () { 1319 // // è·åå½å被ç¹å»çæ é¢ 1320 // // var clickedTitle = $(this); 1321 // var i = $(this).index(); 1322 // // è·åè¦æ»å¨å°çç®æ å ç´ çID 1323 // // var scrollTargetId = clickedTitle.data('scroll-to-id'); 1324 1325 // $(this).addClass("active").siblings().removeClass("active"); 1326 // d.eq(i).stop().show().siblings().stop().hide(); 1327 // d2.eq(i).stop().show().siblings().stop().hide(); 1328
1329 // // // 妿æç®æ IDï¼åæ»å¨å°è¯¥å ç´ 1330 // // if (scrollTargetId) { 1331 // // var targetElement = $('#' + scrollTargetId); 1332 // // $('html, body').animate({ 1333 // // scrollTop: targetElement.offset().top - 50 1334 // // }, 400); 1335 // // } 1336 1337 1338 // var types1 = []; 1339 // $('#content .tab-box:eq(' + i + ') .list .item').each(function () { 1340 // types1.push($(this)); 1341 // }); 1342 // // console.log(types1.length); 1343 // if (types1.length < 6 || types1.length == 6) { 1344 // $(".products2-page .tab-box:eq(" + i + ") .more-primary14").hide(); 1345 // } 1346 1347 // }); 1348 1349 // // 产å触å 1350 // $(".products2-page .page-down .list .item .item-box .text-box .item-main .item-li").hover(function () { 1351 // var i = $(this).index(); 1352 // $(this).addClass("active").siblings().removeClass("active"); 1353 // // $(this).parents('.item').find('.public-img-main .public-img').eq(i).stop().show().siblings().stop().hide(); 1354 // $(this).parents('.item').find('.public-img-main .img').eq(i).stop().addClass('active').siblings().stop().removeClass('active'); 1355 // }); 1356 1357 // // ç¹å»æ¥çæ´å¤ 1358 // $('.products2-page .more-primary14').click(function () { 1359 // if ($(this).hasClass('active1')) { 1360 // this.innerHTML = "<span class='more-primary-str'>Show More</span><span class='more-primary-circle' > <img src='/application/home/view/default/images/select-icon.png' alt=''></span>"; 1361 // $(this).removeClass('active1'); 1362 // $(this).parents('.tab-box').removeClass('active'); 1363 // } else { 1364 // this.innerHTML = "<span class='more-primary-str'>Show Less</span><span class='more-primary-circle' > <img src='/application/home/view/default/images/select-icon.png' alt=''></span>"; 1365 // $(this).toggleClass('active1'); 1366 // $(this).parents('.tab-box').addClass('active'); 1367 // } 1368 // }); 1369 1370 // // å¼ç¨é¼ æ è·éææ 1371 // if ($(window).width() > 991) { 1372 // /**/ 1373 // imousehover($('.fixed-zhl2'), $('.products2-page .img')); 1374 // /**/ 1375 // } 1376 1377 // // å¼ç¨é¼ æ è·éææ 1378 // if ($(window).width() > 991) { 1379 // /**/ 1380 // imousehover($('.fixed-zhl2'), $('.products3-page .forview3 .public-img')); 1381 // /**/ 1382 // } 1383 1384} 1385products2Page(); 1386 1387 1388 1389// 产åä¸å¿-软件平å°-产å 1390function products3Page() { 1391 // 产å触å 1392 $(".products3-page .list .item .item-box .text-box .item-main .item-li").hover(function () { 1393 var i = $(this).index(); 1394 $(this).addClass("active").siblings().removeClass("active"); 1395 $(this).parents('.item').find('.public-img-main .public-img').eq(i).stop().show().siblings().stop().hide(); 1396 }); 1397} 1398products3Page(); 1399 1400// 产åä¸å¿-软件平å°-详æ 1401function productsDD5Page() { 1402 $(".products-dd5-swiper").each(function () { 1403 var len = $(this).find(".swiper-slide").length; 1404 if (len >= 3) { 1405 $(this).addClass("active"); 1406 } 1407 1408 var slide = new Swiper('.products-dd5-swiper', { 1409 speed: 900, 1410 slidesPerView: 3, 1411 preventLinksPropagation: false, // 黿¢ç¹å»äºä»¶å泡 1412 watchOverflow: true, 1413 pagination: { 1414 el: '.products-dd5-swiper .swiper-pagination', 1415 clickable: true, 1416 }, 1417 breakpoints: { 1418 480: { 1419 slidesPerView: 1.3, 1420 }, 1421 990: { 1422 slidesPerView: 2, 1423 }, 1424 1024: { 1425 slidesPerView: 3, 1426 }, 1427 }, 1428 }); 1429 }); 1430} 1431productsDD5Page(); 1432 1433 1434 1435// 产åä¸å¿-ä¸ä¸æ©å£°-鳿±-äº®ç¹ 1436function products13Page() { 1437 // 循ç¯å¤æä¸ªæ°å ç¶æ 1438 let num = document.querySelectorAll('.products1-3-page .list'); 1439 num.forEach((num, index) => { 1440 let itemCount = num.children.length; 1441 if (itemCount >= 5) { 1442 $(num).addClass('active') 1443 } 1444 }); 1445} 1446products13Page(); 1447 1448// è§£å³æ¹æ¡-详æ -ç¸å ³äº§å 1449function productsD4Page() { 1450 // 循ç¯å¤æä¸ªæ°å ç¶æ 1451 let num = document.querySelectorAll('.solution-d4-page .list'); 1452 num.forEach((num, index) => { 1453 let itemCount = num.children.length; 1454 if (itemCount >= 2) { 1455 $(num).addClass('active2') 1456 } 1457 if (itemCount >= 3) { 1458 $(num).addClass('active3') 1459 } 1460 if (itemCount >= 4) { 1461 $(num).addClass('active') 1462 } 1463 }); 1464} 1465productsD4Page(); 1466 1467 1468// æç´¢ç»æ 1469function searchPage() { 1470 // ææºä¸å¢å å¼¹åºè¿æ»¤é项class 1471 $(document).on("click", ".js-open-search-filter-btn", function (e) { 1472 $("body").addClass("mobile-search-filter"); 1473 }).on("click", ".js-close-search-filter-btn", function (e) { 1474 $("body").removeClass("mobile-search-filter"); 1475 }); 1476
1477 $(document).on("click", '#filter-apply-mobile', function (e) { 1478 $("body").removeClass("mobile-search-filter"); 1479 }); 1480} 1481searchPage(); 1482 1483 1484 1485// é¼ æ è·é 1486function imousehover(obj, obj2) { 1487 // é¼ æ è·éææ 1488 const isPad = 1489 navigator.maxTouchPoints && 1490 navigator.maxTouchPoints > 2 && 1491 /MacIntel/.test(navigator.platform); 1492 1493 class CustomCursor { 1494 constructor(hoverItems) { 1495 this.cursor = obj; 1496 this.cursorInner = $(".inner", this.cursor); 1497 this.pageX = 0; 1498 this.pageY = 0; 1499 this.move = true; 1500 this.hoverItems = hoverItems; 1501 } 1502 1503 init() { 1504 if (this.cursor[0]) { 1505 this.initCursor(); 1506 this.initHovers(); 1507 this.initMove(); 1508 } 1509 } 1510 1511 initCursor() { 1512 this.pageX = $(window).width() / 2 - 50; 1513 this.pageY = $(window).height() / 2 - 50; 1514 $(document).on("mousemove", (e) => { 1515 this.pageX = e.clientX; 1516 this.pageY = e.clientY; 1517 }); 1518 const render = () => { 1519 if (this.move) { 1520 window.TweenMax.to(this.cursor, 0.5, { 1521 x: this.pageX, 1522 y: this.pageY, 1523 ease: "Power1.easeOut", 1524 }); 1525 } 1526 requestAnimationFrame(render); 1527 }; 1528 render(); 1529 } 1530 1531 initHovers() { 1532 const handleMouseEnter = (e) => { 1533 window.TweenMax.to(this.cursor, 0.5, { 1534 scale: 1, 1535 opacity: 1, 1536 ease: "Power1.easeOut", 1537 }); 1538 e.stopPropagation(); 1539 }; 1540 const handleMouseLeave = () => { 1541 window.TweenMax.to(this.cursor, 0.5, { 1542 scale: 0, 1543 opacity: 0, 1544 ease: "Power1.easeOut", 1545 }); 1546 1547 // this.cursor.removeClass(function (i, v) {return v.replace('cursor', '');}); 1548 }; 1549 this.hoverItems.each(function (i, item) { 1550 $(item).on("mouseenter", handleMouseEnter); 1551 $(item).on("mouseleave", handleMouseLeave); 1552 }); 1553 } 1554 initMove() { 1555 const handleMouseMove = (e) => { 1556 if ($(e.target).closest('.owl-nav')[0]) { 1557 this.initCircle(e.target, "[class*='owl-']"); 1558 } else if ($(e.target).closest('.searchOnOff')[0]) { 1559 this.initCircle(e.target, ".searchOnOff"); 1560 } else { 1561 window.TweenMax.to(this.cursor, 0.5, { 1562 scale: 1, 1563 // background: 'yellow', 1564 ease: "Power1.easeOut", 1565 }); 1566 window.TweenMax.to(this.cursorInner, 0.5, { 1567 opacity: 1, 1568 ease: "Power1.easeOut", 1569 }); 1570 this.move = true; 1571 } 1572 if ($(e.currentTarget).hasClass('ff_topSlider') || $(e.currentTarget).parents('.mlist.project')[0]) { 1573 // const sxPos = (e.clientX / window.innerWidth) * 200 - 100; 1574 // this.cursor.toggleClass("next", sxPos > 0); 1575 this.cursor.addClass('more'); 1576 } else if ($(e.currentTarget).hasClass('videom') || $(e.currentTarget).parents('.bodyvideom')[0]) { 1577 this.cursor.addClass('play'); 1578 } else if ($(e.currentTarget).parents('.team_tabs')[0]) { 1579 this.cursor.addClass('drag'); 1580 } else if ($(e.currentTarget).hasClass('post-next')) { 1581 this.cursor.addClass('next'); 1582 } 1583 }; 1584 1585 this.hoverItems.each(function (i, item) { 1586 $(item).on("mousemove", item, handleMouseMove); 1587 }); 1588 } 1589 initCircle(target, elm) { 1590 var _sTop = $(window).scrollTop(); 1591 var _offset = Math.min($(target).closest(elm).outerWidth(), $(target).closest(elm).outerHeight()); 1592 var _x = Math.round($(target).closest(elm).offset().left + _offset / 2); 1593 var _y = Math.round($(target).closest(elm).offset().top + _offset / 2 - _sTop); 1594 this.move = false;
1595 window.TweenMax.to(this.cursor, 0.5, { 1596 scale: 0.5, 1597 x: _x, 1598 y: _y, 1599 background: 'rgba(255,255,255,0)', 1600 ease: "Power1.easeOut", 1601 }); 1602 window.TweenMax.to(this.cursorInner, 0.5, { 1603 opacity: 0, 1604 ease: "Power1.easeOut", 1605 }); 1606 } 1607 } 1608 1609 if (!isPad) { 1610 // $('body').append('<div class="cursor"><div class="inner">More</div></div>'); 1611 const cursor = new CustomCursor(obj2); 1612 cursor.init(); 1613 } 1614} 1615 1616 1617// éç¹å®ä½ 1618if ($(".page-top-menu").length) { 1619 var myscroll = new hScroll({ 1620 nav1: ".page-top-menu .menu-main .menu-location", 1621 nav2: '.box1', 1622 check: 'active', 1623 }); 1624} 1625 1626function updateContentHeight() { 1627 // éæ°åå§å hScroll å®ä¾ 1628 setTimeout(function () { 1629 hscrollInstance = new hScroll({ 1630 nav1: ".page-top-menu .menu-main .menu-location", 1631 nav2: '.box1', 1632 check: 'active', 1633 }); 1634 }, 1000); 1635} 1636$('.products2-page .btn-container').click(updateContentHeight); 1637 1638 1639// å 页ban夿 1640if ($(".page-ban").length) { 1641 $('.page-ban .slogan .text-body').each(function () { 1642 var pElement = $(this).find('p'); 1643 if (pElement.text().trim() === '') { 1644 $(this).parents('.page-ban').addClass('m-center'); 1645 $(this).remove(); 1646 } 1647 }); 1648} 1649 1650 1651window.addEventListener("load", function () { 1652 // 产åä¸å¿-å ¨æ°åä¼è®®ç³»ç»ä¸»æº-详æ 1653 function productsd1Page() { 1654 // å¼ç¨é¼ æ è·éææ 1655 if ($(window).width() > 991) { 1656 /**/ 1657 imousehover($('.fixed-zhl2'), $('.products-d1-page .public-img-main')); 1658 /**/ 1659 } 1660 1661 // å¼ç¨é¼ æ è·éææ 1662 if ($(window).width() > 991) { 1663 /**/ 1664 imousehover($('.fixed-zhl2'), $('.products3-page .forview3 .public-img')); 1665 /**/ 1666 } 1667 } 1668 productsd1Page(); 1669 1670 // layuiå¾çç¹å»æ¾å¤§ 1671 if ($(".layer-img").length) { 1672 layui.use(['layer'], function (args) { 1673 var layer = layui.layer; 1674 layer.photos({ 1675 photos: '.layer-img', 1676 // anim: 5 //0-6çéæ©ï¼æå®å¼¹åºå¾çå¨ç»ç±»åï¼é»è®¤éæºï¼è¯·æ³¨æï¼3.0ä¹åççæ¬ç¨shiftåæ°ï¼ 1677 }); 1678 1679 }); 1680 } 1681}) 1682 1683 1684// è¿æ¸¡å¨ç» 1685var wH = window.innerHeight, 1686 wW = window.innerWidth; 1687 1688function wowFun(selector, effectClass, threshold) { 1689 var box = $(selector); 1690 1691 if (threshold > 1 || threshold < 0) { 1692 threshold = 1; 1693 } 1694 1695 if (box.length > 0) { 1696 box.each(function () { 1697 var _this = $(this), 1698 topNum = _this.offset().top, 1699 scrollTop = $(window).scrollTop() + (wH * threshold), 1700 delay = parseFloat(_this.data('delay')) * 1000, // Convert to milliseconds 1701 effect = _this.data('effect'); 1702 1703 // Initial setup with hidden state and animation delay 1704 _this.addClass('animated1'); 1705 _this.css({ 1706 'visibility': 'hidden', 1707 'opacity': '0', 1708 'animation-delay': delay + 'ms' 1709 }); 1710 1711 function toggleAnimation() { 1712 var scrollTop = $(window).scrollTop(); 1713 var scrollPosition = scrollTop + (wH * threshold); 1714 1715 if (scrollPosition > topNum) { 1716 setTimeout(function () { 1717 _this.addClass(effectClass); 1718 _this.addClass(effect); 1719 _this.css({ 1720 'visibility': 'inherit', 1721 'opacity': '1' 1722 }); 1723 }, delay); 1724 } else { 1725 _this.removeClass(effectClass); 1726 _this.removeClass(effect); 1727 _this.css({ 1728 'visibility': 'hidden', 1729 'opacity': '0' 1730 }); 1731 } 1732 } 1733 1734 toggleAnimation(); // Initial check when the function is called 1735 1736 $(window).on('scroll', toggleAnimation); 1737 }); 1738 } 1739} 1740 1741// Usage example: 1742wowFun(".wow", "scrollToTop animated", 1); 1743// wowFun(".scrollAnimate", "scrollToTop animated", 1);
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.