qixinghai.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. $(function(){
  2. var _height = $(window).height();
  3. console.log(_height);
  4. $('.lunbo_box').height(_height);
  5. var m_Huxing_lunbo = new Swiper('.m_lunbo', {
  6. loop : true,
  7. // spaceBetween: 10,
  8. centeredSlides: true,
  9. slidesPerView: 'auto',
  10. touchRatio: 0.5,
  11. slideToClickedSlide: true,
  12. nextButton: '.swiper-button-next',
  13. prevButton: '.swiper-button-prev',
  14. });
  15. $('.m_xf').on('click',function(){
  16. $('.Navigation').toggle();
  17. })
  18. $('.m_bmclick').on('click',function(){
  19. $('.m_bm_box').show();
  20. $('.Navigation').hide();
  21. })
  22. $('.m_gb_box').on('click',function(){
  23. $('.m_bm_box').hide();
  24. })
  25. PublicAction.AjaxSend({CORID:'m_bm_bottom'/*操作ID*/});
  26. $('.m_bm_bottom').on('click',function(){
  27. setTimeout(function(){
  28. var _html = $('.alert-container .alert-content').html();
  29. if(_html == '提交成功'){
  30. $('.m_bm_box').hide();
  31. $('.m_bm_box form input[type="text"]').val('');
  32. }
  33. console.log(_html);
  34. },300)
  35. })
  36. })