12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- $(function(){
- var mySwiper = new Swiper('.js_officeLise_list', {
- autoplay: 8000,//可选选项,自动滑动
- slidesPerView : 1,
- slidesPerGroup : 1,
- pagination : '.swiper-pagination',
- paginationClickable :true,
- })
- setTimeout(function(){
- var mySwiperadv = new Swiper(".js_officeHot_list",{
- loop : true,
- autoplay: 8000,//可选选项,自动滑动
- slidesPerView : 'auto',
- slidesPerGroup : 1,
- pagination : '.officeHot_list_main .swiper-pagination',
- paginationClickable :true,
- onSetTranslate: function(swiper,translate){
- //自定义事件
- if(swiper.translate < 0 && swiper.realIndex > 0) {
- // console.log(swiper.realIndex)
- var TR=swiper.translate
- $(".js_officeHot_list ul").css({
- 'transform': 'translate3d('+(TR+20)+'px, 0px, 0px)'
- })
- }
- },
- });
- },2000)
- $('.js_buttomBm').on('click',function(){
- var _hid=$(this).attr('data-hid')
- $('.officeAppen').show(20);
- $('.officeAppen_bg').show();
- })
- $('.officeAppen_bg,.officeAppen_gb').on('click',function(){
- _clickHide();
- })
- function _clickHide(){
- $('.officeAppen').hide();
- $('.officeAppen_bg').hide();
- }
- //报名验证提交的调用 底下报名
- PublicAction.AjaxSend({CORID:'js_submitBox'/*操作ID*/});
- $('.submit_area .js_submitBox').on('click',function(){
- setTimeout(function(){
- var _html = $('.alert-container .alert-content').html();
- if(_html == '提交成功'){
- $('input[type="text"]').val('');
- _clickHide()
- }
- },500)
-
- })
- // 时间加1个自然月有效日期
- var myDate = new Date;
- var year = myDate.getFullYear(); //获取当前时间年份
- var yue = myDate.getMonth()+1;//获取当前时间月份
- if (yue<10) {
- yue= '0' + yue;
- }else if(yue == 13){
- yue = '01';
- };
- // 返回下个月有多少天数
- function mGetDate(yue){
- var date = new Date();
- var year = date.getFullYear();
- var d = new Date(year,parseInt(yue), 0);
- return d.getDate();
- }
- var htmltime = year + '/'+ yue + '/' +'01'+'-'+ year + '/'+ yue + '/' + mGetDate(yue);
- $('.time_mian em').html('活动时间:'+ htmltime );
- })
|