12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- // 旅居城市 插件
- var mySwiper = new Swiper('.js_autumnztList_main',{
- loop : true,
- slidesPerView: 1.2,
- slidesPerGroup :1,
- autoplay : 5000,
- spaceBetween : 20,
- pagination : '.js_autumnztList .swiper-pagination',
- })
- var mySwiper = new Swiper('.js_autumnztList_main2',{
- loop : true,
- slidesPerView: 1.2,
- slidesPerGroup :1,
- autoplay : 5000,
- spaceBetween : 20,
- pagination : '.js_autumnztList2 .swiper-pagination',
- })
- $('body').on('click','.js_buttomBm',function(){
- var _bmHid=$(this).attr('data-hid');
- var _bmSource=$(this).attr('data-source');
- $('.bmSina').find('input[name="hid"]').val(_bmHid)
- $('.bmSina').find('input[name="source"]').val(_bmSource)
- $('.bmSina,.bmSina_bg').show();
- })
- $('.bmSina_bg,.bmSina_gb a').on('click',function(){
- $('.bmSina,.bmSina_bg').hide();
- })
- PublicAction.AjaxSend(
- {
- CORID:'js_buttom_tj',
- }
- );
- $('.submit_area .js_buttom_tj').on('click',function(){
- setTimeout(function(){
- var _html = $('.alert-container .alert-content').html();
- if(_html == '提交成功'){
- $('.bmSina_bg').click();
- $('input[type="text"]').val('')
- }
- },1000)
- })
- // 处理资讯详情页面的底部一个月的有效日期
- 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 whtmltimes = year + '.'+ yue + '.' + mGetDate(yue);
- $('.js_timeBox').html('有效期至:'+whtmltimes);
|