index.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // 热门资讯
  2. var m_Huxing_lunbo = new Swiper('.m_zx_lunbo', {
  3. loop : true,
  4. spaceBetween: 10,
  5. centeredSlides: true,
  6. slidesPerView: 'auto',
  7. touchRatio: 0.5,
  8. slideToClickedSlide: true
  9. });
  10. // $('.m_switch .on').prev().addClass('in');
  11. $('.bmclick').on('click',function(){
  12. $('.m_bmbox').show();
  13. $(this).hide();
  14. })
  15. $('.m_bmboxbj').on('click',function(){
  16. $('.m_bmbox').hide();
  17. $('.bmclick').show();
  18. })
  19. $('.m_bmgb').on('click',function(){
  20. $('.m_bmbox').hide();
  21. $('.bmclick').show();
  22. })
  23. // 报名
  24. PublicAction.AjaxSend(
  25. {
  26. CORID:'m_buttom', /*操作ID*/
  27. }
  28. );
  29. $('.submit_area .m_buttom').on('click',function(){
  30. setTimeout(function(){
  31. var _html = $('.alert-container .alert-content').html();
  32. console.log(_html);
  33. if(_html=='提交成功'){
  34. $('.m_bmgb').click();
  35. $('body input[type="text"]').val('');
  36. }
  37. },300)
  38. })
  39. // 报名
  40. PublicAction.AjaxSend(
  41. {
  42. CORID:'m_buttom1', /*操作ID*/
  43. }
  44. );