(function() { // 娣诲姞绫诲悕 if ($('.secondDiv .SMBsolutionList').length > 0 && $('html,body').width() > 768) { for (var i = 0; i < $('.SMBsolutionList li').length; i++) { if ((i + 1) % 2 == 0) { $('.SMBsolutionList li').eq(i).addClass('SMB_fff'); } else { $('.SMBsolutionList li').eq(i).addClass('SMB_f5f'); } } } })(); (function() { // 闄愬埗瀛楁暟 function lengthCile(obj, num) { obj.each(function(i, e) { $(e).css({ height: 'auto', 'max-height': 'none' }); if ($(e).text().length > num) { $(e).text($(e).text().slice(0, num) + '...'); } }) } lengthCile($('#newsWrap .proJouConListTextp'), 60); //鏂伴椈璧勮 lengthCile($('.secondDiv .secondSolveConListText p'), 60); // 鎴愬姛妗堜緥 lengthCile($('#Operational.secondDiv .techSolveConListText p'), 60); // 鎴愬姛妗堜緥 lengthCile($('.secondDiv .indSoluListText'), 60); // 浼佷笟绾т骇鍝佷骇鍝佸垎绫诲瓧鏁伴檺鍒 lengthCile($('#top_level_planning .serviceLevelConImgp'), 60); // 鏈嶅姟浜у搧鍒嗙被瀛楁暟闄愬埗 lengthCile($('.become_partners.secondDiv .secondSolveConListText h6'), 30); // 娓犻亾鏂伴椈瀛楁暟闄愬埗 lengthCile($('#BaseSearch .searchResultList li .searchResultListTex'), 150); // 鎼滅储椤甸潰鎻忚堪瀛楁暟闄愬埗 lengthCile($('#Focus_Moment .focusListBox li .focusListBoxH6'), 120); // 鎼滅储椤甸潰鎻忚堪瀛楁暟闄愬埗 lengthCile($('#Company_history .hist_boxListBox .histDot'), 100); // 鍙戝睍鍘嗙▼瀛楁暟闄愬埗 // 妯℃澘椤甸潰閮ㄥ垎瀛楁暟闄愬埗 lengthCile($('#SetTemplate #succWrapPC .techSolveConListText p,#SetTemplate .technicalSolve:not(.newSloveBox) .techSolveConListText p'), 60); // 瑙e喅鏂规\鎴愬姛妗堜緥缁勪欢 lengthCile($('#SetTemplate #succWrapH5 .techH5SuccText p,#SetTemplate .techH5Succ.succTechH5:not(.newSloveBox) .techH5SuccText p'), 60); // 瑙e喅鏂规\鎴愬姛妗堜緥缁勪欢 lengthCile($('.newSloveBox .techSolveConListText p'), 180); // 娣诲姞闄愬埗瀛楁暟 lengthCile($('#Operational .techH5SuccCon .swiper-slide .techH5SuccText p'), 120); })(); (function() { $('#crumbs a,.solutionGoList a').on({ mouseenter: function() { $(this).addClass('fontRedA'); }, mouseleave: function() { $(this).removeClass('fontRedA'); } }) // pc绔煡鐪嬪叏閮ㄦ牱寮忔敼鍙 $('.secondGoMore.gotoFontred,#SetTemplate .SMBsolutionListGo').each(function(i, e) { $(e).on({ mouseenter: function() { $(e).addClass('fontRed'); $(e).find("img").attr("src", "/images/proJouConListTextGoHover.png"); }, mouseleave: function() { $(e).removeClass('fontRed'); $(e).find("img").attr("src", "/images/proJouConListTextGo.png"); } }) }) $('#newsWrap li,.techapplicConList li,#New_IT_alliance .SMBsolutionListGo').on({ mouseenter: function() { $(this).find('.gotoFontred').addClass('fontRed'); $(this).find('.gotoFontred').find("img").attr("src", "/images/proJouConListTextGoHover.png"); }, mouseleave: function() { $(this).find('.gotoFontred').removeClass('fontRed'); $(this).find('.gotoFontred').find("img").attr("src", "/images/proJouConListTextGo.png"); } }) })() // 鎼滅储椤甸潰js ; (function() { if (window.navigator.userAgent.indexOf("MSIE") >= 1) { $('input:radio').css({ 'border': 0 }); } $('.secondDiv .extListMore .extListMoreIcon').click(function() { var list = $(this).parent().next('.extListMoreList'); if ($(this).attr('data-drap') == 'false') { list.css({ height: 'auto' }); $(this).attr('data-drap', 'true'); $(this).find('.moreIconadd').hide(); $(this).find('.moreIconslice').show(); $(this).find('span').text('鏄剧ず澶?鏉?..'); } else if ($(this).attr('data-drap') == 'true') { list.css({ height: '165px' }); $(this).attr('data-drap', 'false'); $(this).find('.moreIconadd').show(); $(this).find('.moreIconslice').hide(); $(this).find('span').text('鏄剧ず鏇村...'); } }) $('.secondDiv #txtSearch').focus(function() { $('.secondDiv .searchdrapList').slideToggle('fast'); }).blur(function() { $('.secondDiv .searchdrapList').slideToggle('fast'); }) $('.secondDiv .searchdrapList').delegate('li', 'click', function() { $('.secondDiv #txtSearch').val($(this).text()) }) // 楂樼骇鎼滅储鏁堟灉浠g爜 $('.secondDiv .inputTextBox .cheseInputChn').click(function() { if ($(this).attr('data-input') == 0) { $('.secondDiv .cheseListOne').show(); $('.secondDiv .cheseListTwo').hide(); } else if ($(this).attr('data-input') == 1) { $('.secondDiv .cheseListOne').hide(); $('.secondDiv .cheseListTwo').show(); } }) $('.secondDiv .extListMoreIcon').on({ mouseenter: function(e) { $(this).addClass('redactive'); $(this).find(".moreIconadd").attr("src", "/images/searchextListmporeaddhover.png"); $(this).find(".moreIconslice").attr("src", "/images/searchextListmporeaslichover.png"); }, mouseleave: function(e) { $(this).removeClass('redactive'); $(this).find(".moreIconadd").attr("src", "/images/searchextListmporeadd.png"); $(this).find(".moreIconslice").attr("src", "/images/searchextListmporeaslic.png"); } }) })() // 浜岀骇椤甸潰鏁翠綋js鍖呭洿鍑芥暟 var secondscriptsJS = function() { // 鍒ゆ柇ie8鏉′欢 var ie8Falg = false; //榛樿涓嶆槸ie8 if ($('body').hasClass('ie8')) { ie8Falg = true; } if ($('#newsWrap').length > 0) { $('#newsWrap .proJouConList li').each(function(i, e) { if ((i + 1) % 2 !== 0) { $(e).css({ 'margin-right': '5%' }) } }) } // 鍒ゆ柇楂樺害鍙樺寲鍏叡鍑芥暟 function isliHight(father, boy) { $(father).find(boy).css({ height: 'auto' }); var heightarr = [], lastHeight = $(father).find(boy).eq(0).height(); $(father).find(boy).each(function(i, e) { var _height = $(e).height(); heightarr.push(_height); }) for (var i = 1; i < heightarr.length; i++) { if (heightarr[i] > lastHeight) { lastHeight = heightarr[i]; } } $(father).find(boy).css({ height: lastHeight + 4 + 'px' }); } $('.protechSolveGoMore.gotoFontred,.secondGoMore.gotoFontred').each(function(i, e) { $(e).on({ mouseenter: function() { $(e).addClass('fontRed'); $(e).find("img").attr("src", "/images/proJouConListTextGoHover.png"); }, mouseleave: function() { $(e).removeClass('fontRed'); $(e).find("img").attr("src", "/images/proJouConListTextGo.png"); } }) }) $('.become_partners.secondDiv ul.shandowHoverall li').each(function(i, e) { $(e).on({ mouseenter: function() { $(e).find('.more').css('color', '#e60213'); $(e).find(".more").find('img').attr("src", "/images/proJouConListTextGoHover.png"); }, mouseleave: function() { $(e).find('.more').css('color', '#333'); $(e).find(".more").find('img').attr("src", "/images/proJouConListTextGo.png"); } }) }) $('.SMBsolutionList li').on({ mouseenter: function() { $(this).find('.SMBsolutionListGo').addClass('fontRed'); $(this).find('.SMBsolutionListGo').find("img").attr("src", "/images/proJouConListTextGoHover.png"); }, mouseleave: function() { $(this).find('.SMBsolutionListGo').removeClass('fontRed'); $(this).find('.SMBsolutionListGo').find("img").attr("src", "/images/proJouConListTextGo.png"); } }) $('.SMBsolutionList li .SMBsolutionListGo a').on('touchend', function() { $(this).find("img").attr("src", "/images/proJouConListTextGoHover.png"); }) // 鍥炬枃娑堟伅鍚堝苟js鍑芥暟 // 琛屼笟瑙e喅鏂规鍑芥暟 function industry_solution() { var timer; if (!ie8Falg) { var swiperSolve = new Swiper('.swiper-containerSolu', { grabCursor: true, pagination: '.industrySoluConH5Btn', paginationClickable: true }); } var setHeight = function() { if ($('html,body').width() > 768) { isliHight('.secondSolveConList', 'li'); //鎴愬姛妗堜緥PC绔珮搴﹁皟鑺 } else { ismobilefalg = false; $('.secondSolveConList li').css({ height: 'auto' }); } isliHight('.industrySoluList', 'li'); //琛屼笟瑙e喅鏂规楂樺害璋冭妭 isliHight('.industrySoluConH5Box', '.indSoluListText'); //琛屼笟瑙e喅鏂规楂樺害璋冭妭 isliHight('.industrySoluConH5Box', '.swiper-slide'); clearTimeout(timer); } timer = setTimeout(setHeight, 200); if (!ie8Falg) { window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); swiperSolve.onResize(); }, false); } else { window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } } // SMB瑙e喅鏂规 function SMB_solution() { // 鍏叡js锛屽浘鏂囧舰寮忓紩鐢 ; (function() { var timer, isPCfalg = false, lengthfalg = true; var swiperSolve; $('.SMBsolutionList li').length > 6 ? '' : lengthfalg = false; var setHeight = function() { if ($('html,body').width() > 768) { if ($('#newsWrap').length > 0) { isliHight('#newsWrap .proJouConList', 'li:eq(0),li:eq(1)'); isliHight('#newsWrap .protechH5EnterList', 'li:eq(2),li:eq(3)'); } if (isPCfalg) { $('.SMBsolutionList').removeClass('swiper-wrapper').attr('style', ''); $('.SMBsolutionList li').removeClass('swiper-slide').css({ width: '100%' }); if (!ie8Falg) { swiperSolve.destroy(); swiperSolve = null; } ulHeight(); lengthfalg ? isdrag() : ''; lengthfalg ? $('.SMBsolutionList li').css({ height: '232px' }) : $('.SMBsolutionList li').css({ height: 'auto' }); } isPCfalg = false; } else { if ($('#newsWrap').length > 0) { $('#newsWrap .proJouConList li').css({ height: 'auto' }); } if (!isPCfalg) { $('.SMBsolutionList').addClass('swiper-wrapper'); $('.SMBsolutionList li').addClass('swiper-slide').removeClass('SMB_fff').removeClass('SMB_f5f'); if (!ie8Falg) { swiperSolve = new Swiper('.swiper-containerSMB', { grabCursor: true, pagination: '.SMBsolutionH5Btn', paginationClickable: true }); } $('.SMBsolutionList').css({ height: 'auto' }); } isPCfalg = true; isliHight('.SMBsolutionList', 'li'); //SMB瑙e喅鏂规楂樺害璋冭妭 } // 涓埆鍗曠嫭娣诲姞鍐呭 isliHight('.secondSolveConList', 'li'); //鎴愬姛妗堜緥PC绔珮搴﹁皟鑺 clearTimeout(timer); } timer = setTimeout(setHeight, 200); if (!ie8Falg) { window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); }, false); } else { window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } // 璁剧疆ul楂樺害 var openFlag = false; function ulHeight() { for (var i = 0; i < $('.SMBsolutionList li').length; i++) { if ((i + 1) % 2 == 0) { $('.SMBsolutionList li').eq(i).addClass('SMB_fff'); } else { $('.SMBsolutionList li').eq(i).addClass('SMB_f5f'); } } lengthfalg ? $('.SMBsolutionList').css({ height: '936px' }) : ''; } if ($('html,body').width() > 768) { setTimeout(ulHeight, 300); } // 璁板綍鍘熺姸鎬 function isdrag() { if (!openFlag) { $('.SMBsolutionList').css({ height: '936px' }); $('.SMBListopen span').text('灞曞紑鏇村'); $('.openGo').show(); $('.closeGo').hide(); } else { $('.SMBsolutionList').css({ height: 'auto' }); $('.SMBListopen span').text('鐐瑰嚮鏀惰捣'); $('.openGo').hide(); $('.closeGo').show(); } } $('.SMBListopen').click(function() { if (!openFlag) { openFlag = true; $('.SMBsolutionList').css({ height: 'auto' }); $('.SMBListopen span').text('鐐瑰嚮鏀惰捣'); $('.openGo').hide(); $('.closeGo').show(); } else { openFlag = false; $('.SMBsolutionList').css({ height: '936px' }); $('.SMBListopen span').text('灞曞紑鏇村'); $('.openGo').show(); $('.closeGo').hide(); } }) })() } // 鏂伴《灞侷T瑙勫垝 function top_level_planning() { var timer, isPCgoto = false; function setHeight() { clearTimeout(setHeight); isliHight('.serviceLevelConList', 'li'); isliHight('.secondSolveConList', 'li'); //鎴愬姛妗堜緥PC绔珮搴﹁皟鑺 isliHight('.secondSolveConList li', 'h6'); if ($('html,body').width() < 768 && !isPCgoto) { for (var i = 0; i < $('.secondDiv.onlie_service .serviceLevelConList li').length; i++) { if (i % 2 == 0) { $('.secondDiv.onlie_service .serviceLevelConList li').eq(i).css({ 'margin-right': '2.856%' }); } } isPCgoto = true; } else if ($('html,body').width() > 768) { $('.secondDiv.onlie_service .serviceLevelConList li').css({ 'margin-right': '0' }); isPCgoto = false; } } setTimeout(setHeight, 200); if (!ie8Falg) { window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); }, false); } else { window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } } // 鏂颁竴浠f暟鎹腑蹇 function Date_center() { var timer; function setHeight() { isliHight('.secondSolveConList', 'li'); //鎴愬姛妗堜緥PC绔珮搴﹁皟鑺 clearTimeout(setHeight); } setTimeout(setHeight, 200); if (!ie8Falg) { // 鏂颁竴浠f暟鎹畇wiper var mySwiperH5Data = new Swiper('#Date_center .swiper-containerDataH5', { grabCursor: true, paginationClickable: true, nextButton: '#Date_center .swiper-button-next', prevButton: '#Date_center .swiper-button-prev' }) window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); mySwiperH5Data.onResize(); }, false); } else { window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } } // 鏂囨。涓庤蒋浠朵笅杞藉嚱鏁 function Document() { // 娣诲姞鏁版嵁 var oneArrr = []; //鎺у埗绗竴鍒楁樉绀烘暟鎹 var twoArrr = []; //鎺у埗绗簩鍒楁樉绀烘暟鎹 var threeArrr = []; //鎺у埗绗笁鍒楁樉绀烘暟鎹 for (var i = 0; i < $('.kerwordList li').length; i++) { if ((i + 1) % 4 == 0) { $('.kerwordList li').eq(i).css({ 'margin-right': 0 }); } } $('.kerwordList li').click(function() { $('.searchDocumentInput').val($(this).text()) }) $('.documentWrapNav li').eq(2).css({ float: 'right' }); //鐐瑰嚮鍒囨崲鐨勬椂鍊欎笉鏂殑璇锋眰鏁版嵁 // 娣诲姞涓€绾ф暟鎹 //for(var i = 0; i < 20; i ++){ // oneArrr.push('浜戣绠?+i) //} //// 娣诲姞浜岀骇鏁版嵁 //for(var i = 0; i < 20; i ++){ // twoArrr.push('浜岀骇浜戣绠?+i) //} //// 娣诲姞涓夌骇鏁版嵁 //for(var i = 0; i < 20; i ++){ // threeArrr.push({name:'涓夌骇浜戣绠?+i,href:'#'}) //} var actnum = 0, actTwo = 0, actThr = 0; //閫夋嫨涓€绾ф爮鐩 璇锋眰浜岀骇涓夌骇鏁版嵁 $('.documentWrapNav li').click(function() { if ($(this).index() == 2) { $('.documentWrapCon').hide(); $('.documentWrapSearch').show(); } else { actnum = 0; actTwo = 0; actThr = 0; $('.documentWrapCon').show(); $('.documentWrapSearch').hide(); actnum = $(this).index(); dataChange(actnum); //dataTwoChange(actTwo); } $('.documentWrapNav li').removeClass('active'); $(this).addClass('active'); }) // 鐐瑰嚮涓€绾т笅浜岀骇鏍忕洰 璇锋眰涓夌骇鏁版嵁 //$('.WrapConBoxone').delegate('li','click',function(){ // actTwo = $(this).index(); // dataTwoChange(actTwo); //}) //// 鐐瑰嚮涓夌骇鏍忕洰璇锋眰鍥涚骇鏁版嵁 //$('.WrapConBoxtwo').delegate('li','click',function(){ // actThr = $(this).index(); // dataThreChange(actThr); //}) // 淇敼鏁版嵁鍑芥暟 function dataChange(index) { $('.documentWrapList').empty(); if (index == 0) { getNextLayerCategory(33538, 3); getNextLayerCategory(33589, 4); } else if (index == 1) { getNextLayerCategory(33539, 3); getNextLayerCategory(33690, 4); } //var datali = ''; //for(var i in oneArrr){ // datali += '
  • '+oneArrr[i]+'
  • ' //} //$('.WrapConBoxone ul').append(datali); } //function dataTwoChange(index){ // $('.WrapConBoxtwo ul,.WrapConBoxthr ul').empty(); // var datali = ''; // for(var i in twoArrr){ // datali += '
  • '+twoArrr[i]+'
  • ' // } // $('.WrapConBoxtwo ul').append(datali); // $('.WrapConBoxone ul li').removeClass('hoveract'); // $('.WrapConBoxone ul li').eq(actTwo).addClass('hoveract'); //} //function dataThreChange(index){ // $('.WrapConBoxthr ul').empty(); // var datali = ''; // for(var i in threeArrr){ // datali += '
  • '+threeArrr[i].name+'
  • ' // } // $('.WrapConBoxthr ul').append(datali); // $('.WrapConBoxtwo ul li').removeClass('hoveract'); // $('.WrapConBoxtwo ul li').eq(actThr).addClass('hoveract'); //} //dataChange(actnum) //dataTwoChange(actTwo); getNextLayerCategory(33538, 3); getNextLayerCategory(33589, 4); } // 鍚堜綔浼欎即璧勬簮涓績 function partner_resource_centre() { var timer, clickfalg = false; if ($('html,body').width() < 768) { for (var i = 0; i < $('.SMBsolutionList li').length; i++) { if ((i + 1) % 2 == 0) { $('.SMBsolutionList li').eq(i).addClass('SMB_fff'); } else { $('.SMBsolutionList li').eq(i).addClass('SMB_f5f'); } } } var setHeight = function() { if ($('html,body').width() < 768) { if (!clickfalg) { $('.company_info .SMBsolutionList').css({ height: $('.company_info .SMBsolutionList li').eq(0).height() + $('.company_info .SMBsolutionList li').eq(1).height() + $('.company_info .SMBsolutionList li').eq(2).height() + 55 + 'px' }) } else { $('.company_info .SMBsolutionList').css({ height: 'auto' }); } } else { $('.company_info .SMBsolutionList').css({ height: 'auto' }); } isliHight('.company_info .proVidConList', 'li') } setTimeout(setHeight, 200); if (!ie8Falg) { // 瑙嗛swiper var mySwiperH5Vid = new Swiper('.secondDiv.company_info .swiper-containerVidH5', { grabCursor: true, paginationClickable: true, pagination: '.secondDiv.company_info .protechH5VidBtnBox' }) window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); if ($('.secondDiv.company_info .swiper-containerVidH5').length > 0) { mySwiperH5Vid.onResize(); } }, false); } else { window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } $('.H5seeMore').click(function() { if (clickfalg) { $('.company_info .SMBsolutionList').css({ height: $('.company_info .SMBsolutionList li').eq(0).height() + $('.company_info .SMBsolutionList li').eq(1).height() + $('.company_info .SMBsolutionList li').eq(2).height() + 55 + 'px' }); $('.company_info .H5seeMore span').find('img').attr('src', '/images/openListmore.png'); $('.company_info .H5seeMore span span').text('灞曞紑鏇村'); clickfalg = false; } else { $('.company_info .SMBsolutionList').css({ height: 'auto' }); $('.company_info .H5seeMore span').find('img').attr('src', '/images/closeListmore.png'); $('.company_info .H5seeMore span span').text('鐐瑰嚮鏀惰捣'); clickfalg = true; } }) } // 鍒ゆ柇鎵ц var classNameArr = ['#industry_solution', '#SMB_solution', '#technology_solution', '#top_level_planning', '#Date_center', '#IT_application', '#software', '#smart-product', '#Enterprise_product', '#Document', '#partner_resource_centre']; var jsFunctionArr = [industry_solution, SMB_solution, SMB_solution, top_level_planning, Date_center, SMB_solution, SMB_solution, SMB_solution, industry_solution, Document, partner_resource_centre]; for (i = 0; i < classNameArr.length; i++) { if ($(classNameArr[i]).length > 0) { jsFunctionArr[i](); } } } // 涓夌骇椤甸潰鐩稿叧js ; (function() { // 鍔炰簨澶刯s $('.officeNav li').click(function() { $('.officeNav li').removeClass('officeAct'); $(this).addClass('officeAct'); $('.officeNav li').find('i').show(); $(this).prev().find('i').hide(); $(this).find('i').hide(); ulShow($(this).index()); }) // 鍒囨崲鍒楄〃 function ulShow(index) { $('.officeListCon .officeListUl').removeClass('offlisUlShow'); $('.officeListCon .officeListUl').eq(index).addClass('offlisUlShow'); $('.pageNumber.officeListUl').removeClass('offlisUlShow'); $('.pageNumber.officeListUl').eq(index).addClass('offlisUlShow'); } // 鍏徃鎬婚儴鍒ゆ柇鏄剧ず鍦板浘 function BJmap() { var map = new BMap.Map("BJmap"); map.centerAndZoom(new BMap.Point(116.318101,39.948767), 20); map.enableInertialDragging(); map.enableScrollWheelZoom(true); var pt = new BMap.Point(116.318101,39.948767); var myIcon = new BMap.Icon("/images/markers_xhr.png", new BMap.Size(19, 24)); var marker = new BMap.Marker(pt, { icon: myIcon }); map.addOverlay(marker); var map1 = new BMap.Map("HZmap"); map1.centerAndZoom(new BMap.Point(117.997776,37.386943), 20); map.enableInertialDragging(); map1.enableScrollWheelZoom(true); var pt1 = new BMap.Point(117.997776,37.386943); var marker1 = new BMap.Marker(pt1, { icon: myIcon }); map1.addOverlay(marker1); } if ($('#Headquarters').length > 0) { BJmap(); } })() // 涓夌骇椤甸潰鎺у埗楂樺害js var threeScriptJs = function() { $('#SetTemplate #newsWrap .proJouConList li:last').addClass('journBoxact'); var ie8Falg = false, timer; //榛樿涓嶆槸ie8 if ($('body').hasClass('ie8')) { ie8Falg = true; } if ($('#newsWrap').length > 0) { $('#newsWrap .proJouConList li').each(function(i, e) { if ((i + 1) % 2 !== 0) { $(e).css({ 'margin-right': '5%' }) } }) } var numTxtlength = 0; // 鍒ゆ柇楂樺害鍙樺寲鍏叡鍑芥暟 function isliHight(father, boy) { $(father).find(boy).css({ height: 'auto' }); var heightarr = [], lastHeight = $(father).find(boy).eq(0).height(); $(father).find(boy).each(function(i, e) { var _height = $(e).height(); heightarr.push(_height); }) for (var i = 1; i < heightarr.length; i++) { if (heightarr[i] > lastHeight) { lastHeight = heightarr[i]; } } $(father).find(boy).css({ height: lastHeight + 4 + 'px' }); } function setHeight() { if ($('#Focus_Moment').length > 0) { isliHight('#Focus_Moment .focusListBox', 'li'); } if ($('#Company_culture').length > 0) { isliHight('#succWrapH5 .techH5SuccCon', '.swiper-slide'); } if ($('#Management').length > 0) { isliHight('#Management .TeamMemberList:eq(0)', 'li:eq(2),li:eq(3)'); } if ($('#Storage').length > 0) { isliHight('#Storage .summaryConPclist', 'li'); isliHight('#Storage .Swiper-summaryCon', 'li'); isliHight('#Storage .storgSuccessC .SuccessWrapList', 'li a'); isliHight('#Storage .storgSuccessC .SuccH5', 'li'); isliHight('#Storage .storgSuccessCNav .navList', 'li'); if (!ie8Falg) { swiperJR.onResize(); swiperYL.onResize(); swiperWL.onResize(); swiperWH.onResize(); swiperZF.onResize(); } } // 鍙戝睍鍘嗙▼閮ㄥ垎 if ($('#Company_history').length > 0) { if ($('body,html').width() > 768) { boxHeight(); } else { $('#Company_history.threeDiv .history_box:last-child').find('.hist_box').css({ height: '0' }); $('.hist_boxList.histAct').parent('.hist_box').css({ height: 'auto' }); boxHeight(); } } // comwareV7閮ㄥ垎JS if ($('#ComwareV7').length > 0) { comware7H(); } //DDQ閮ㄥ垎灞曞紑鏍峰紡 鍦≒C绔缁堝睍寮€ if ($('#DDQApprove').length > 0) { if ($('body,html').width() > 768) { $('#DDQApprove.threeDiv .ApproveBoxList,#DDQApprove.threeDiv .corruptionCo,#DDQApprove.threeDiv .MediaList').show(); $('#DDQApprove.threeDiv .canClick .ClassOneList').show(); //鍏徃鑱旂粶鏂瑰紡涓唴瀹瑰湪pc灞曞紑 } } //璁よ瘉浠g悊鍟 if ($('#RegisterDealer').length > 0) { isliHight('#RegisterDealer .swiper-navlist', 'li'); isliHight('#RegisterDealer .AuthenNavList', 'li'); if ($('body,html').width() > 768) { $('#RegisterDealer.threeDiv .companyWrap').show(); $('#RegisterDealer.threeDiv .liaisonWrap').show(); $('#RegisterDealer.threeDiv .canClick .ClassOneList').show(); //鍏徃鑱旂粶鏂瑰紡涓唴瀹瑰湪pc灞曞紑 $('#RegisterDealer.threeDiv .canClick .uploadOneList').show(); //鍏徃鑱旂粶鏂瑰紡涓唴瀹瑰湪pc灞曞紑 $('#RegisterDealer.threeDiv .uploadWrap').show(); $('#RegisterDealer.threeDiv .ExpandWrap').show(); } } //杩愯惀鍟 if ($('#Operational').length > 0) { isliHight('#Operational .techSolveCon', 'li'); isliHight('#Operational .techH5SuccConBox', '.swiper-slide'); } //鍚堜綔浼欎即涓撳尯 if ($('#AgentServiceStarQuer').length > 0) { isliHight('#AgentServiceStarQuer .obtlistTit', 'li'); isliHight('#AgentServiceStarQuer .obtlistCon', 'li'); isliHight('#AgentServiceStarQuer .AgentListUl', 'li'); isliHight('#AgentServiceStarQuer .navBoxList', 'li'); isliHight('#AgentServiceStarQuer .AuthenNavList', 'li'); isliHight('#AgentServiceStarQuer .AuthenNavList', 'li'); if ($('body,html').width() > 768) { $('#AgentServiceStarQuer.threeDiv .canClick .ClassOneList').show(); $('#AgentServiceStarQuer.threeDiv .ApproveH2Border .companyWrap').show(); $('#AgentServiceStarQuer.threeDiv .baseInfoWrap').show(); $('#AgentServiceStarQuer.threeDiv .uploadWrap').show(); $('#AgentServiceStarQuer.threeDiv .uploadOneList').show(); } } // 娓犻亾鏀跨瓥 if ($('#ProAnn.Channel_policy').length > 0) { // 瀵艰埅楂樺害鎺у埗 isliHight('#ProAnn.Channel_policy .officeConBox .officeNav', 'li'); } // 澶фā鏉块〉闈 if ($('#SetTemplate').length > 0) { isliHight('#SetTemplate .swiper_SetSlove', '.swiper-slide'); isliHight('#SetTemplate .ListNavList li', 'span'); if ($('html').width() > 768) { isliHight('#SetTemplate .serversCon .applicationMainOutTextBox', 'ul'); } else { $('#SetTemplate .serversCon .applicationMainOutTextBox ul').css({ height: 'auto' }); } isliHight('#SetTemplate .technicalSolve:eq(0):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(1):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(2):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(3):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(4):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(5):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(6):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(7):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(8):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(9):not(.newSloveBox) .techSolveConList', 'li'); isliHight('#SetTemplate .SDNProtech .techH5Succ', '.succSysBox'); numTxtlength = 0; $('.serversConTextBox p').each(function(i, ev) { numTxtlength += Number($(ev).height() + 36); }) if ((numTxtlength - 36) < 216) { $('.serverClick').hide(); } else { $('.serverClick').show(); } } // 绠$悊鍥㈤槦 if ($('#Management').length > 0) { isliHight('#Management .TeamMemberList', 'li'); } // 杩愯惀鍟嗕笓鍒婇儴鍒嗗簳閮ㄥ榻 if ($('.serversCon.Operational').length > 0) { isliHight('.serversCon.Operational .secondWrapBox .secondWrapBoxAdd_2 .OperationalLastTextBox', 'h2'); isliHight('.serversCon.Operational .secondWrapBox .secondWrapBoxAdd_2 .OperationalLastTextBox', 'p'); } } timer = setTimeout(setHeight, 200); var swiperJR, swiperYL, swiperWL, swiperWH, swiperZF; if (!ie8Falg) { //鍒囨崲閮ㄥ垎 swiperYL = new Swiper('.swiper-YL', { grabCursor: true, pagination: '.SuccesYLBtn', paginationClickable: true }); swiperJR = new Swiper('.swiper-JR', { grabCursor: true, pagination: '.SuccesJRBtn', paginationClickable: true }); swiperWL = new Swiper('.swiper-WL', { grabCursor: true, pagination: '.SuccesWLBtn', paginationClickable: true }); swiperWH = new Swiper('.swiper-WH', { grabCursor: true, pagination: '.SuccesWHBtn', paginationClickable: true }); swiperZF = new Swiper('.swiper-ZF', { grabCursor: true, pagination: '.SuccesZFBtn', paginationClickable: true }); } $('.storgSuccessCNav .navList li').click(function() { $('.storgSuccessCNav .navList li').removeClass('active'); $(this).addClass('active'); $('.storgSuccessWrap .storgSuccesW').removeClass('active'); $('.storgSuccessWrap .storgSuccesW').eq($(this).index()).addClass('active'); if (!ie8Falg) { swiperJR.onResize(); swiperYL.onResize(); swiperWL.onResize(); swiperWH.onResize(); swiperZF.onResize(); swiperJR.update(); swiperYL.update(); swiperWL.update(); swiperWH.update(); swiperZF.update(); } }) if (!ie8Falg) { // 鏃犵嚎 if ($('#Wlan').length > 0) { var swiperResoce = new Swiper('.SetTemplateSwiper', { grabCursor: true, pagination: '.proSer_Btn', paginationClickable: true }); } // 鍝佺墝鐞嗗康閮ㄥ垎js if ($('.swiper-culture').length > 0) { var length_swpcul = $('.swiper-culture .swiper-slide').length; var swiperCulture = new Swiper('.swiper-culture', { grabCursor: true, pagination: '.Company_culturebtn', paginationClickable: true }); function cultrueFun() { if (swiperCulture.activeIndex == length_swpcul - 1) { swiperCulture.slideTo(0); } else { swiperCulture.slideNext(); } } var tIme; if (length_swpcul > 1) { tIme = setInterval(cultrueFun, 3000); $('.secondBanner .swiper-culture').on({ mouseenter: function() { clearInterval(tIme); }, mouseleave: function() { tIme = setInterval(cultrueFun, 3000); } }) $('.secondBanner .swiper-culture').on({ touchstart: function() { clearInterval(tIme); }, touchend: function() { tIme = setInterval(cultrueFun, 3000); } }) } else { $('.secondDiv.threeDiv .Company_culturebtn').hide(); } } if ($('#Company_culture').length > 0) { var swiperCultureSucc = new Swiper('.swiper-containerSuccH5', { grabCursor: true, pagination: '.techH5SuccBtnbox', paginationClickable: true }); } if ($('#Storage').length > 0) { //鏍忕洰姒傝堪绉诲姩绔儴鍒嗘粦鍔 var swiperSummary = new Swiper('.Swiper-summaryCon', { grabCursor: true, pagination: '.summaryEnterBtn', paginationClickable: true }); //鎺ㄨ崘浜у搧 var swiperProducts = new Swiper('.swiper-sumProductsC', { grabCursor: true, pagination: '.ProducEnterBtn', paginationClickable: true }); //鐩稿叧瑙嗛 var swiperProducts = new Swiper('.swiper-containerVidH5', { grabCursor: true, pagination: '.protechH5VidBtn', paginationClickable: true }); } if ($('#RegisterDealer').length > 0) { //璁よ瘉浠g悊 var swiperNavlist = new Swiper('.swiper-navlist', { grabCursor: true, pagination: '.SuccesNavlist', paginationClickable: true }); } window.addEventListener("resize", function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); }, false); } else { if ($('.swiper-culture').length > 0) { var length_swpcul = $('.swiper-culture .swiper-slide').length; $('body.ie8 .secondDiv.threeDiv .swiper-wrapper').css({ width: length_swpcul * 100 + '%' }) $('body.ie8 .secondDiv.threeDiv .swiper-wrapper .swiper-slide').css({ width: (100 / length_swpcul) + '%' }) var swiperNumber = 1; function swiperSlide() { if (swiperNumber < length_swpcul) { $('.secondBanner .swiper-wrapper').animate({ left: -100 * swiperNumber + '%' }, 300, 'linear'); swiperNumber += 1; } else { $('.secondBanner .swiper-wrapper').animate({ left: 0 }, 300, 'linear'); swiperNumber = 1; } $('.Company_culturebtn span').removeClass('swiper-pagination-bullet-active'); $('.Company_culturebtn span').eq(swiperNumber - 1).addClass('swiper-pagination-bullet-active'); } var ie8Swiper; if (length_swpcul > 1) { for (var i = 0; i < length_swpcul - 2; i++) { $('.Company_culturebtn').append(''); } ie8Swiper = setInterval(swiperSlide, 3000); $('.secondBanner .swiper-culture').on({ mouseenter: function() { clearInterval(ie8Swiper); }, mouseleave: function() { ie8Swiper = setInterval(swiperSlide, 3000); } }) } else { $('.secondDiv.threeDiv .Company_culturebtn').hide(); } $('.Company_culturebtn span').click(function() { $('.Company_culturebtn span').removeClass('swiper-pagination-bullet-active'); $(this).addClass('swiper-pagination-bullet-active'); swiperNumber = $(this).index(); $('.secondBanner .swiper-wrapper').animate({ left: -100 * swiperNumber + '%' }, 300, 'linear'); }) } window.onresize = function() { clearTimeout(timer); timer = setTimeout(setHeight, 200); } } // 鍙戝睍鍘嗙▼閮ㄥ垎鎺у埗 function boxHeight() { for (var i = 0; i < $('#Company_history .hist_box').length; i++) { var height_this = 0; if ($('#Company_history .hist_box').eq(i).find('.hist_boxList').is(":visible")) { if ($('#Company_history .hist_box').eq(i).find('.hist_boxList').find('li').length > 1) { if ($('body,html').width() > 768) { height_this += ($('#Company_history .hist_box').eq(i).find('.hist_boxList').find('li').length / 2) * 570; } else { height_this += $('#Company_history .hist_box').eq(i).find('.hist_boxList').find('li').length * 450; } } else { height_this += 440; } } else { if (i == $('#Company_history .hist_box').length - 1) { $('body,html').width() > 768 ? height_this = 100 : height_this = 0; } else { $('body,html').width() > 768 ? height_this = 120 : height_this = 80; } } $('#Company_history .hist_box').eq(i).css({ height: height_this + 'px' }); } } $('#Company_history .development .hist_box_time').each(function(i, ev) { $(ev).on('click', function() { $('#Company_history .hist_box_time').removeClass('timeAct'); $(this).addClass('timeAct'); $('#Company_history .hist_boxList').removeClass('histAct'); $('#Company_history .hist_boxList').eq(i).addClass('histAct'); boxHeight(); }) }) // 鍝佺墝鐞嗗康閮ㄥ垎婊戝姩鏍峰紡 if ($('#Company_culture').length > 0) { $('.SenRespon li').each(function(i, e) { $(e).click(function() { $('#Company_culture .SenResponBox').hide(); $('#Company_culture .SenResponBox').eq(i).show(); }) }) $('#Company_culture .SenRespoClose').click(function() { $(this).parents('.SenResponBox').hide(); }) } // 濯掍綋鑱旂粶閮ㄥ垎鎿嶄綔 $('#Media_Contact .MediaListBoxinput .textInput,#Media_Contact .MediaListBoxinput #textArea').focus(function() { $(this).next('.inputErr').hide(); }).blur(function() { if ($(this).val() == '' || $(this).val().length == 0) { $(this).next('.inputErr').show(); } }) // ComwareV7 灞曞紑鎺у埗 function comware7H() { if (!ComwareV7falg) { var firstPH = $('#ComwareV7 .ComwareV7ConTxt .MsoNormal').eq(0).height(); $('#ComwareV7 .ComwareV7ConTxt').css({ height: firstPH }); } } var ComwareV7falg = false; $('#ComwareV7 .ComwareV7Gomore>span').click(function() { if (!ComwareV7falg) { $('#ComwareV7 .ComwareV7ConTxt').css({ height: 'auto' }); $('#ComwareV7 .godownImg').hide(); $('#ComwareV7 .goupImg').show(); $('#ComwareV7 .ComwareV7Gomore span span').text('鐐瑰嚮鏀惰捣'); ComwareV7falg = true; } else { $('#ComwareV7 .godownImg').show(); $('#ComwareV7 .goupImg').hide(); $('#ComwareV7 .ComwareV7Gomore span span').text('灞曞紑鏇村'); ComwareV7falg = false; comware7H(); } }) }; (function() { //鏈嶅姟鍣ㄩ儴鍒咼S var serversFalg = false; $('#Servers .serverClikBtn').click(function() { if (!serversFalg) { $('#Servers .serverClick').addClass('activeC').find('.serverClikBtn span').text('鐐瑰嚮鏀惰捣'); $('#Servers .serversConText .serversConTextBox').css({ height: 'auto', overflow: 'visible' }) } else { $('#Servers .serverClick').removeClass('activeC').find('.serverClikBtn span').text('灞曞紑鏇村');; $('#Servers .serversConText .serversConTextBox').css({ height: '250px', overflow: 'hidden' }) } serversFalg = !serversFalg; }) $('#Servers #newsWrap .proJouConList li').each(function(i) { i <= 1 ? $('#Servers #newsWrap .proJouConList li').eq(i).addClass('borderPC') : ''; }) $('#Operational #newsWrap .proJouConList li').each(function(i) { i <= 1 ? $('#Operational #newsWrap .proJouConList li').eq(i).addClass('borderPC') : ''; }) // 澶фā鏉块〉闈㈡柊闂绘坊鍔犵被鍚 $('#SetTemplate #newsWrap .proJouConList li').each(function(i) { i <= 1 ? $('#SetTemplate #newsWrap .proJouConList li').eq(i).addClass('borderPC') : ''; }) //瑙嗛鎾斁 $('#Servers .serversConImg').click(function() { var videourl = $(this).attr('data-url'); var videoimgurl = $(this).find('.videoBack').attr('src'); $('#Servers #VideoPlay').show(); $('#Servers .posterimg').show(); var _width = $('#Servers .videoBox').width(); var _height = _width * 0.6; $('#Servers #VideoPlay .videoBox .posterimg').attr('src', videoimgurl); thePlayer = jwplayer('videoall').setup({ flashplayer: 'http://oss.mestudio.cn/player.swf', file: videourl, image: videoimgurl, width: _width, height: _height, control: false, controlbar: 'bottom', dock: false }); $('#Servers #videoall').css('background-color', 'none') $('#Servers .posterimg').hide(); }) $('#VideoPlay .closevideo').click(function() { $('#Servers #VideoPlay').hide(); $('#Servers #VideoPlay .videoBox video').attr('src', ''); $('#Servers #VideoPlay .videoBox .posterimg').attr('src', ''); }) })(); (function() { //璁剧疆鍗曠嫭濂囧伓鏍峰紡 鍙戝睍鍘嗙▼閮ㄥ垎 $('#Company_history .hist_box .hist_boxList').each(function(i, ev) { for (var i = 0; i < $(ev).find('li').length; i++) { if (i % 2 == 0) { $(ev).find('li').eq(i).addClass('numberO'); } else { $(ev).find('li').eq(i).addClass('numberQ'); } } }) //涓嬭浇鎸夐挳婊戝姩鏍峰紡 $('#Terms_of_service .gotoDown,#Company_culture .understandBox,#Servers .classListGoTo,#Technic_Service_Attestation .standardList li,#Technic_Service_Attestation .AttestatBox').on({ mouseenter: function() { $(this).find('a').addClass('fontRed'); $(this).find('a').find("img").attr("src", "/images/liaojieArrowhover.png"); }, mouseleave: function() { $(this).find('a').removeClass('fontRed'); $(this).find('a').find("img").attr("src", "/images/liaojieArrow.png"); } }) })(); (function() { // 琛ㄥ崟閮ㄥ垎锛圖DQ锛夌Щ鍔ㄧ鐐瑰嚮灞曞紑鏀剁缉 var DDQfalg = [false, false, false]; $('#DDQApprove .clickInput .DDQApproveBox').each(function(i, ev) { $(ev).find('.ApproveH2 span').on('click', function() { if ($('body,html').width() < 768) { $(this).find('img').removeClass('detailsShow'); DDQfalg[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); DDQfalg[i] = !DDQfalg[i]; $(ev).find('.ApproveBoxList').slideToggle('fast'); } }) }) // 鍙嶅澹版槑灞曞紑 var corruptFalg = false; $('.anti-corruption .ApproveH2 span').click(function() { if ($('body,html').width() < 768) { $(this).find('img').removeClass('detailsShow'); corruptFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); corruptFalg = !corruptFalg; $('.anti-corruption .corruptionCo').slideToggle('fast'); } }) var falgArr = [false, false, false, false, false, false, false, false, false]; $('#DDQApprove .ApproveBoxList .canClick').each(function(i, ev) { falgArr[i] ? '' : falgArr[i] = false; $(ev).find('.ClassOneName span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); falgArr[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); falgArr[i] = !falgArr[i]; $(this).parents('.canClick').find('.ClassOneList').slideToggle('fast'); }) }) // 鎻愪氦浜洪儴鍒嗗睍寮€ var submitterFalg = false; $('#DDQApprove .submitter .ApproveH2 span').click(function() { if ($('body,html').width() < 768) { $(this).find('img').removeClass('detailsShow'); submitterFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); submitterFalg = !submitterFalg; $('#DDQApprove .submitter .MediaList').slideToggle('fast'); } }) })(); (function() { //鏄熺骇鏈嶅姟椤甸潰JS $('.standardList li').each(function(i, ev) { i % 2 == 0 ? $(ev).addClass('standardF5') : $(ev).addClass('standardFF'); }) })(); (function() { //璁よ瘉浠g悊妯″潡javascript $('#RegisterDealer .AuthenNavList li').each(function(i, ev) { (i + 1) % 3 == 0 ? $(ev).addClass('NavListMargin') : ''; }) //璐靛叕鍙稿熀鏈儏鍐电偣鍑绘晥鏋 var companyFalg = false; $('#RegisterDealer .companyBtn .ApproveH2 span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); companyFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); companyFalg = !companyFalg; $('#RegisterDealer.threeDiv .companyWrap').slideToggle(); }) //璐靛叕鍙歌仈缁滄柟寮忕偣鍑绘晥鏋 var liaisonFalg = false; $('#RegisterDealer .liaisonBtn .ApproveH2 span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); liaisonFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); liaisonFalg = !liaisonFalg; $('#RegisterDealer.threeDiv .liaisonWrap').slideToggle(); }) //璐靛叕鍙歌仈缁滄柟寮忓叿浣撳唴瀹圭偣鍑绘晥鏋 // 瀹氫箟鎺у埗鍚勯儴鍒嗗紑鍏虫暟缁?浠anClick浣滀负鏍囪瘑) 椤哄簭 娉曚汉浠h〃-鎬荤粡鐞?閿€鍞礋璐d汉-閿€鍞礋璐d汉-鍟嗗姟璐熻矗浜?鎶€鏈嶈礋璐d汉-璁㈠崟閫氱煡鍗曟帴鏀朵汉-鏃ュ父鑱旂粶浜 var falgArr = [false, false, false, false, false, false, false, false]; $('#RegisterDealer .liaisonWrap .canClick').each(function(i, ev) { falgArr[i] ? '' : falgArr[i] = false; $(ev).find('.ClassOneName span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); falgArr[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); falgArr[i] = !falgArr[i]; $(this).parents('.canClick').find('.ClassOneList').slideToggle('fast'); }) }) //涓婁紶閮ㄥ垎鍏蜂綋鍐呭鐐瑰嚮鏁堟灉 //璐靛叕鍙歌仈缁滄柟寮忕偣鍑绘晥鏋 var uploadFalg = false; $('#RegisterDealer .uploadBtn .ApproveH2 span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); uploadFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); uploadFalg = !uploadFalg; $('#RegisterDealer.threeDiv .uploadWrap').slideToggle(); }) // 瀹氫箟鎺у埗鍚勯儴鍒嗗紑鍏虫暟缁?浠anClick浣滀负鏍囪瘑) 椤哄簭 var falgupload = [false, false, false, false, false, false, false]; $('#RegisterDealer .uploadWrap .canClick').each(function(i, ev) { falgupload[i] ? '' : falgupload[i] = false; $(ev).find('.uploadOneName span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); falgupload[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); falgupload[i] = !falgupload[i]; $(this).parents('.canClick').find('.uploadOneList').slideToggle('fast'); }) }) //鎷撳睍浜虹偣鍑绘晥鏋 var ExpandFalg = false; $('#RegisterDealer .ExpandBtn .ApproveH2 span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); ExpandFalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); ExpandFalg = !ExpandFalg; $('#RegisterDealer.threeDiv .ExpandWrap').slideToggle(); }) })() ; (function() { if ($('body,html').width() < 768) { $('#RegisterDealer .companyWrap').show(); $('#RegisterDealer .nextBtn').click(function(){ var num = $(this).attr('data-num'); $('#RegisterDealer .ApproveH2Wrap,#RegisterDealer .companyWrap,#RegisterDealer .liaisonWrap,#RegisterDealer .ExpandWrap,#RegisterDealer .uploadWrap').hide() if(num==1){ $('#RegisterDealer .liaisonBtn,#RegisterDealer .liaisonWrap').show(); }else if(num==2){ $('#RegisterDealer .ExpandBtn,#RegisterDealer .ExpandWrap').show(); }else if(num==3){ $('#RegisterDealer .uploadBtn,#RegisterDealer .uploadWrap').show(); $('.secondDiv.threeDiv .registerSubmit').show() } }) }; })() ; (function() { //鎶€鏈湇鍔′骇鍝侀儴鍒咼S //鎶€鏈湇鍔′骇鍝佽棰戞挱鏀 var ie8Falg = false; //榛樿涓嶆槸ie8 if ($('body').hasClass('ie8')) { ie8Falg = true; } var len = $(".applicationMenuList").length; var html = ""; for (var i = 0; i < len; i++) { var textBox = $(".applicationMainOutGrey").eq(i).find(".applicationMainOutTextBox"); html += '
    ' html += '
    ' html += $(".applicationMenuList").eq(i).html() html += '' html += '' html += '
    ' html += '
    ' for (var a = 0, alen = textBox.length; a < alen; a++) { var li = textBox.eq(a).find("li"); html += '
    ' html += '

    ' + textBox.eq(a).find("h2").html() + '

    ' html += '
      ' for (var b = 0, blen = li.length; b < blen; b++) { html += '
    • ' + li.eq(b).html() + '
    • ' } html += '
    ' html += '
    ' } html += '
    ' html += '
    ' } $(".mblMenuListOutBox").html(html); var chtml = ""; var applicationMainOutInner = $(".applicationMainOutInner"); for (var c = 0, clen = applicationMainOutInner.length; c < clen; c++) { var inner = applicationMainOutInner.eq(c); chtml += '
    ' chtml += '
    ' chtml += '' chtml += '

    ' + inner.find("h2").html() + '

    ' chtml += '

    ' + inner.find("p").html() + '

    ' chtml += '
    ' chtml += '
    ' } $("#applicationMainMbl").find(".swiper-wrapper").html(chtml); lengthCile($('#Operational.threeDiv .OperationalLastTextBox p'), 145); $('#Operational .serversConImg,#IT_application .serversConImg,#Wlan .serversConImg').click(function() { var videourl = $(this).attr('data-url'); var videoimgurl = $(this).find('.videoBack').attr('src'); $('.secondDiv #VideoPlay').show(); $('.secondDiv .posterimg').show(); var _width = $('.secondDiv .videoBox').width(); var _height = _width * 0.6; $('.secondDiv #VideoPlay .videoBox .posterimg').attr('src', videoimgurl); thePlayer = jwplayer('videoall').setup({ flashplayer: 'http://oss.mestudio.cn/player.swf', file: videourl, image: videoimgurl, width: _width, height: _height, control: false, controlbar: 'bottom', dock: false }); $('.secondDiv #videoall').css('background-color', 'none') $('.secondDiv .posterimg').hide(); }) $('#VideoPlay .closevideo').click(function() { $('.secondDiv #VideoPlay').hide(); $('.secondDiv #VideoPlay .videoBox video').attr('src', ''); $('.secondDiv #VideoPlay .videoBox .posterimg').attr('src', ''); }) var swiper_01, swiper_02, swiper_03, swiper_04, swiper_05, swiper_06, swiper_07, swiper_08; if (!ie8Falg) { // 瑙嗛swiper var mySwiperH5Vid = new Swiper('.protechH5Video01 .swiper-containerVidH5', { grabCursor: true, paginationClickable: true, pagination: '.protechH5Video01 .protechH5VidBtnBox' }) var applicationMainMblBtn = new Swiper('.protechH5Video02 .swiper-containerVidH5', { grabCursor: true, autoHeight: true, paginationClickable: true, pagination: '.protechH5Video02 .protechH5VidBtnBox' }) swiper_01 = new Swiper('.swiper_01', { grabCursor: true, pagination: '.techH5SuccBtn_01', paginationClickable: true }); swiper_02 = new Swiper('.swiper_02', { grabCursor: true, pagination: '.techH5SuccBtn_02', paginationClickable: true }); swiper_03 = new Swiper('.swiper_03', { grabCursor: true, pagination: '.techH5SuccBtn_03', paginationClickable: true }); swiper_04 = new Swiper('.swiper_04', { grabCursor: true, pagination: '.techH5SuccBtn_04', paginationClickable: true }); swiper_05 = new Swiper('.swiper_05', { grabCursor: true, pagination: '.techH5SuccBtn_05', paginationClickable: true }); swiper_06 = new Swiper('.swiper_06', { grabCursor: true, pagination: '.techH5SuccBtn_06', paginationClickable: true }); swiper_07 = new Swiper('.swiper_07', { grabCursor: true, pagination: '.techH5SuccBtn_07', paginationClickable: true }); swiper_08 = new Swiper('.swiper_08', { grabCursor: true, pagination: '.techH5SuccBtn_08', paginationClickable: true }); } /*澶у畨闃蹭骇鍝佸崟鐙坊鍔?/ $("#IT_application.threeDiv #product_DAF .applicationMainBody").find('#content_0').hide(); $("#IT_application.threeDiv #product_DAF .applicationMainBody").find('#content_1').show(); $("#IT_application #product_DAF .applicationMenuList").eq(0).addClass("applicationMenuListAct"); /*澶у畨闃蹭骇鍝佸崟鐙坊鍔?/ $("#IT_application .applicationMenuList").on("mouseenter", function() { var i = $(this).index() + 1; $(".applicationMainOut").hide(); $('#content_' + i).show(); $("#IT_application .applicationMenuList").removeClass("applicationMenuListAct"); $(this).addClass("applicationMenuListAct"); $(".applicationMenu").addClass("applicationMenuAct") waterfall('content_' + i, 'applicationMainOutTextBox'); }) $("#IT_application .protechVideoCon").on("mouseleave", function() { $(".applicationMenu").removeClass("applicationMenuAct"); $("#IT_application .applicationMenuList").removeClass("applicationMenuListAct"); $(".applicationMainOut").hide(); $('#content_0').show(); }) $("#IT_application #product_DAF .protechVideoCon").off('mouseleave'); $("#IT_application .Parityback .protechVideoCon").off('mouseleave') /*澶у畨闃蹭骇鍝佸崟鐙坊鍔?/ /*澶у畨闃蹭骇鍝佸崟鐙坊鍔?/ //杩愯惀鍟唗ab鍒囨崲 $("#Operational .OperationalTabHead_4").on("click", function() { // var index = $(this).index(); // $(".OperationalTabHead_4").removeClass("OperationalTabHeadAct"); // $(".OperationalTabBody_4").removeClass("OperationalTabBodyAct") // $(this).addClass("OperationalTabHeadAct"); // $(".OperationalTabBody_4").eq(index).addClass("OperationalTabBodyAct"); // $('.technicalSolve .techSolveCon').removeClass('active'); // $('.technicalSolve').each(function(i, ev) { // $('.technicalSolve').eq(i).find('.techSolveCon').eq(index).addClass('active'); // }) // $('.techH5Succ .techH5SuccConBox').removeClass('active'); // $('.techH5Succ').each(function(i, ev) { // $('.techH5Succ').eq(i).find('.techH5SuccConBox').eq(index).addClass('active'); // }) var index = $(this).index(); //tab 楂樹寒 $(".OperationalTabHead_4").removeClass("OperationalTabHeadAct"); $(this).addClass("OperationalTabHeadAct"); //Content 鏄剧ず $('.OperationalTabPCContent').removeClass("OperationalTabBodyAct"); $('.OperationalTabPCContent').each(function(i, el) { if (index == i) { $(this).addClass('OperationalTabBodyAct'); } }); $(".OperationalTabMBContent").removeClass("active"); $('.techH5SuccConBox').removeClass("active"); $('.OperationalTabMBContent').each(function(i, el) { if (index == i) { $(this).addClass('active'); } $(this).find('.techH5SuccConBox').addClass('active'); }); if (!ie8Falg) { swiper_01.onResize ? swiper_01.onResize() : ''; swiper_02.onResize ? swiper_02.onResize() : ''; swiper_03.onResize ? swiper_03.onResize() : ''; swiper_04.onResize ? swiper_04.onResize() : ''; swiper_05.onResize ? swiper_05.onResize() : ''; swiper_06.onResize ? swiper_06.onResize() : ''; swiper_07.onResize ? swiper_07.onResize() : ''; swiper_08.onResize ? swiper_08.onResize() : ''; swiper_01.update ? swiper_01.update() : ''; swiper_02.update ? swiper_02.update() : ''; swiper_03.update ? swiper_03.update() : ''; swiper_04.update ? swiper_04.update() : ''; swiper_05.update ? swiper_05.update() : ''; swiper_06.update ? swiper_06.update() : ''; swiper_07.update ? swiper_07.update() : ''; swiper_08.update ? swiper_08.update() : ''; } }) //绉诲姩绔骇鍝佸垎绫 $("#IT_application .mblMenuListHead").on("click", function() { var act = $(this).attr("act"); if (act == 0) { $("#IT_application .mblMenuListBody").slideUp(); $(this).parent().find(".mblMenuListBody").slideDown(); $("#IT_application .mblMenuListHead").attr("act", 0); $("#IT_application .mblMenuListHead").removeClass("mblMenuListHeadAct"); $(this).attr("act", 1); $(this).addClass("mblMenuListHeadAct"); } if (act == 1) { $(this).parent().find(".mblMenuListBody").slideUp(); $(this).removeClass("mblMenuListHeadAct"); $(this).attr("act", 0); } }) var oldText; if (isPc()) { // $('#Operational .serversConTextBox p').html(oldText) } else { oldText = lengthCile($('#Operational .serversConTextBox p'), 100); } //鐐瑰嚮灞曞紑鏇村 $(".serversConTextBot").on("click", function() { var act = $(this).attr("act"); if (act == 0) { $(this).addClass("zhanClickAct"); $(this).find("span").html("鐐瑰嚮鏀惰捣"); $(this).attr("act", 1); $(".serversConTextBox").addClass("serversConTextBoxAct"); $(".PorductMaintanInfo_p").addClass("PorductMaintanInfo_pAct"); $('.maintanBoxCon').css({ height: 'auto' }); // $(".PorductMaintanInfo_img").css("display","block"); if (oldText) { $('#Operational .serversConTextBox p').html(oldText) } } else { $(this).removeClass("zhanClickAct"); $(this).find("span").html("灞曞紑鏇村"); $(this).attr("act", 0); $(".serversConTextBox").removeClass("serversConTextBoxAct"); $(".PorductMaintanInfo_p").removeClass("PorductMaintanInfo_pAct"); $('.maintanBoxCon').css({ height: '20px' }); // $(".PorductMaintanInfo_img").css("display","none"); if (oldText) { lengthCile($('#Operational .serversConTextBox p'), 100); } } }) $("#Wlan .serversConTextBot").off('click'); $("#Wlan .serversConTextBot").on('click', function() { var act = $(this).attr("act"); if (act == 0) { $(this).addClass("zhanClickAct"); $(this).find("span").html("鐐瑰嚮鏀惰捣"); $(this).attr("act", 1); $(".serversConTextBox").addClass("serversConTextBoxAct"); $(".PorductMaintanInfo_p").addClass("PorductMaintanInfo_pAct"); $('#Wlan.threeDiv .serversConText .serversConTextBox').css({ height: 'auto', 'overflow': 'visible' }); if (oldText) { $('#Operational .serversConTextBox p').html(oldText) } } else { $(this).removeClass("zhanClickAct"); $(this).find("span").html("灞曞紑鏇村"); $(this).attr("act", 0); $(".serversConTextBox").removeClass("serversConTextBoxAct"); $(".PorductMaintanInfo_p").removeClass("PorductMaintanInfo_pAct"); $('#Wlan.threeDiv .serversConText .serversConTextBox').css({ height: '250px', 'overflow': 'hidden' }); if (oldText) { lengthCile($('#Operational .serversConTextBox p'), 100); } } }) $(window).resize(function() { if (isPc()) { $('#Operational .serversConTextBox p').html(oldText); $('.serversConTextBot').find("span").html("鐐瑰嚮灞曞紑"); $('.serversConTextBot').attr("act", 0); } else { oldText = lengthCile($('#Operational .serversConTextBox p'), 100); } if (!ie8Falg && $('#Operational').length > 0) { swiper_01.onResize ? swiper_01.onResize() : ''; swiper_02.onResize ? swiper_02.onResize() : ''; swiper_03.onResize ? swiper_03.onResize() : ''; swiper_04.onResize ? swiper_04.onResize() : ''; swiper_05.onResize ? swiper_05.onResize() : ''; swiper_06.onResize ? swiper_06.onResize() : ''; swiper_07.onResize ? swiper_07.onResize() : ''; swiper_08.onResize ? swiper_08.onResize() : ''; } }) // 闄愬埗瀛楁暟 function lengthCile(obj, num) { var oldText; obj.each(function(i, e) { $(e).css({ height: 'auto', 'max-height': 'none' }); if ($(e).text().length > num) { oldText = $(e).text(); $(e).text($(e).text().slice(0, num) + '...'); } }) return oldText; } function waterfall(parentID, childClass) { var oParent = document.getElementById(parentID); var arrBox = getClassObj(parentID, childClass); // getClassObj()鑾峰彇瀛恈lass鐨勬暟缁 var iBoxW = arrBox[0].offsetWidth; // 鑾峰彇鐎戝竷娴佸潡鐨勫搴 var num = 2; //璁$畻绐楀彛鑳藉绾冲嚑鍒 oParent.style.width = '100%'; //璁剧疆鐖剁骇瀹藉害 var arrBoxH = []; //鏁扮粍锛岀敤浜庡瓨鍌ㄦ瘡鍒椾腑鐨勬墍鏈夊潡妗嗙浉鍔犵殑楂樺害 for (var i = 0; i < arrBox.length; i++) { //閬嶅巻鏁扮粍鐎戝竷娴 鍧 var boxH = arrBox[i].offsetHeight; //鑾峰彇褰撳墠鍧楃殑楂樺害 if (i < num) { arrBox[i].style.cssText = ""; //闃叉鐢ㄦ埛鏀瑰彉绐楀彛澶у皬锛屽埌鏃舵牱寮忓嚭閿 arrBoxH[i] = boxH; //绗竴琛屼腑鐨刵um涓潡box 鍏堟坊鍔犺繘鏁扮粍arrBoxH } else { var minH = Math.min.apply(null, arrBoxH); //鑾峰彇鏁扮粍arrBoxH涓殑鏈€灏忓€糾inH var minHIndex = getminHIndex(arrBoxH, minH); //閬嶅巻鏁扮粍鑾峰彇鏈€灏忓€糾inH鐨勭储寮 arrBox[i].style.position = 'absolute'; //璁剧疆缁濆浣嶇Щ arrBox[i].style.top = minH + 'px'; arrBox[i].style.left = minHIndex * iBoxW + 'px'; //涔熷彲浠ョ洿鎺ヨ幏鍙朼rrBox[minHIndex].offsetLeft arrBoxH[minHIndex] += arrBox[i].offsetHeight; //娣诲姞鍚庯紝鏇存柊鏈€灏忓垪楂 } } } //鑾峰彇瀛恈lass鐨勬暟缁 function getClassObj(parentID, childClass) { var oParent = document.getElementById(parentID); var allChildObj = oParent.getElementsByTagName('*'); //鑾峰彇鐖剁骇涓嬬殑鎵€鏈夊瓙闆 var childObj = []; for (var i = 0; i < allChildObj.length; i++) { if (allChildObj[i].className == childClass) { childObj.push(allChildObj[i]); } }; return childObj; } //鑾峰彇鏁扮粍鏈€灏忓€肩殑绱㈠紩 function getminHIndex(arr, minH) { for (var i in arr) { if (arr[i] == minH) { return i; } } } function isPc() { var winWidth = ""; if (window.innerWidth) { winWidth = window.innerWidth; } else if ((document.body) && (document.body.clientWidth)) { winWidth = document.body.clientWidth; } if (winWidth > 768) { return true; } return false; } })(); (function() { //鍚堜綔浼欎即鏌ヨ椤甸潰 $('.chanceInput input').focus(function() { if ($(this).parent().index() == 0) { $('.serversChan').hide(); } else if ($(this).parent().index() == 1) { $('.serversChan').show(); } }) })(); (function() { //琛ㄥ崟閮ㄥ垎宸︿晶瀵艰埅閮ㄥ垎 $('#AgentServiceStarQuer .AgentSerLeft .canClick.active').find('.SerListCon').slideDown('fast'); $('#AgentServiceStarQuer .AgentSerLeft .SerListCon li.active').find('.threeNav').slideDown('fast'); $('#AgentServiceStarQuer .AgentSerLeft .canClick').each(function(i, ev) { $(ev).find('.SerListTit').on('click', function() { $('#AgentServiceStarQuer .AgentSerLeft .canClick').not($(ev)).removeClass('active'); $('#AgentServiceStarQuer .AgentSerLeft .canClick').not($(ev)).find('.SerListCon').slideUp('fast'); $(ev).find('.SerListCon').slideToggle('fast'); $(ev).hasClass('active') ? $(ev).removeClass('active') : $(ev).addClass('active'); }) }) //浜岀骇鏍忕洰鐐瑰嚮鏁堟灉 $('#AgentServiceStarQuer .AgentSerLeft .SerListCon li.threeClick').each(function(i, ev) { $(ev).find('.threeClickTit').on('click', function() { $('#AgentServiceStarQuer .AgentSerLeft .SerListCon li.threeClick').not($(ev)).removeClass('active'); $('#AgentServiceStarQuer .AgentSerLeft .SerListCon li.threeClick').not($(ev)).find('.threeNav').slideUp('fast'); $(ev).find('.threeNav').slideToggle('fast'); $(ev).hasClass('active') ? $(ev).removeClass('active') : $(ev).addClass('active'); }) }) //浠g悊鍟嗚璇佺粨鏋滃垏鎹㈤儴鍒 $('#AgentServiceStarQuer .obtNavBox .navBoxList li').click(function() { var thisNum = $(this).index(); $('#AgentServiceStarQuer .obtNavBox .navBoxList li').removeClass('backRed'); $('#AgentServiceStarQuer .obtNavBox .navBoxList li').eq(thisNum).addClass('backRed'); $('#AgentServiceStarQuer .BoxConList .BoxConBox').removeClass('active'); $('#AgentServiceStarQuer .BoxConList .BoxConBox').eq(thisNum).addClass('active'); }) //鍩烘湰淇℃伅鎺у埗寮€鍏 var baseInfofalg = false; $('#AgentServiceStarQuer .companyBtn').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); baseInfofalg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); baseInfofalg = !baseInfofalg; $('.companyWrap').slideToggle('fast'); }) // 瀹氫箟鎺у埗鍚勯儴鍒嗗紑鍏虫暟缁?浠anClick浣滀负鏍囪瘑) 椤哄簭 var falguploadBase = [false, false, false, false, false, false, false, false]; $('#AgentServiceStarQuer .liaisonWrap .canClick').each(function(i, ev) { falguploadBase[i] ? '' : falguploadBase[i] = false; $(ev).find('.ClassOneName span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); falguploadBase[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); falguploadBase[i] = !falguploadBase[i]; $(this).parents('.canClick').find('.ClassOneList').slideToggle('fast'); }) }) //鎺у埗涓氱哗鍚堝苟鐢宠鍩烘湰淇℃伅 var agentOaBtn_01Falg = false; $('#AgentServiceStarQuer .agentOaBtn_01').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); agentOaBtn_01Falg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); agentOaBtn_01Falg = !agentOaBtn_01Falg; $('.baseInfoWrap').slideToggle('fast'); }) var agentOaBtn_02Falg = false; $('#AgentServiceStarQuer .agentOaBtn_02').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); agentOaBtn_02Falg ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); agentOaBtn_02Falg = !agentOaBtn_02Falg; $('.uploadWrap').slideToggle('fast'); }) // 瀹氫箟鎺у埗鍚勯儴鍒嗗紑鍏虫暟缁?浠anClick浣滀负鏍囪瘑) 椤哄簭 var uploadBaseCon = [false, false, false, false]; $('#AgentServiceStarQuer .uploadWrap .canClick').each(function(i, ev) { uploadBaseCon[i] ? '' : uploadBaseCon[i] = false; $(ev).find('.uploadOneName span').click(function() { if ($('body,html').width() > 768) { return }; $(this).find('img').removeClass('detailsShow'); uploadBaseCon[i] ? $(this).find('img').eq(0).addClass('detailsShow') : $(this).find('img').eq(1).addClass('detailsShow'); uploadBaseCon[i] = !uploadBaseCon[i]; $(this).parents('.canClick').find('.uploadOneList').slideToggle('fast'); }) }) })(); (function() { $('#centerValidation #newsWrap .proJouConList li').each(function(i) { i <= 1 ? $('#centerValidation #newsWrap .proJouConList li').eq(i).addClass('borderPC') : ''; }) //鏃犵嚎 //鍏ㄧ郴鍒椾骇鍝乼ab鍒囨崲 $("#Wlan .OperationalTabHead_4").on("click", function() { var index = $(this).index(); $(".OperationalTabHead_4").removeClass("OperationalTabHeadAct"); $(".OperationalTabBody_4").removeClass("OperationalTabBodyAct") $(this).addClass("OperationalTabHeadAct"); $(".OperationalTabBody_4").eq(index).addClass("OperationalTabBodyAct"); }) $("#Wlan .OperationalTabBody_4").eq(3).addClass("OperationalTabBodyShort") lengthCile($('#Wlan.threeDiv .OperationalTabRightInner h2'), 32); //鍏ㄧ郴鍒楀乏渚х偣鍑诲垹閫 $(".OperationalTabLeft").find("li").on("click", function() { $(this).parent().find("li").removeClass("chooseWlanLiAct"); $(this).addClass("chooseWlanLiAct"); }) if (isPc()) { lengthCile($('#Wlan.threeDiv .OperationalTabRightInner h2'), 32); } else { lengthCile($('#Wlan.threeDiv .OperationalTabRightInner h2'), 25); } $(window).resize(function() { if (isPc()) { lengthCile($('#Wlan.threeDiv .OperationalTabRightInner h2'), 32); } else { lengthCile($('#Wlan.threeDiv .OperationalTabRightInner h2'), 25); } }) //鏂囨。涓績pc鍜宮bl鐨勫垏鎹 $(".addBox").eq($(".PorductMaintanInfo_searchLineAct").attr("num")).html($(".PorductMaintanInfo_searchBodyBox").html()) //鏁版嵁涓績楠岃瘉涓庤繍琛 new Swiper('.centerValidation_Swiper', { grabCursor: true, pagination: '.swiper-pagination' }); function isPc() { var winWidth = ""; if (window.innerWidth) { winWidth = window.innerWidth; } else if ((document.body) && (document.body.clientWidth)) { winWidth = document.body.clientWidth; } if (winWidth > 768) { return true; } return false; } // 闄愬埗瀛楁暟 function lengthCile(obj, num) { var oldText; obj.each(function(i, e) { $(e).css({ height: 'auto', 'max-height': 'none' }); if ($(e).text().length > num) { oldText = $(e).text(); $(e).text($(e).text().slice(0, num) + '...'); } }) } })(); (function() { $('#Management .TeamMemberList li').each(function(i, ev) { i % 5 == 0 ? $(ev).css({ 'margin-left': '0' }) : ''; }) // 绠$悊鍥㈤槦閮ㄥ垎鐐瑰嚮鎺у埗 if ($('#Management').length > 0) { $('.headBox').css({ 'background': '#fff', 'z-index': '999' }); } var thisHeight; $('#Management .manaClick').click(function() { $('.detailsImg img').attr('src', $(this).find('.thisIsImg').attr('src')); $('.nameBox').text($(this).find('.thisIsName').text()); $('.positionBox').text($(this).find('.thisIsPosition').text()); $('.ViewDetailsTxt').html($(this).find('.ViewDetails').html()); $('#Management .ViewDetailsBox').show(); thisHeight = $('body').scrollTop(); $('html,body').css({ height: '100%', 'overflow': 'hidden' }); }) $('#Management .ViewDetailsClose').click(function() { $('#Management .ViewDetailsBox').hide(); $('html,body').css({ height: 'auto', 'overflow': 'auto' }); $('body').scrollTop(thisHeight); }) // 妯℃澘瑙e喅鏂规绗簩绉嶆牱寮 $('#SetTemplate .techSolveConTwo li').each(function(i, ev) { if (i % 3 == 0) { $(ev).css({ 'margin-left': '0' }) } if (i >= 3) { $(ev).css({ 'margin-bottom': '0' }) } }) // 澶фā鏉块〉闈㈡帶鍒惰儗鏅壊 $('#SetTemplate .Parityback').each(function(i, ev) { i % 2 == 0 ? $('#SetTemplate .Parityback').eq(i).addClass('ParityWhite') : $('#SetTemplate .Parityback').eq(i).addClass('ParityBlack'); }) // 澶фā鏉垮睍寮€鍏ㄩ儴鎺у埗 var SetTemplateFalg = false; $('#SetTemplate .serverClikBtn').click(function() { if (!SetTemplateFalg) { $('#SetTemplate .serverClick').addClass('activeC').find('.serverClikBtn span').text('鐐瑰嚮鏀惰捣'); $('#SetTemplate .serversConText .serversConTextBox').css({ 'max-height': '9999px', overflow: 'visible' }) } else { $('#SetTemplate .serverClick').removeClass('activeC').find('.serverClikBtn span').text('灞曞紑鏇村');; $('#SetTemplate .serversConText .serversConTextBox').css({ 'max-height': '245px', overflow: 'hidden' }) } SetTemplateFalg = !SetTemplateFalg; }) //瑙嗛鎾斁 $('#SetTemplate .serversConImg').click(function() { var videourl = $(this).attr('data-url'); var videoimgurl = $(this).find('.videoBack').attr('src'); $('#SetTemplate #VideoPlay').show(); $('#SetTemplate .posterimg').show(); var _width = $('#SetTemplate .videoBox').width(); var _height = _width * 0.6; $('#SetTemplate #VideoPlay .videoBox .posterimg').attr('src', videoimgurl); thePlayer = jwplayer('videoall').setup({ flashplayer: 'http://oss.mestudio.cn/player.swf', file: videourl, image: videoimgurl, width: _width, height: _height, control: false, controlbar: 'bottom', dock: false }); $('#SetTemplate #videoall').css('background-color', 'none') $('#SetTemplate .posterimg').hide(); }) $('#VideoPlay .closevideo').click(function() { $('#SetTemplate #VideoPlay').hide(); $('#SetTemplate #VideoPlay .videoBox video').attr('src', ''); $('#SetTemplate #VideoPlay .videoBox .posterimg').attr('src', ''); }) // 瑙e喅鏂规閮ㄥ垎绉诲姩绔疆鎾 721琛岃皟鑺傞珮搴 if (!$('body').hasClass('ie8') && $('#SetTemplate').length > 0) { if ($('#SetTemplate .swiper_SetSlove').length > 0) { var swiper_SetSlove = new Swiper('.swiper_SetSlove', { grabCursor: true, pagination: '.SetSloveBtn', paginationClickable: true }); } if ($('#SetTemplate .swiper_SetSucc').length > 0) { var swiper_SetSlove = new Swiper('.swiper_SetSucc', { grabCursor: true, pagination: '.SetSuccBtn', paginationClickable: true }); } if ($('#SetTemplate #videoWrapH5').length > 0) { var swiper_SetSlove = new Swiper('.swiper-containerVidH5', { grabCursor: true, pagination: '.protechH5VidBtn', paginationClickable: true }); } // 浜у搧鍒楄〃閮ㄥ垎 if ($('#SetTemplate .swiper_Protech').length > 0) { var swiper_SetSlove = new Swiper('.swiper_Protech', { grabCursor: true, pagination: '.ProtechBtn', paginationClickable: true }); } if ($('#SetTemplate .swiper-serCon').length > 0) { var swiper_SetSlove = new Swiper('.swiper-serCon', { grabCursor: true, pagination: '.proSer_Btn', paginationClickable: true }); } // 瑙e喅鏂规绗簩绉 if ($('#SetTemplate .swiper_SetSloveTwo').length > 0) { var swiper_SetSlove = new Swiper('.swiper_SetSloveTwo', { grabCursor: true, pagination: '.SetSloveTwoBtn', paginationClickable: true }); } //鏅暀鑱屾暀閮ㄥ垎 if ($('.education').length > 0) { swiper_SetSlove_set_01 = new Swiper('.swiper_Set_01', { grabCursor: true, pagination: '.techH5SuccBtn_set01', paginationClickable: true }); swiper_SetSlove_set_02 = new Swiper('.swiper_Set_02', { grabCursor: true, pagination: '.techH5SuccBtn_set02', paginationClickable: true }); swiper_SetSlove_set_03 = new Swiper('.swiper_Set_03', { grabCursor: true, pagination: '.techH5SuccBtn_set03', paginationClickable: true }); swiper_SetSlove_set_04 = new Swiper('.swiper_Set_04', { grabCursor: true, pagination: '.techH5SuccBtn_set04', paginationClickable: true }); } } // $.each($('.protechListNav.moreTab'), function(index, el) { var tabs = $(el).find('li') tabs.width(parseInt($('.protechListNav.moreTab').width() / tabs.length)) }); // 浜у搧鍒楄〃鍒囨崲閮ㄥ垎js鎺у埗 $('.protechListNav .ListNavList li').click(function() { $('.protechListNav .ListNavList li').find('span').addClass('borderLeft'); $('.protechListNav .ListNavList li').removeClass('backRed'); $(this).addClass('backRed'); $(this).next('li').find('span').removeClass('borderLeft'); $(this).find('span').removeClass('borderLeft'); setProList($(this).index()); setH5ProList($(this).index()); }) // 浜у搧鍒楄〃鍐呭鍒囨崲鍑芥暟 function setProList(num) { $('#SetTemplate .setListCon').removeClass('setListShow'); $('#SetTemplate .setListCon').eq(num).addClass('setListShow'); } // 绉诲姩绔鑸垏鎹 if ($(window).width() < 768) { $('#SetTemplate .protechList .setLisH5Box').removeClass('detailsShow'); $('#SetTemplate .setListCon').removeClass('setListShow'); //$('#myTab').tab('hide'); } // 浜у搧鍒楄〃绉诲姩绔鑸紑鍏宠缃 $('#SetTemplate .protechList .setLisH5Box').each(function(i, ev) { $(ev).on('click', function() { setH5ProList(i); setProList(i); }) }) // 绉诲姩绔骇鍝佸垪琛ㄥ唴瀹瑰垏鎹㈠嚱鏁 function setH5ProList(num) { $('#SetTemplate .protechListNav .ListNavList li').removeClass('backRed'); $('#SetTemplate .protechListNav .ListNavList li').eq(num).addClass('backRed'); $('#SetTemplate .protechList .setLisH5Box').removeClass('detailsShow'); $('#SetTemplate .protechList .setLisH5Box').eq(num).addClass('detailsShow'); } // 鏅暀鑱屾暀閮ㄥ垎鍒囨崲 function isliHight(father, boy) { $(father).find(boy).css({ height: 'auto' }); var heightarr = [], lastHeight = $(father).find(boy).eq(0).height(); $(father).find(boy).each(function(i, e) { var _height = $(e).height(); heightarr.push(_height); }) for (var i = 1; i < heightarr.length; i++) { if (heightarr[i] > lastHeight) { lastHeight = heightarr[i]; } } $(father).find(boy).css({ height: lastHeight + 4 + 'px' }); } var swiper_SetSlove_set_01, swiper_SetSlove_set_02, swiper_SetSlove_set_03, swiper_SetSlove_set_04; $('#SetTemplate .education .educationNav li').click(function() { var thisNum = $(this).index(); educationNav(thisNum); educationTxt(thisNum); solveCon(thisNum); isliHight('#SetTemplate .technicalSolve:eq(0) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(1) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(2) .techSolveConList', 'li'); isliHight('#SetTemplate .technicalSolve:eq(3) .techSolveConList', 'li'); if (!$('body').hasClass('ie8') && $('body,html').width() < 768) { swiper_SetSlove_set_01.onResize(); swiper_SetSlove_set_02.onResize(); swiper_SetSlove_set_03.onResize(); swiper_SetSlove_set_04.onResize(); swiper_SetSlove_set_01.update(); swiper_SetSlove_set_02.update(); swiper_SetSlove_set_03.update(); swiper_SetSlove_set_04.update(); } }) // 鏅暀鑱屾暀鍒囨崲瀵艰埅绫诲悕 function educationNav(num) { $('#SetTemplate .education .educationNav li').removeClass('active'); $('#SetTemplate .education .educationNav li').eq(num).addClass('active'); } // 鏅暀鑱屾暀鏂囧瓧鍒囨崲 function educationTxt(num) { $('#SetTemplate .education .secondWrapBox .educatTxt').removeClass('Txtshow'); $('#SetTemplate .education .secondWrapBox .educatTxt').eq(num).addClass('Txtshow'); } // 涓嬫柟鍐呭鍒囨崲 function solveCon(num) { $('#SetTemplate .education .technicalSolve').each(function(i, ev) { $(ev).find('.techSolveCon').removeClass('active'); $(ev).find('.techSolveCon').eq(num).addClass('active'); }) $('#SetTemplate .education .techH5Succ').each(function(i, ev) { $(ev).find('.techH5SuccConBox').removeClass('active'); $(ev).find('.techH5SuccConBox').eq(num).addClass('active'); }) } // 浜у搧浠嬬粛閮ㄥ垎鍒囨崲鎺у埗 var thisnum = 0; var setTemlength; setTemlength = $('#SetTemplate .introdBoxAnima .introdBoxList li').length; var thisnumberLength = Math.ceil(setTemlength / 3) - 1; $('#SetTemplate .introdBoxAnima').css({ width: Math.ceil(setTemlength / 3) * 100 + '%' }); var setMargin = Math.ceil(setTemlength / 3) * 2; $('#SetTemplate .introdBoxAnima .introdBoxList li').css({ width: (90 / (Math.ceil(setTemlength / 3) * 3)) + '%', 'margin-left': 10 / setMargin + '%' }); $('#SetTemplate .introdBoxAnima .introdBoxList li').each(function(i, ev) { if (i % 3 == 0) { $(ev).css({ 'margin-left': '0' }); } }) if (setTemlength <= 3) { $('#SetTemplate .introduction .proEntBtn').hide(); } $('#SetTemplate .proEntBtnLeft').on({ mouseenter: function() { if (thisnum > 0) { $(this).addClass('hover'); } }, mouseleave: function() { $(this).removeClass('hover'); } }) $('#SetTemplate .proEntBtnRight').on({ mouseenter: function() { if (thisnum < thisnumberLength) { $(this).addClass('hover'); } }, mouseleave: function() { $(this).removeClass('hover'); } }) function ie8Swiper(type) { type == "right" ? thisnum += 1 : thisnum -= 1; var _width = $('#SetTemplate .introdBox .introdBoxAnima').width(); $('#SetTemplate .introdBoxAnima').animate({ left: -100 * thisnum + '%' }, 300, 'linear', function() { if (thisnum == 0) { $('#SetTemplate .proEntBtnLeft').removeClass('hover'); } else if (thisnum == thisnumberLength) { $('#SetTemplate .proEntBtnRight').removeClass('hover'); } }); } $('#SetTemplate .proEntBtnRight').click(function() { if (thisnum < thisnumberLength) { ie8Swiper("right"); } }) $('#SetTemplate .proEntBtnLeft').click(function() { if (thisnum > 0) { ie8Swiper("left"); } }) // 濉厖鏁版嵁鎺у埗 var length_one = $('.centerDateBox .setListBox').length; var length_one_num = Math.ceil(length_one / 3); var length_two = $('.centerExchangeBox .setListBox').length; var length_two_num = Math.ceil(length_two / 3); var length_three = $('.centerEPONBox .setListBox').length; var length_three_num = Math.ceil(length_three / 3); var length_four = $('.centerIndustryBox .setListBox').length; var length_four_num = Math.ceil(length_four / 3); var length_five = $('.centerCapacityBox .setListBox').length; var length_five_num = Math.ceil(length_five / 3); var length_six = $('.centerVideoBox .setListBox').length; var length_six_num = Math.ceil(length_six / 3); var length_seven = $('.centerSoftwareBox .setListBox').length; var length_seven_num = Math.ceil(length_six / 3); var num_one = 0, num_two = 0, num_three = 0, num_four = 0, num_five = 0, num_six = 0, num_seven = 0; for (var i = 0; i < length_one; i += length_one_num) { $('.centerDateBoxData .cls-4').eq(num_one).append($('.centerDateBox .setListBox').slice(0, length_one_num)); num_one += 1; } for (var i = 0; i < length_two; i += length_two_num) { $('.centerExchange .cls-4').eq(num_two).append($('.centerExchangeBox .setListBox').slice(0, length_two_num)); num_two += 1; } for (var i = 0; i < length_three; i += length_three_num) { $('.centerEPON .cls-4').eq(num_three).append($('.centerEPONBox .setListBox').slice(0, length_three_num)); num_three += 1; } for (var i = 0; i < length_four; i += length_four_num) { $('.centerIndustry .cls-4').eq(num_four).append($('.centerIndustryBox .setListBox').slice(0, length_four_num)); num_four += 1; } for (var i = 0; i < length_five; i += length_five_num) { $('.centerCapacity .cls-4').eq(num_five).append($('.centerCapacityBox .setListBox').slice(0, length_five_num)); num_five += 1; } for (var i = 0; i < length_six; i += length_six_num) { $('.centerVideo .cls-4').eq(num_six).append($('.centerVideoBox .setListBox').slice(0, length_six_num)); num_six += 1; } for (var i = 0; i < length_seven; i += length_seven_num) { $('.centerSoftware .cls-4').eq(num_seven).append($('.centerSoftwareBox .setListBox').slice(0, length_seven_num)); num_seven += 1; } // 妯℃澘椤甸潰鍒囨崲閮ㄥ垎 var swiper_SetSDN_01, swiper_SetSDN_02, swiper_SetSDN_03, swiper_SetSDN_04, swiper_SetSDN_05, swiper_SetSDN_06, swiper_SetSDN_07, swiper_SetSDN_08, swiper_SetSDN_09, swiper_SetSDN_10, swiper_SetSDN_11, swiper_SetSDN_12, swiper_SetSDN_13, swiper_SetSDN_14, swiper_SetSDN_15; if (!$('body').hasClass('ie8')) { swiper_SetSDN_01 = new Swiper('.swiper_SDN_01', { grabCursor: true, pagination: '.SDN_01Btn', paginationClickable: true }); swiper_SetSDN_02 = new Swiper('.swiper_SDN_02', { grabCursor: true, pagination: '.SDN_02Btn', paginationClickable: true }); swiper_SetSDN_03 = new Swiper('.swiper_SDN_03', { grabCursor: true, pagination: '.SDN_03Btn', paginationClickable: true }); swiper_SetSDN_04 = new Swiper('.swiper_SDN_04', { grabCursor: true, pagination: '.SDN_04Btn', paginationClickable: true }); swiper_SetSDN_05 = new Swiper('.swiper_SDN_05', { grabCursor: true, pagination: '.SDN_05Btn', paginationClickable: true }); swiper_SetSDN_06 = new Swiper('.swiper_SDN_06', { grabCursor: true, pagination: '.SDN_06Btn', paginationClickable: true }); swiper_SetSDN_07 = new Swiper('.swiper_SDN_07', { grabCursor: true, pagination: '.SDN_07Btn', paginationClickable: true }); swiper_SetSDN_08 = new Swiper('.swiper_SDN_08', { grabCursor: true, pagination: '.SDN_08Btn', paginationClickable: true }); swiper_SetSDN_09 = new Swiper('.swiper_SDN_09', { grabCursor: true, pagination: '.SDN_09Btn', paginationClickable: true }); swiper_SetSDN_10 = new Swiper('.swiper_SDN_10', { grabCursor: true, pagination: '.SDN_10Btn', paginationClickable: true }); swiper_SetSDN_11 = new Swiper('.swiper-serCon-01', { grabCursor: true, pagination: '.proSer_Btn_01', paginationClickable: true }); swiper_SetSDN_12 = new Swiper('.swiper-serCon-02', { grabCursor: true, pagination: '.proSer_Btn_02', paginationClickable: true }); swiper_SetSDN_13 = new Swiper('.swiper-serCon-03', { grabCursor: true, pagination: '.proSer_Btn_03', paginationClickable: true }); swiper_SetSDN_14 = new Swiper('.swiper-serCon-04', { grabCursor: true, pagination: '.proSer_Btn_04', paginationClickable: true }); swiper_SetSDN_15 = new Swiper('.swiper-serCon-05', { grabCursor: true, pagination: '.proSer_Btn_05', paginationClickable: true }); } // 淇敼SDN閮ㄥ垎鍒囨崲鑷€傚簲 $('.SDNPCNav li').css({ width: 100 / $('.SDNPCNav li').length + '%' }); $('.SDNPCNav li:last i').remove(); $('.SDNPCNav li').click(function() { // 璁剧疆瀵艰埅閮ㄥ垎绾挎潯鏍峰紡 $('.SDNPCNav li').find('i').show(); $(this).prev().find('i').hide(); $(this).find('i').hide(); conShowCha($(this).index()); }) // 鍐呭鍒囨崲鍑芥暟 function conShowCha(num) { // 璁剧疆PC绔儴鍒嗗鑸牱寮 $('#SetTemplate .SDNProtech .SDNPCNav li').removeClass('SDNPCAct'); $('#SetTemplate .SDNProtech .SDNPCNav li').eq(num).addClass('SDNPCAct'); // 璁剧疆绉诲姩绔儴鍒嗗鑸牱寮 $('#SetTemplate .SDNProtech .setLisH5Box').removeClass('detailsShow'); $('#SetTemplate .SDNProtech .setLisH5Box').eq(num).addClass('detailsShow'); // 璁剧疆鍐呭灞曠ず $('.SDNProtech .setListCon').removeClass('setListShow'); $('.SDNProtech .setListCon').eq(num).addClass('setListShow'); // 璧勬簮涓績閮ㄥ垎鍒囨崲 $('.SDNProtech .Resources').removeClass('ResourcesShow'); $('.SDNProtech .Resources').eq(num).addClass('ResourcesShow'); } // 澶т簰鑱旈儴鍒嗗垽鏂槸鍚︽樉绀轰簡瑙h鎯 if ($('#SetTemplate .SDNProtech').length > 0) { $('#SetTemplate .SDNProtech .setListtxtBox').each(function(i, ev) { if ($(ev).find('.setListTxt p').length <= 1) { $(ev).find('.protechSolveGoMore').hide(); } }) } // 绉诲姩绔鑸紑鍏宠缃 $('#SetTemplate .SDNProtech .setLisH5Box').each(function(i, ev) { $(ev).on('click', function() { conShowCha(i); if (!$('body').hasClass('ie8') && $('body,html').width() < 768) { swiper_SetSDN_01.onResize(); swiper_SetSDN_02.onResize(); swiper_SetSDN_03.onResize(); swiper_SetSDN_04.onResize(); swiper_SetSDN_05.onResize(); swiper_SetSDN_06.onResize(); swiper_SetSDN_07.onResize(); swiper_SetSDN_08.onResize(); swiper_SetSDN_09.onResize(); swiper_SetSDN_10.onResize(); swiper_SetSDN_11.onResize(); swiper_SetSDN_12.onResize(); swiper_SetSDN_13.onResize(); swiper_SetSDN_14.onResize(); swiper_SetSDN_15.onResize(); swiper_SetSDN_01.update(); swiper_SetSDN_02.update(); swiper_SetSDN_03.update(); swiper_SetSDN_04.update(); swiper_SetSDN_05.update(); swiper_SetSDN_06.update(); swiper_SetSDN_07.update(); swiper_SetSDN_08.update(); swiper_SetSDN_09.update(); swiper_SetSDN_10.update(); swiper_SetSDN_11.update(); swiper_SetSDN_12.update(); swiper_SetSDN_13.update(); swiper_SetSDN_14.update(); swiper_SetSDN_15.update(); } }) }) // 淇敼杩愯惀鍟嗘坊鍔 if ($('#Operational').length > 0) { var operaTab = $('#Operational .OperationalTab .OperationalTabHead_4'); operaTab.css({ width: 100 / operaTab.length + '%' }); } if ($('.secondPC').attr('src') === '' && $('.secondH5').attr('src') === '') { $('.secondPC').parents('.secondBanner').css({ height: '0', 'overflow': 'hidden' }); } // 娣诲姞鍏徃瑙嗛鐐瑰嚮鏌ョ湅瑙嗛浠g爜 if ($('#Focus_Moment').length > 0) { $('#Focus_Moment .isClickVideo').click(function() { var videourl = $(this).attr('data-href'); var videoimgurl = $(this).find('.ClickVideoImg').attr('src'); $('#Focus_Moment #VideoPlay').show(); $('#Focus_Moment .posterimg').show(); var _width = $('#Focus_Moment .videoBox').width(); var _height = _width * 0.6; $('#Focus_Moment #VideoPlay .videoBox .posterimg').attr('src', videoimgurl); thePlayer = jwplayer('videoall').setup({ flashplayer: 'http://oss.mestudio.cn/player.swf', file: videourl, image: videoimgurl, width: _width, height: _height, control: false, controlbar: 'bottom', dock: false }); $('#Focus_Moment #videoall').css('background-color', 'none') $('#Focus_Moment .posterimg').hide(); }) $('#VideoPlay .closevideo').click(function() { $('#Focus_Moment #VideoPlay').hide(); $('#Focus_Moment #VideoPlay .videoBox video').attr('src', ''); $('#Focus_Moment #VideoPlay .videoBox .posterimg').attr('src', ''); }) } })() // 璋冩暣宓屽叆鍥涚骇椤甸潰涔嬪悗鐨勬牱寮忛棶棰 if ((typeof vScroll) !== 'undefined') { // 瑕嗙洊鍑芥暟 vScroll = null; vScroll = function() { return false; } } if ((typeof kodistsys) !== 'undefined') { kodistsys = function() {} } // 杩欓噷鏄皟鏁磋疆鎾柟娉曟姤閿 鐢变簬搴曢儴浜屾寮曞叆jquery 浠ュ悗浼氬幓鎺 if ((typeof vHome) !== 'undefined') { vHome.not = function() {}; if ((typeof $('.carousel').carousel) == 'undefined') { vHome.tab = function() {} } } $('.header').css({ height: '100px', 'position': 'relative', 'margin': '0 auto' }); // 璋冩暣logo澶у皬 $('.header .logo').css({ width: '100%' }); //璋冩暣webview搴曢儴鏍峰紡 var footerMbl = setTimeout(function() { clearTimeout(footerMbl) if ($('.footerMbl .footerInnerRight>a').length == 2) { $('.footerMbl .footerInnerRight>a').eq(0).css({ color: '#fff', display: 'inline' }); } }, 500) // // 璋冩暣灞曞紑鏀惰捣 // $('.button.collapsed').text('灞曞紑'); // if ($('#prodcoll #collbody').length > 0) { // $('#prodcoll').css({height:'68px'}); // if ($('#collbody').height() <= 68) { // $('.product-entry .button').show(); // } // } else { // $('#prodcoll').css({height:'auto'}); // } // var thisHeight = $('#collbody').height(); // var thishieFalg= false; // $('.button').click(function(){ // if(thishieFalg){ // $('#prodcoll').animate({height:'68px'},300,function(){ // $('.button').addClass('collapsed'); // $('.button').text('灞曞紑'); // thishieFalg = false; // }); // } else { // $('#prodcoll').animate({height:thisHeight},300,function(){ // $('.button').removeClass('collapsed'); // $('.button').text('鏀惰捣'); // thishieFalg = true; // }); // } // }) // 鍒囨崲閮ㄥ垎榛樿閫変腑绗竴涓 $(function(){ $('#myTab li').eq(0).addClass('active'); if ($(window).width() >= 768) { $('.tab-content .tab-pane').eq(0).addClass('active'); } else{ var len = $('.tab-content .tab-pane').length; if(len>1){ $('.tab-content .tab-pane').eq(0).removeClass('active'); }else{ $('.tab-content .tab-pane').eq(0).addClass('active'); } $('.tab-content.stat-wrap').find('.tab-pane').eq(0).addClass('active'); } }) $('.popup.hidden-xs').hide(); // 瑕嗙洊鎶ラ敊 var H3C = H3C || {}; if ((typeof H3C.getCookie) == 'undefined') { H3C.getCookie = function() { return 0; } } // 鐧诲綍鐘舵€侀儴鍒 ; (function() { function GetCookie(sname) { var acookie = document.cookie.split(";"); for (var i = 0; i < acookie.length; i++) { var arr = acookie[i].split("="); if (sname == trim(arr[0])) { if (arr.length > 1) { userName = arr[1].substring(0, 60); return unescape(userName); } else { return ""; } } } return ""; } function trim(trimStr) { return trimStr.replace(/(^\s*)|(\s*$)/g, ""); } function GetCurUrl() { var curUrl = window.location.href; var arrayStr = curUrl.split("?ResponseTicket"); return arrayStr[0]; } with(document) { if (GetCookie("USER_ID").length > 0) { $('.headRightBox .rigiHead').eq(0).hide(); $('.headRightBox .rigiHead').eq(1).html("娆㈣繋 " + GetCookie("USER_ID") + " | ' + '鍥炲埌椤堕儴' + '') $(window).scroll(function() { var scrollHeight = $(window).height(); if ($('html').scrollTop() > scrollHeight) { $('.gotoTopBtn').show(); } else { $('.gotoTopBtn').hide(); } }) $('.gotoTopBtn').click(function() { $('html').animate({ scrollTop: 0 }, 300, 'linear', function() {}) }) })() // 璋冩暣灞曞紑鍥剧墖鍘嬬缉闂 $('.serversCon .maintanBoxCon p img').css({ height: 'auto' }) // 绠$悊鍥㈤槦閮ㄥ垎淇敼 window.onload = function() { onscriptsJS(); //璋冪敤涓€绾ч〉闈s if ($('.secondDiv').length > 0 && $('.secondDiv.threeDiv').length == 0) { secondscriptsJS(); //璋冪敤浜岀骇椤甸潰js } if ($('.secondDiv.threeDiv').length > 0) { threeScriptJs(); } }; (function() { //淇敼闈㈠寘灞戦棶棰 //浜у搧闈㈠寘灞戦棶棰 鏂扮殑涓夌骇椤甸潰 if ($('#crumbs .secondWrapBox a[class="blue3"]').eq(2).text() == "浜у搧浠嬬粛") { $('#crumbs .secondWrapBox a[class="blue3"]').eq(2).attr("href", "/"); $('#crumbs .secondWrapBox a[class="blue3"]').eq(2).text("浼佷笟绾т骇鍝?); } //浜у搧闈㈠寘灞戦棶棰 鑰佺殑椤甸潰 if ($('.crumbs .koli a[class="blue3"]').eq(2).text() == "浜у搧浠嬬粛") { $('.crumbs .koli a[class="blue3"]').eq(2).attr("href", "/"); $('.crumbs .koli a[class="blue3"]').eq(2).text("浼佷笟绾т骇鍝?); } //鏂癐T鏅烘収浜т笟鑱旂洘闈㈠寘灞戦棶棰 if (typeof($('#crumbs .secondWrapBox').html()) != 'undefined' && $('#crumbs .secondWrapBox').html().indexOf('鑱旂洘浠嬬粛') != -1) { $('#crumbs .secondWrapBox').html($('#crumbs .secondWrapBox').html().replace('鑱旂洘浠嬬粛', '鏂癐T鏅烘収浜т笟鑱旂洘')); } //娣诲姞璇勮璺緞/cn if (typeof($('iframe').attr("src")) != 'undefined' && $('iframe').attr("src").indexOf('/') != -1 && $('iframe').attr("src").indexOf('/cn/') == -1) { $('iframe').attr("src", 'http://#' + $('iframe').attr('src')); } //娣诲姞鍙嶉璺緞/cn if (typeof($('.prolist_container .pro_right .pro_add a').attr("href")) != 'undefined' && $('.prolist_container .pro_right .pro_add a').attr("href").indexOf('/') != -1 && $('.prolist_container .pro_right .pro_add a').attr("href").indexOf('/cn/') == -1) { $('.prolist_container .pro_right .pro_add a').attr("href", 'http://#' + $('.prolist_container .pro_right .pro_add a').attr('href')); } //淇敼鍏徃鍔ㄦ€侀摼鎺 if (typeof($('.tab-content7 .quickTabContent .quickTabInner:eq(2) h3 a').attr("href")) != 'undefined' && $('.tab-content7 .quickTabContent .quickTabInner:eq(2) h3 a').attr("href").indexOf('/') != -1) { var href = $('.tab-content7 .quickTabContent .quickTabInner:eq(2) h3 a').attr("href"); $('.tab-content7 .quickTabContent .quickTabInner:eq(2) h3 a').attr("href", href.substring(0, href.lastIndexOf("News_Media"))); } // 鍙充晶鍦ㄧ嚎鍜ㄨ閰嶇疆瀵硅薄 var helpConfig = [ { name: '浼佷笟绾т骇鍝?, match: /products___technology\/products/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍜岃В鍐虫柟妗堝敭鍓嶅挩璇㈡柟寮忥細', items: [ { text: '缃戜笂鎻愪氦璐拱鎰忓悜', icon: '/images/pophelp01.png', link: 'http://#' }, { text: '鑱旂粶鍔炰簨澶?, icon: '/images/pophelp02.png', link: 'http://#' }, { text: '鑱旂粶鍚堜綔浼欎即', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-810-0504 杞 1', icon: '/images/pophelp04.png', link: '' } ], otherItems: [ { title: '鍞墠鍜ㄨ', text: '鍞墠宸ョ▼甯堝湪绾夸负鎮ㄦ彁渚涘府鍔?, icon: '/images/pophelp05.png', link: 'http://#' } ], height: '310px' }, { name: '鏅鸿兘缁堢浜у搧', match: /products___technology\/intelligentterminalproducts/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍞墠鍞悗鍜ㄨ鏂瑰紡锛?, items: [ { text: '鍦ㄧ嚎鍜ㄨ', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-600-6363', icon: '/images/pophelp04.png', link: '' } ], otherItems: [], height: '180px' }, { name: '鎿嶄綔绯荤粺', match: /products___technology\/technology/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍜岃В鍐虫柟妗堝敭鍓嶅挩璇㈡柟寮忥細', items: [ { text: '缃戜笂鎻愪氦璐拱鎰忓悜', icon: '/images/pophelp01.png', link: 'http://#' }, { text: '鑱旂粶鍔炰簨澶?, icon: '/images/pophelp02.png', link: 'http://#' }, { text: '鑱旂粶鍚堜綔浼欎即', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-810-0504 杞 1', icon: '/images/pophelp04.png', link: '' } ], otherItems: [ { title: '鍞墠鍜ㄨ', text: '鍞墠宸ョ▼甯堝湪绾夸负鎮ㄦ彁渚涘府鍔?, icon: '/images/pophelp05.png', link: 'http://#' } ], height: '310px' }, { name: '瑙e喅鏂规', match: /cn\/solution/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍜岃В鍐虫柟妗堝敭鍓嶅挩璇㈡柟寮忥細', items: [ { text: '缃戜笂鎻愪氦璐拱鎰忓悜', icon: '/images/pophelp01.png', link: 'http://#' }, { text: '鑱旂粶鍔炰簨澶?, icon: '/images/pophelp02.png', link: 'http://#' }, { text: '鑱旂粶鍚堜綔浼欎即', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-810-0504 杞 1', icon: '/images/pophelp04.png', link: '' } ], otherItems: [ { title: '鍞墠鍜ㄨ', text: '鍞墠宸ョ▼甯堝湪绾夸负鎮ㄦ彁渚涘府鍔?, icon: '/images/pophelp05.png', link: 'http://#' } ], height: '310px' }, { name: '鎶€鏈挩璇㈡湇鍔?, match: /cn\/technical_service/g, title: ' 涓烘偍鏈嶅姟', desc: '鍞墠鍞悗鍜ㄨ鏂瑰紡锛?, items: [ { text: '椤圭洰鍜ㄨ', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-600-6363', icon: '/images/pophelp04.png', link: '' } ], otherItems: [], height: '180px' }, { name: '浜у搧鏀寔涓庢湇鍔?, match: /cn\/service/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍜岃В鍐虫柟妗堝敭鍓嶅挩璇㈡柟寮忥細', items: [ { text: '缃戜笂鎻愪氦璐拱鎰忓悜', icon: '/images/pophelp01.png', link: 'http://#' }, { text: '鑱旂粶鍔炰簨澶?, icon: '/images/pophelp02.png', link: 'http://#' }, { text: '鑱旂粶鍚堜綔浼欎即', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-810-0504 杞 1', icon: '/images/pophelp04.png', link: '' } ], otherItems: [ { title: '鍞墠鍜ㄨ', text: '鍞墠宸ョ▼甯堝湪绾夸负鎮ㄦ彁渚涘府鍔?, icon: '/images/pophelp05.png', link: 'http://#' } ], height: '310px' }, { name: '澶у', match: /cn\/training/g, title: '涓烘偍鏈嶅姟', desc: '', items: [ { text: '400-8100-504-4', icon: '/images/pophelp04.png', link: '' }, { text: '椤圭洰鍜ㄨ', icon: '/images/pophelp05.png', link: '#' } ], otherItems: [], height: '180px' }, { name: '鍚堜綔浼欎即', match: /cn\/partner/g, // match: /product-details/g, title: ' 涓烘偍鏈嶅姟', desc: '', items: [ { text: '椤圭洰鍜ㄨ', icon: '/images/pophelp05.png', link: '' }, { text: '400-8100-504-4', icon: '/images/pophelp04.png', link: '' }, { text: '鎰忚涓庡弽棣?, icon: '/images/pophelp04.png', link: 'http://#' } ], otherItems: [], height: '180px' }, { name: '鍏充簬鎴戜滑', match: /cn\/about_/g, title: ' 涓烘偍鏈嶅姟', desc: '浜у搧鍜岃В鍐虫柟妗堝敭鍓嶅挩璇㈡柟寮忥細', items: [ { text: '缃戜笂鎻愪氦璐拱鎰忓悜', icon: '/images/pophelp01.png', link: 'http://#' }, { text: '鑱旂粶鍔炰簨澶?, icon: '/images/pophelp02.png', link: 'http://#' }, { text: '鑱旂粶鍚堜綔浼欎即', icon: '/images/pophelp03.png', link: 'http://#' }, { text: '400-810-0504 杞 1', icon: '/images/pophelp04.png', link: '' } ], otherItems: [ { title: '鍞墠鍜ㄨ', text: '鍞墠宸ョ▼甯堝湪绾夸负鎮ㄦ彁渚涘府鍔?, icon: '/images/pophelp05.png', link: 'http://#' } ], height: '310px' } ] // 鍙充晶甯姪鍜ㄨ $(function() { $(".tabhelp").click(function() { var targetHeight = $('.righthelp').attr('data-target-h') if ($(this).hasClass("off")) { $(".righthelp").animate({ right: "0px", height: targetHeight}); $(this).removeClass("off"); } else { $(".righthelp").animate({ right: "-240px", height: "200px" }); $(this).addClass("off"); } }); }) var url = window.location.pathname.toLowerCase(); if ($('div').hasClass("righthelp") == false && url.split('/').length > 3) { var items = '' var helpHeight = '' $.each(helpConfig, function(index, item) { if (item.match.test(url)) { if (item.title && item.title != '') { items += '
  • ' + item.title + '
  • ' } if (item.desc && item.desc != '') { items += '
  • ' + item.desc + '
  • ' } if (item.items && item.items.length > 0) { $.each(item.items, function(optIndex, opt) { if (opt.link && opt.link != '') { items += '
  • ' } else { items += '
  • ' } if (opt.icon && opt.icon != '') { items += '' } if (opt.link && opt.link != '') { items += '' + opt.text + '' } else { items += opt.text } items += '
  • ' }); } if (item.otherItems && item.otherItems.length > 0) { items += '
  • ' $.each(item.otherItems, function(optIndex, opt) { items += '
  • ' if (opt.icon && opt.icon != '') { items += '' } items += '

    ' if (opt.title && opt.title != '') { items += '' + opt.title + '
    ' } if (opt.link && opt.link != '') { items += '' + opt.text + '' } else { items += opt.text } items += '

    ' items += '
  • ' }); } helpHeight = item.height } }); if (items != '') { $('body').append('
    ' + '
    ' + '' + '
    ' + '
    ' + '' + '
    ' + '
    '); } } })() //鍝佺墝鐞嗗康js var hz_idea_js = {} || hz_idea_js; hz_idea_js.slider = function() { if ($(window).width() < 770) { var swiper = new Swiper('.swiper-container1', { pagination: '.swiper-pagination_idea1', paginationClickable: true, loop: true }); } else { var idea_p1_li = $('.idea-p1-pic').children('div').children('.swiper-slide'); var idea_p1_s_li = $('.idea-page1-s-img').children('li'); var idea_now = 0; idea_p1_li.eq(0).addClass('active'); idea_p1_s_li.each(function(index) { $(this).click(function() { idea_now = index; idae_tab(index); }); }); $(".idea-p1-arrowl").mouseover(function() { $(".idea-p1-arrowl").children('img').attr('src', '/images/hz-08-idea-p1-arrowl2.png'); //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 }).mouseleave(function() { $(".idea-p1-arrowl").children('img').attr('src', '/images/hz-08-idea-p1-arrowl.png'); //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 }) $(".idea-p1-arrowr").mouseover(function() { $(".idea-p1-arrowr").children('img').attr('src', '/images/hz-08-idea-p1-arrowr2.png'); //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 }).mouseleave(function() { $(".idea-p1-arrowr").children('img').attr('src', '/images/hz-08-idea-p1-arrowr.png'); //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 }) idae_autoPlay(); $('.idea-p1-arrowl').click(function() { idea_now--; if (idea_now < 0) { idea_p1_s_li.length - 1; } idae_tab(idea_now); }); $('.idea-p1-arrowr').click(function() { idea_now++; if (idea_now == idea_p1_s_li.length) { idea_now = 0; } idae_tab(idea_now); }); $('.idea-page-left-box').mouseover(function() { clearInterval(idae_timer); }); $('.idea-page-left-box').mouseout(function() { idae_autoPlay(); }); function idae_autoPlay() { idae_timer = setInterval(function() { $('.idea-p1-arrowr').trigger('click'); }, 3000) } function idae_tab(val) { idea_p1_li.removeClass('active').eq(val).addClass('active'); idea_p1_s_li.removeClass('active').eq(val).addClass('active'); } } } hz_idea_js.slider(); hz_idea_js.slider2 = function() { if ($(window).width() > 770) { var idea_cont = $(".idea-cont"); var idea_part = $(".idea-part"); var idea_txt = $(".idea-txt"); var idea_tit = $(".idea-tit"); var idea_line = $(".idea-line"); idea_cont.each(function(index) { $(this).mouseover(function() { idea_cont.removeClass("idea-cont-0").eq(index).addClass("idea-cont-0"); idea_part.removeClass("idea-part-1").eq(index).addClass("idea-part-1"); idea_txt.removeClass("idea-txt-1").eq(index).addClass("idea-txt-1"); idea_tit.removeClass("idea-tit-1").eq(index).addClass("idea-tit-1"); idea_line.removeClass("idea-line-1").eq(index).addClass("idea-line-1"); }) }) } else { var swiper1 = new Swiper('.swiper-container2', { pagination: '.swiper-pagination_idea2', paginationClickable: true, loop: true }); } } hz_idea_js.slider2(); hz_idea_js.slider2 = function() { if ($(window).width() > 770) { var idea_p4_li = $(".idea-p4-li"); var idea_p4_img = $(".idea-p4-pic").children('div').children('div').children('.swiper-slide'); var idea_p4_t = $(".idea-p4-t"); var idea_p4_img1 = $(".idea-p4-img1"); var idea_p4_img2 = $(".idea-p4-img2"); idea_p4_img.eq(0).show(); idea_p4_li.each(function(index) { $(this).mouseover(function() { idea_p4_li.removeClass("active").eq(index).addClass("active"); idea_p4_img.css("display", "none").eq(index).css("display", "block"); idea_p4_img1.css("display", "inline-block").eq(index).css("display", "none"); idea_p4_img2.css("display", "none").eq(index).css("display", "inline-block"); }); }); } else { var mySwiper = new Swiper('.swiper-container3', { pagination: '.pagination3_idea3', paginationClickable: true, moveStartThreshold: 100, loop: true }); var idea_h_w = $('.idea-h-w'); var idea_h_p4 = $('.idea-h-p4'); $(window).load(function() { $('.idea-cont-00').css('height', idea_h_w.height()); $('.idea-p4-t').css('height', idea_h_p4.outerHeight()); }); } var idea_p5_button = $(".idea-p5-button"); var idea_btn1 = $(".idea-btn1"); var idea_btn2 = $(".idea-btn2"); if ($(window).width() > 770) { idea_p5_button.each(function(index) { $(this).mouseover(function() { idea_btn1.eq(index).css("display", "none"); idea_btn2.eq(index).css("display", "block"); }); $(this).mouseout(function() { idea_btn1.eq(index).css("display", "block"); idea_btn2.eq(index).css("display", "none"); }); }); } } hz_idea_js.slider2(); hz_idea_js.play = function() { var idea_player_btn_i = $('.idea-player-btn-i'); var idea_player_btn_ii = $('.idea-player-btn-ii'); var idea_v_box = $('.idea-video-box'); var idea_close = $('.idea-close'); //alert(player_btn_i.eq(3).length) $('.idea-f-w').click(function() { idea_v_box.show(); $('#idea-cloud-video').hide(); $('#idea-cloud-video-1').show(); }); idea_player_btn_i.eq(0).click(function() { $('.idea-video-box').show(); //璇峰湪瑙嗛鍦板潃鍜岀缉鐣ュ浘鍦板潃淇敼涓虹殑鍦板潃 $('.idea-abc').html("
    "); $('.videowin').each(function() { var _url = $('#videowin').attr('data-src'); var _img = $('#videowin').attr('data-img'); var _Width = $('.videowin').width(); var _Height = _Width * 0.6; $('.videowin').css({ "height": _Height }); jwplayer("videowin").setup({ stretching: "exactfit", //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 flashplayer: "http://oss.mestudio.cn/player.swf", image: _img, levels: [{ file: _url }], control: false, controlbar: 'over', width: _Width, height: _Height, }); if ($(window).width() > 768) { $('.idea-close').click(function() { jwplayer('videowin').pause(true); }); } }); }); idea_player_btn_i.eq(1).click(function() { idea_v_box.show(); $('#idea-cloud-video').show(); $('#idea-cloud-video-1').hide(); }); idea_player_btn_i.eq(2).click(function() { if ($(window).width() > 770) { $('#idea-cloud-video-1').hide(); } $('.idea-video-box').show(); //璇峰湪瑙嗛鍦板潃鍜岀缉鐣ュ浘鍦板潃淇敼涓虹殑鍦板潃 $('.idea-abc').html("
    "); $('.videowin').each(function() { var _url = $('#videowin').attr('data-src'); var _img = $('#videowin').attr('data-img'); var _Width = $('.videowin').width(); var _Height = _Width * 0.6; $('.videowin').css({ "height": _Height }); jwplayer("videowin").setup({ stretching: "exactfit", flashplayer: "http://oss.mestudio.cn/player.swf", //璇峰湪姝ゅ淇敼涓虹殑鍦板潃 image: _img, levels: [{ file: _url }], control: false, controlbar: 'over', width: _Width, height: _Height, }); if ($(window).width() > 768) { $('.idea-close').click(function() { jwplayer('idea-videowin').pause(true); }); } }); }); var idea_c_video = $('#idea-cloud-video'); idea_close.click(function() { idea_v_box.hide(); }); } hz_idea_js.play(); var hz_partner_js = {} || hz_partner_js; hz_partner_js.txt1 = function() { $('.par-jc-txt').each(function(index) { if ($('.par-jc-txt').eq(index).text().length >= 20) { var txt = $('.par-jc-txt').eq(index).text() var s = $.trim(txt); $('.par-jc-txt').eq(index).html(s.substr(0, 60) + '...'); } }); } hz_partner_js.txt1(); var hz_partner_js = {} || hz_partner_js; hz_partner_js.txt = function() { $('.te-title-3').each(function(index) { if ($('.te-title-3').eq(index).text().length >= 20) { var txt = $('.te-title-3').eq(index).text() var s = $.trim(txt); $('.te-title-3').eq(index).html(s.substr(0, 100) + '...'); } }); } hz_partner_js.txt(); hz_partner_js.list = function() { if (window.width > 770) { var training_courseList = $('.training_courseList'); training_courseList.each(function(index) { $(this).mouseover(function() { $('.training_courseListImg').eq(index).hide(); $('.training_courseListpic').eq(index).show(); }).mouseout(function() { $('.training_courseListImg').eq(index).show(); $('.training_courseListpic').eq(index).hide(); }) }) } $(".partner-arrow-l").mouseover(function() { $(".partner-arrow-l").children('img').attr('src', '/cn/tres/NewWebUI/images/partner/hz-10-partner-class-arrowl-1.png'); }).mouseleave(function() { $(".partner-arrow-l").children('img').attr('src', '/cn/tres/NewWebUI/images/partner/hz-10-partner-class-arrowl.png'); }) $(".partner-arrow-r").mouseover(function() { $(".partner-arrow-r").children('img').attr('src', '/cn/tres/NewWebUI/images/partner/hz-10-partner-class-arrowr-1.png'); }).mouseleave(function() { $(".partner-arrow-r").children('img').attr('src', '/cn/tres/NewWebUI/images/partner/hz-10-partner-class-arrowr.png'); }) } hz_partner_js.list(); hz_partner_js.slider = function() { var banner_slide = $('.swiper-containerSuccH5').children('.swiper-wrapper').children('.swiper-slide'); if (banner_slide.length > 1) { $('.swiper-pagination-clickable').show(); } else { $('.swiper-pagination-clickable').hide(); } if ($(window).width() > 770) { $('.training_courseList').each(function(index) { $(this).mouseover(function() { $('.training_courseList').removeClass('active').eq(index).addClass('active') }); $(this).mouseout(function() { $('.training_courseList').removeClass('active'); }); }); } var hz_slide = $('.swiper-container-hz10').children('.swiper-wrapper').children('.swiper-slide'); var h = parseInt(hz_slide.outerWidth(true)) now = 0; //alert(parseInt($('.swiper-slide').outerWidth(true))) $('.partner-arrow-l').click(function(index) { if (now >= hz_slide.length - 3) { now = hz_slide.length - 3; } else { now = now + 1; $('.swiper-container-hz10').animate({ "left": -now * h }); } }); $('.partner-arrow-r').click(function(index) { console.log(now) if (now <= 0) { now = 0; } else { now = now - 1; $('.swiper-container-hz10').animate({ "left": -now * h }); } }); if ($(window).width() < 770) { var mySwiper = new Swiper('.swiper-container-hz10', { grabCursor: true, pagination: '.pagination', }) } } hz_partner_js.slider(); // partner-basis var hz_par_basis_js = {} || hz_par_basis_js; hz_par_basis_js.aclass = function() { var par_li = $('.par-jc-box').children('li'); var par_jc_video = $('.par-jc-video'); par_li.each(function(index) { $(this).click(function() { par_li.removeClass('active').eq(index).addClass('active'); par_jc_video.removeClass('active').eq(index).addClass('active'); }); }); } hz_par_basis_js.aclass(); hz_par_basis_js.lists = function() { var par_li = $('.par-jc-box').children('li'); if ($(window).width() > 770) { var par_w = $('.par-jc-box').width(); var par_tab_li = $('.par-jc-box').children('li'); par_tab_li.css('width', par_w / par_tab_li.length); var par_tab_li_w = par_tab_li.width(); //alert(par_tab_li_w-$('.par-jc-s').width()) $('.par-jc-s').each(function(index){ $('.par-jc-s').eq(index).css('paddingLeft',(par_tab_li_w-$('.par-jc-s').eq(index).width())/2); }); } if ($(window).width() < 770) { var h = $(window).height() - $('.headMblTop').height(); par_li.css('height', h / par_li.length); $('.par-jc-s').each(function(index) { var h1 = $('.par-jc-s').eq(index).height(); $('.par-jc-s').eq(index).css('marginTop', -h1 / 2); }); $('.par-w-menu').click(function() { $('.par-jc-box').stop().animate({ 'left': '0' }); $('.hz-10-bas-container').css('height', h); $('.hz-10-bas-container').css('overflow', 'hidden') }); $('.par-jc-box').click(function() { $('.par-jc-box').stop().animate({ 'left': '-120%' }); $('.hz-10-bas-container').css('height', $(window).height()); $('.hz-10-bas-container').css('overflow', 'visible') }); } $('.par-jc-video').each(function(index) { var par_video_li = $('.par-jc-video').eq(index).children('li'); par_video_li.each(function(index) { if (index % 3 == 0) { par_video_li.eq(index).css('margin-left', '0') } }); }); } hz_par_basis_js.lists(); var hz_par_tec_js = {} || hz_par_tec_js; hz_par_tec_js.videoplay = function() { var p1_video = $('.te-v1'); var v_box = $('.video-box'); var close = $('.close'); if ($(window).width() < 770) { close.click(function() { v_box.hide(); $('.abc').html(''); $('#cloud-video-2').get(0).pause(); }); p1_video.click(function() { v_box.show(); $('#cloud-video-2').get(0).load(); var player = document.getElementById('cloud-video-2'); player.play(); }); } } hz_par_tec_js.videoplay(); var hz_cul_09_js = {} || hz_cul_09_js; hz_cul_09_js.swiper = function(){ if($(window).width()<770){ var swiper_cul09 = new Swiper('.swiper-container-cul09', { grabCursor: true, pagination: '.pagination-cul09', loop:true }) } } hz_cul_09_js.swiper(); $(function(){ $(function(){ var hz_ch = $('.OperationalTabBody_hzcg').height(); var hz_lis = $('.OperationalTabBody_4').find('.OperationalTabLeft ').find('.clearfix').find('li'); var hz_li = $('.OperationalTabBody_hzcg').find('.OperationalTabLeft ').find('.clearfix').find('li'); var hz_lh = hz_lis.outerHeight(true)-parseInt(hz_li.css('margin-top')); var hz_martop = parseInt(hz_li.css('margin-top')); var hz_lh_ptop = $('.OperationalTabBody_hzcg').find('.OperationalTabLeft').find('.clearfix'); var hz_lh_pad = parseInt(hz_lh_ptop.css('padding-top')) + parseInt(hz_lh_ptop.css('padding-bottom')); var hz_height = hz_li.length*hz_lh+hz_martop+hz_lh_pad; $('.OperationalTabBody_hzcg').css('height',hz_height) }) })