Commit 032d4684 authored by agping's avatar agping

商铺列表搜索 不受编号影响

parent bd258f87
...@@ -1341,6 +1341,10 @@ if(data.code == 200) { ...@@ -1341,6 +1341,10 @@ if(data.code == 200) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
business.pageNo = pageNo; business.pageNo = pageNo;
var params = {}; var params = {};
//商铺编号搜索 不受其他条件影响
if($('#id').val()){
$("#lease_state").val('');
}
// 商铺列表 默认时间显示 // 商铺列表 默认时间显示
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
params.agent_id = user_info_obj.id; params.agent_id = user_info_obj.id;
...@@ -1377,7 +1381,6 @@ if(data.code == 200) { ...@@ -1377,7 +1381,6 @@ if(data.code == 200) {
params.price_end = $('#price_end').val(); //月租金结束 params.price_end = $('#price_end').val(); //月租金结束
params.fit_industry_type = $('#suitable_yetai_input').val(); //适合业态 params.fit_industry_type = $('#suitable_yetai_input').val(); //适合业态
params.residue_type = $('#lease_state').val(); //求租 已租 无效 筛选 params.residue_type = $('#lease_state').val(); //求租 已租 无效 筛选
$.ajax({ $.ajax({
url: '/index/getHouseList.html', //获取列表 url: '/index/getHouseList.html', //获取列表
type: 'GET', type: 'GET',
...@@ -1388,7 +1391,6 @@ if(data.code == 200) { ...@@ -1388,7 +1391,6 @@ if(data.code == 200) {
$('#main_loading_pic').show(); $('#main_loading_pic').show();
}, },
success: function(data) { success: function(data) {
// $('#user_city_choose').show();
var temp = document.getElementById('house_list_tpl').innerHTML; var temp = document.getElementById('house_list_tpl').innerHTML;
var doTtmpl = doT.template(temp); var doTtmpl = doT.template(temp);
$("#business_list").html(doTtmpl(data.data.list)); $("#business_list").html(doTtmpl(data.data.list));
...@@ -1402,17 +1404,8 @@ if(data.code == 200) { ...@@ -1402,17 +1404,8 @@ if(data.code == 200) {
_$this.click(); _$this.click();
} }
}); });
/*分页代码*/ /*分页代码*/
add_page(data.data.total, pageNo, business.pageSize, business.getList); add_page(data.data.total, pageNo, business.pageSize, business.getList);
/* $ ("#pagediv").pagination ({
length: data.data.total,
current: pageNo,
every: business.pageSize,
onClick: function (el) {
business.getList (el.num.current);
}
});*/
}, },
complete: function(){ complete: function(){
$('#main_loading_pic').hide(); $('#main_loading_pic').hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment