1234567891011121314151617181920212223242526272829303132333435363738394041 |
- var mySwiper = new Swiper ('.swiper-container', {
- loop : true,
- loopedSlides:4,
- autoplay:5500,
- autoplayDisableOnInteraction : false,
- // 如果需要分页器
- pagination: '.swiper-pagination',
- // 如果需要前进后退按钮
- // prevButton:'.swiper-button-prev',
- // nextButton:'.swiper-button-next',
- slidesPerView :"auto"
- })
- $(function(){
- // 处理资讯详情图片变形问题
- $('.y_newsdata_cont').find('img').each(function(){
- var $that = $(this);
- var _alt = $that.attr('alt');
- if(_alt != 'code'){
- if(_alt != 'zixun'){
- $that.removeAttr('width');
- $that.removeAttr('height');
- $that.css({'display':'block','width':'100%','height':'auto'});
- }
- }
- })
- //报名验证提交的调用
- var fun = {
- "error" : function(){
- PublicAction.hint("提交末成功!"); //编写需要操作的方法
- },
- "success" : function(){
- PublicAction.hint("提交成功!"); //编写需要操作的方法
- $('body input[type="text"]').val('')
- RemoveDiv(); //数据提交成功后关闭弹出层
- }
- }
- PublicAction.AjaxSend({CORID:'apply_submit'},fun);
- })
|