房产首页 | 买房优惠 | 免费看房车 | 房产新闻 | 楼市资讯 | 二手房 | 租房 | 家居 | 业主论坛
"> $('img').each(function(){ if ($(this).attr('src') == '') { $(this).attr('src','/assets/ershou/images/default.jpg'); }; }) var hotsearchObj = $("#hotsearch"); var hotsearch = hotsearchObj.html(); function getsearch(obj,type){ if($.trim($("#txt").val().length) == 0 ){ hotsearchObj.html(hotsearch); } else { $.ajax({ type:"get", dataType:'json', url:'/ershou/index/search?keyword='+$(obj).val()+'&type='+type, success:function(result){ if(result.length > 0){ var string = ''; var kind = type == 2 ? 'chushoulist/detail?id=' : 'zulinlist/detail?id='; for(key in result){ string +="
  • "; string +=''+result[key]['wymc']+result[key]['circle']+''; string +=''+result[key]['qy']+''+result[key]['huxing']+'
  • '; } hotsearchObj.html(string); } }//endsuccess }) } }; $("#txt").click(function(){ $.get('/ershou/chushoulist/hotsearch',function(result){ $('img').each(function(){ if ($(this).attr('src') == '') { $(this).attr('src','/assets/ershou/images/default.jpg'); }; }) var hotsearchObj = $("#hotsearch"); var hotsearch = hotsearchObj.html(); function getsearch(obj,type){ if($.trim($("#txt").val().length) == 0 ){ hotsearchObj.html(hotsearch); } else { $.ajax({ type:"get", dataType:'json', url:'/ershou/index/search?keyword='+$(obj).val()+'&type='+type, success:function(result){ if(result.length > 0){ var string = ''; var kind = type == 2 ? 'chushoulist/detail?id=' : 'zulinlist/detail?id='; for(key in result){ string +="
  • "; string +=''+result[key]['wymc']+result[key]['circle']+''; string +=''+result[key]['qy']+''+result[key]['huxing']+'
  • '; } hotsearchObj.html(string); } }//endsuccess }) } }; $("#txt").click(function(){ $.get('/ershou/chushoulist/hotsearch',function(result){ $("#hotsearch").html(result); $("#txt").unbind('click'); }); }); var page = 1; function getrecommand(obj){ $.get('/ershou/index/maylike?type=1&isdetail=0&page=' + page,function(result){ if(result.length == ''){ $(obj).html('没有更多了'); return; } else { $("#maylike").remove(); $(".yqlink").before(result); } }); page++; } getrecommand();