// 导航切换语言 $(function(){ // 导航切换语言 显示 隐藏 function navMouseleave (id,id1){ $(id).on({ mouseover: function() { $(id1).show(); }, mouseleave: function() { $(id1).hide(); } }); } navMouseleave('.area','.area .option');//导航区域显示 隐藏 // 底部报名 关闭按钮 $('.ocls').on('click',function(){ $('.order-box').animate({width:"0"},function(){ $('.order-box').hide(); $('.min-left').show(); }) }) // 显示报名 窗口 $('.min-left').on('click',function(){ $('.order-box').show(function(){ $('.min-left').hide(); $('.order-box').animate({width:"100%"},function(){}) }) }) // 首页、列表页、楼盘首页底部公共报名 /* * 调用的方法 * */ PublicAction.AjaxSend( { CORID:'wa_submit', /*操作ID*/ } ); }) // 处理资讯详情页面的底部一个月的有效日期 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); var whtmltime = year + '/'+ yue + '/' +'01'+'-'+ year + '/'+ yue + '/' + mGetDate(yue); var time_yxq= whtmltime; $('.youxiaoqi_sj').html('(有效期:'+time_yxq+')'); //底部横幅关闭 $('.m_tc_gb').on('click',function(){ $('.m_tc_box').hide(); }) // 广告自动修改时间 function getNextMonth_m(date) { var arr = date.split('/'); var year = arr[0]; //获取当前日期的年份 var month = arr[1]; //获取当前日期的月份 var day = arr[2]; //获取当前日期的日 var days = new Date(year, month, 0); days = days.getDate(); //获取当前日期中的月的天数 var year2 = year; var month2 = parseInt(month); if (parseInt(day) > 20) { var month2 = parseInt(month) + 1; if (month2 > 12) { year2 = parseInt(year2) + 1; month2 = 1; } }; if (month2 < 10) { month2 = '0' + month2; } var t2 = year2 + '年' + month2 + '月'; return t2; } var myDate = new Date; var year = myDate.getFullYear(); //获取当前时间年份 var yue = myDate.getMonth()+1;//获取当前时间月份 var date=myDate.getDate(); //获取当前日 if (yue<10) { yue= '0' + yue; }; // 有效期时间 获取当前时间 var time = year+'/'+yue+'/'+date; $('.shijian_text').html(getNextMonth_m(time)+'20日启程') // 底部JS $('.m_FriendshipLinks a').eq(0).attr('class','on'); var _default = $('.m_FriendshipLinks a').eq(0).attr('qhid'); $('.m_regionfc[qhid="'+_default+'"]').show(); $('.m_FriendshipLinks a').on('mousemove',function(){ var _qhid = $(this).attr('qhid'); $('.m_regionfc').hide(); $('.m_regionfc[qhid="'+_qhid+'"]').show(); $(this).attr('class','on').siblings().attr('class',''); }) var data_id = $('.gzhclick').attr('data-id'); // console.log(data_id) // 处理当没有获取到ID时,不执行以下请求; if(data_id != undefined && data_id != '' && data_id != 'undefined'){ var html = ''; var tophtml = ''; var toplist = ''; $.ajax({ url: "/index/getgzh", // 索取 data:{id:data_id}, //传ID type: "GET", dataType: "json", success: function(data) {//请求成功完成后要执行的方法 if(data.code == 200){ // console.log(data); html+= '