$(function(){ var mySwiper = new Swiper('.swiper-container', { slidesPerView:1.9, slidesPerGroup:1, spaceBetween:10, slidesOffsetBefore:15, slidesOffsetAfter: 15, }) // 报名弹窗 $('.warn').on('click',function(){ $('.layer').show(); $('.pop-up').show(); $('.pop-up').animate({top:"50%"}); var oid = $(this).attr('data-id'); $('.pop-up .submit_area input[name="hid"]').val(oid) }) // 关闭按钮 $('.cls').on('click',function(){ $('.pop-up').animate({top:"-50%"},function(){ $('.pop-up').hide(); $('.layer').hide(); $('.pop-up .submit_area input[name="hid"]').val(0) }); }) // 推荐理由 $('.speity a').on('click',function(){ var that = $(this); if(that.hasClass('on')){ that.removeClass('on'); $('.reason').hide(); }else{ $('.speity a').removeClass('on'); $('.reason').hide(); that.addClass('on'); that.siblings('.reason').show(); } }) /* * 调用的方法 * */ PublicAction.AjaxSend( { CORID:'wint_butt', /*操作ID*/ } ); })