details.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var mySwiper = new Swiper ('.swiper-container', {
  2. loop : true,
  3. loopedSlides:4,
  4. autoplay:5500,
  5. autoplayDisableOnInteraction : false,
  6. // 如果需要分页器
  7. pagination: '.swiper-pagination',
  8. // 如果需要前进后退按钮
  9. // prevButton:'.swiper-button-prev',
  10. // nextButton:'.swiper-button-next',
  11. slidesPerView :"auto"
  12. })
  13. $(function(){
  14. // 处理资讯详情图片变形问题
  15. $('.y_newsdata_cont').find('img').each(function(){
  16. var $that = $(this);
  17. var _alt = $that.attr('alt');
  18. if(_alt != 'code'){
  19. if(_alt != 'zixun'){
  20. $that.removeAttr('width');
  21. $that.removeAttr('height');
  22. $that.css({'display':'block','width':'100%','height':'auto'});
  23. }
  24. }
  25. })
  26. //报名验证提交的调用
  27. var fun = {
  28. "error" : function(){
  29. PublicAction.hint("提交末成功!"); //编写需要操作的方法
  30. },
  31. "success" : function(){
  32. PublicAction.hint("提交成功!"); //编写需要操作的方法
  33. $('body input[type="text"]').val('')
  34. RemoveDiv(); //数据提交成功后关闭弹出层
  35. }
  36. }
  37. PublicAction.AjaxSend({CORID:'apply_submit'},fun);
  38. })