1$(function() { 2 var wd = $(window).width(); 3 var chanpinMenuOff = $('.chanpinMenuBox').offset(); 4 5 $(window).scroll(function() { 6 scrollHeight = $(this).scrollTop(); 7 if (wd < 768) { 8 //é¦é¡µæµ®å¨è´ä¹°bannerx 9 var bannerH = $('.fixedBanner').height(); 10 if(scrollHeight > bannerH){ 11 $('.fixedbuy').removeClass('layui-hide'); 12 }else{ 13 $('.fixedbuy').addClass('layui-hide'); 14 } 15 } 16 17 /***产åå¯¼èªæ¬æµ®**/ 18 if(typeof(chanpinMenuOff) != 'undefined'){ 19 if(scrollHeight > chanpinMenuOff.top){ 20 $(".chanpinMenuBoxContent").addClass("chanpinMenufixed"); 21 }else{ 22 $(".chanpinMenuBoxContent").removeClass("chanpinMenufixed"); 23 } 24 } 25 }); 26 27 /***********chanpin.html start******************************/ 28 var menuIndex = window.location.hash; 29 if (window.location.href.indexOf('chanpin.html') > -1 && menuIndex.indexOf("#") > -1) { 30 var menuIndexNow = menuIndex.split('#'); 31 if (menuIndexNow[1] >= 0) { 32 $('.chanpinMenu li').eq(menuIndexNow[1]).trigger('click'); 33 } 34 } 35 /***********chanpin.html end******************************/ 36 37 /*************ææº begin**********/ 38 if (wd < 768) { 39 $('.m_menu').click(function() { 40 if ($('.top').hasClass('m_o95')) { 41 $('.top').removeClass('m_o95').animate({ height: $(window).height() }, 300); 42 $(this).attr('src', '//pic.mairuan.com/WebSource/common/web/images/chacha_menu.png'); 43 } else { 44 $('.top').addClass('m_o95').animate({ height: '1.267rem' }, 100); 45 $(this).attr('src', '//pic.mairuan.com/WebSource/common/web/images/m_menu.png'); 46 } 47 }); 48 49 $('.footer .footerTitle').click(function() { 50 if ($(this).nextAll('ul').css('display') == 'none') { 51 $(this).nextAll('ul').removeClass('hide-xs'); 52 $(this).find('img').attr('src', '//pic.mairuan.com/WebSource/common/web/images/chacha.png'); 53 } else { 54 $(this).nextAll('ul').addClass('hide-xs'); 55 $(this).find('img').attr('src', '//pic.mairuan.com/WebSource/common/web/images/jia.png'); 56 } 57 }); 58 59 layui.use(['cycle'], function(cycle) { 60 $('.supportMenu').cycle({ 61 'log': false, 62 'slides': '> li', 63 'fx': 'carousel', 64 'timeout': 0, 65 'prev': '.supportMenuPrev', 66 'next': '.supportMenuNext', 67 }); 68 }); 69 } 70 /*************ææº end**********/ 71 /** buy start */ 72 // buy.html ååææ¯åæ° 73 layui.use('element', function(){ 74 var element = layui.element; 75 element.render(); 76 //⦠77 $(".doufu .layui-colla-title").click(function(){ 78 $(this).find("i").toggleClass("rotate"); 79 }); 80 }); 81 /** buy end */ 82}); 83 84 85 86/*页é¢js*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.