// 显示楼盘条数 ---------- function Qalert(num = 0) { var M = {}; if(M.dialog1){ return M.dialog1.show(); } M.dialog1 = jqueryAlert({ 'content' : '共 '+num+' 个楼盘', 'closeTime' : 4000, }); } Qalert($('.feng_count').attr('house_data')); // --------------------------------- // 列表加载js---------------------- // 页数 ----- var page = 1; // 每页展示5个 var size = 10; var SearchParams = {}; var urlParams = ''; var wUrl ="" // 用于繁体、简体切换 var ttf = {} ttf.txt = $('.y_homelist_list').attr('data-rent'); ttf.txt2 = $('.y_homelist_list').attr('data-proportion'); var dht =0; $(function(){ //获取GET请求参数 function getParams(url) { var theRequest = new Object(); if (!url) url = location.href; if (url.indexOf("?") !== -1) { var str = url.substr(url.indexOf("?") + 1) + "&"; var strs = str.split("&"); for (var i = 0; i < strs.length - 1; i++) { var key = strs[i].substring(0, strs[i].indexOf("=")); var val = strs[i].substring(strs[i].indexOf("=") + 1); theRequest[key] = decodeURI(val) ; // decodeURI 解决中文字符乱码问题 } } return theRequest; } var url = window.location.href; var params = getParams(url); //获取get请求的参数 if(!$.isEmptyObject(params)){ $.each(params,function(key,val){ if(key == 'city') feng_cityTel = val; SearchParams[key] = val; }) } // console.log(SearchParams) $('.y_qylist_hoe .y_qylist_con').on('click',function(){ var Idoption = $(this).attr('data-id'); $('.y_qylist_cnet_ind').hide(); $('.y_qylist_con').attr('id',''); if($(this).hasClass('on')){ //判断css on 是否存在 $('.y_qylist_cnet_ind[data-id="'+Idoption+'"]').hide(); $(this).removeClass('on'); $('.m_homelistzz').hide(); var _ster = $(window).scrollTop(); if (_ster < 180) {_hide()} $('#LRdiv3').show(); $('.qwpuic').show(); }else{ $(this).addClass('on').siblings().removeClass('on'); $('.y_qylist_cnet_ind[data-id="'+Idoption+'"]').show(); $(this).attr('id','m_color'); $('.m_homelistzz').show(); _show(); $('#LRdiv3').hide(); $('.qwpuic').hide(); } }) $('.m_homelistzz').on('click',function(){ $('.m_homelistzz').hide(); $('.y_qylist_hoe .y_qylist_con').removeClass('on'); $('.y_qylist_cnet_ind').hide(); $('.y_qylist_con').attr('id',''); }) $(".area").on('click','li.link_click',function(){ $(".dcity").animate({right:"-35%"}); }) $('.m_f_search_click').on('click',function(){ $('.feng_city_click').removeClass('on'); }) //获取子类区域 $(".feng_city_click").on('click',function(){ var _this = $(this); $('.m_f_search_click').removeClass('in'); _this.addClass('on'); _this.siblings().removeClass('on'); $('.three_area').show(); $.post('/house/soncity',{csrf_token_m:csrfToken,id:_this.attr('value')},function(data){ $(".dcity").html(''); if(data.code == 200){ var str = ''; str += '
'+v.push_reason+'
'; // _html+='