jQuery(function($){ // 加载动画 if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: -50, mobile: true, live: true }); wow.init(); }; // 更改同意按钮选中状态 $('.agree>span').find('em').click(function() { $(this).toggleClass('checked'); }); // 更改单选按钮选中状态 $('.radio-section>span').click(function() { $('.radio-section>span').find('em').removeClass('checked'); $(this).find('em').addClass('checked'); }); // 提现跳转 $('.withdrawal-btn').click(function() { window.location.href = "/yxxw.lee1203.com/withdrawal-page.html"; }); // 首页筛选展示更多 $('.screen .more-btn').click(function() { if($(this).find('ins').html() == '更多'){ $('.screen .more-btn').find('ins').html('更多'); $(this).find('ins').html('收起'); $('.screen .more-btn').find('em').removeClass('rotate'); $(this).find('em').addClass('rotate'); $('.screen>li').find('section').removeClass('open'); $(this).parent().find('section').addClass('open'); }else{ $(this).find('ins').html('更多'); $(this).find('em').removeClass('rotate'); $(this).parent().find('section').removeClass('open'); } }); // 二级导航切换 var pullNavSwiper = new Swiper('.pull-nav-swiper',{ slidesPerView: 'auto', slidesPerGroup: 1, slidesPerGroupAuto: true, autoplay:false, }) // if(screen.width <= 768){ // }else{ // } // 手机导航按钮 $('.head .head-btn').click(function() { if ($('.head .head-btn').attr('class') == 'head-btn cur') { $('.head .head-btn').removeClass('cur'); $('.head .nav').removeClass('active'); $('.head .nav-bg').removeClass('active'); } else { $('.head .head-btn').addClass('cur'); $('.head .nav').addClass('active'); $('.head .nav-bg').addClass('active'); $('.head .logo').addClass('active'); } }); $('.head .nav-bg').click(function() { $(this).removeClass('active'); $('.head .head-btn').removeClass('cur'); $('.head .nav').removeClass('active'); }); })