(function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function () { var clientWidth = docEl.clientWidth; if (!clientWidth) return; if (clientWidth >= 750) { docEl.style.fontSize = '100px'; } else { docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'; } }; if (!doc.addEventListener) return; win.addEventListener(resizeEvt, recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false); })(document, window); (function () { if (typeof (WeixinJSBridge) == "undefined") { document.addEventListener("WeixinJSBridgeReady", function (e) { setTimeout(function () { WeixinJSBridge.invoke('setFontSizeCallback', { "fontSize": 0 }, function (res) { // alert(JSON.stringify(res)); }); }, 0); }); } else { setTimeout(function () { WeixinJSBridge.invoke('setFontSizeCallback', { "fontSize": 0 }, function (res) { // alert(JSON.stringify(res)); }); }, 0); } })(); var video = document.getElementById("btTech_video") $(function () { // $('#header').load('share-head.html'); // $('#footer').load('share-foot.html'); // //banner轮播 // var bannerSwiper = new Swiper('.banner-swiper',{ // autoplay:true, // loop:true, // pagination: { // el: '.swiper-pagination', // clickable :true, // }, // navigation: { // nextEl: '.swiper-button-next', // prevEl: '.swiper-button-prev', // }, // }) //腰部banner轮播 var wastbannerSwiper = new Swiper('.banner-wast-swiper',{ autoplay:3000, loop:true, nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', pagination: '.swiper-pagination', paginationClickable :true, // pagination: { // el: '.swiper-pagination', // clickable :true, // }, // navigation: { // nextEl: '.swiper-button-next', // prevEl: '.swiper-button-prev', // }, }) if (navigator.userAgent.indexOf("MSIE") > 0) { if (navigator.userAgent.indexOf("MSIE 6.0") > 0) { $(".prompt-box").show() } if (navigator.userAgent.indexOf("MSIE 7.0") > 0) { $(".prompt-box").show() } if (navigator.userAgent.indexOf("MSIE 8.0") > 0) { $(".prompt-box").show() } if (navigator.userAgent.indexOf("MSIE 9.0") > 0) { $(".prompt-box").show() } } $(".prompt-close").click(function (e) { e.stopPropagation(); $(".prompt-box").hide() }) $(".hw_prize_bg1").click(function () { window.open('https://www.huawei.com/cn/news/2020/6/oceanstor-dorado-wins-best-of-show-award-at-interop-tokyo') }) $(".hw_prize_bg2").click(function () { window.open('https://e.huawei.com/cn/products/storage/topic/huawei-nof-one-step-to-storage-network-innovation') }) $(".hw_prize_bg3").click(function () { window.open('https://www.gartner.com/reprints/huawei-technologies-co-ltd---p-s?id=1-27NKFRWE&ct=211015&st=sb') }) if (window.innerWidth > 1000) { $(".wia_item").hover(function () { // console.log(window.innerWidth) $(".wia_item").removeClass('wia_item_hover') $(this).addClass('wia_item_hover') }) } else { $(".wia_item").click(function () { // console.log(window.innerWidth) $(".wia_item").removeClass('wia_item_hover') $(this).addClass('wia_item_hover') }) } $(".pas_more").click(function () { if (window.innerWidth > 1000) { var height = $(".pas_group").height() // var default_height = 360 * 2 + 100 var default_height = $(".pc .pas_item").height() console.log(height) console.log(default_height) // $(".pas_group").css('height', $(".pc .pas_item").height()+28) // console.log(default_height) // return false } else { var height = $(".mb.pas_group").height() var default_height = 751 } if (height > default_height) { $(".pas_group").css('height', default_height) } else { $(".pas_group").css('height', 'auto') } }) var ri_num = 0; $(".ri_swiper_item").click(function () { if (window.innerWidth > 1000) { $(".ri_swiper_item").removeClass("ri_swiper_item_click") $(this).addClass("ri_swiper_item_click") $(".relinfo_group").addClass("hidden") ri_num = $(this).attr("data-num") $("#ri" + ri_num).removeClass('hidden') } }) $(".relinfo_more").click(function () { if (window.innerWidth > 1000) { var height = $('#ri' + ri_num).height() var default_height = $('#ri' + ri_num + ".relinfo_group").find(".ri_item").height() * 5 if (height > 450) { $('#ri' + ri_num).css('height', '450px') } else { $('#ri' + ri_num).css('height', 'auto') } } else { var height = $('#ri' + ri_num).height() var default_height = $('#ri' + ri_num + ".relinfo_group").find(".ri_item").height() * 10 if (height > default_height) { $('#ri' + ri_num).css('height', default_height) } else { $('#ri' + ri_num).css('height', 'auto') } console.log(height) console.log(default_height) } }) new Swiper('.swiper-container-media', { slidesPerView: '1', // centeredSlides: true, loop: true, // slidesPerGroup: 1, //定义1张图片为一组 nextButton: '.media-button-next', prevButton: '.media-button-prev', observer: true, observeParents: true, }) if (window.innerWidth > 1000) { $(".pas_item").hover(function () { $(".pas_item").removeClass("pas_item_hover") $(this).addClass("pas_item_hover") }, function () { $(".pas_item").removeClass("pas_item_hover") }) new Swiper('.swiper-container-hotcases', { slidesPerView: 'auto', // centeredSlides: true, // loop: true, // slidesPerGroup: 1, //定义1张图片为一组 spaceBetween: 60, nextButton: '.hotcases-button-next', prevButton: '.hotcases-button-prev', observer: true, observeParents: true, }) $(".pas_item").hover(function () { $(".pas_item").removeClass("pas_item_hover") $(this).addClass("pas_item_hover") }, function () { $(".pas_item").removeClass("pas_item_hover") }) } else { new Swiper('.swiper-container-wch', { slidesPerView: 'auto', centeredSlides: true, autoplay : 5000, // loop: true, // slidesPerGroup: 1, //定义1张图片为一组 nextButton: '.wch-button-next', prevButton: '.wch-button-prev', pagination: '.swiper-pagination-wch', spaceBetween: 40, observer: true, observeParents: true, }) $(".hn_item").click(function () { $(".hn_item").find('.hn_arrow').hide() $(this).find('.hn_arrow').fadeIn('fast') }) } })