1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- $(function(){
- // 轮播图片
- var mySwiper = new Swiper('.swiper-container', {
- slidesPerView:2.9,
- slidesPerGroup:1,
- spaceBetween:30,
- slidesOffsetBefore:10,
- slidesOffsetAfter:100,
- })
- // 报名弹窗
- $('.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*/
- }
- );
- })
|