Commit 229df81c authored by agping's avatar agping

商铺列表修改

parent 7e3f3535
......@@ -241,11 +241,11 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
params.id = $(this).attr("data-id");
var str = $.trim($(this).html());
if(str == "锁盘") {
$(this).attr('class', 'btn1 btn-default is_show_lock_plate');
$(this).attr('class', 'btn1 btn-default is_show_lock_plate btn-default-hide-display');
params.type = 1;
$(this).html('已锁盘');
} else if(str == "已锁盘") {
$(this).attr('class', 'btn1 btn-info is_show_lock_plate');
$(this).attr('class', 'btn1 btn-info is_show_lock_plate btn-default-hide-display');
params.type = 0;
$(this).html('锁盘');
} else {
......@@ -281,13 +281,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_str += '<option value="' + item.fullName + '">' + item.fullName + '</option>';
});
$('#shop_area_id').html(_str);
business.getList();
});
} else {};
});
//点击 区域 获取 商圈
_doc.on('input', '#shop_area_id', function() {
business.getList();
var _this = $(this);
var _id = _this.val();
var _province=$('#user_city_choose').val();
......@@ -309,11 +308,14 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_str += '<option value="' + item.id + '">' + item.name + '</option>';
});
$('#business_circle_id').html(_str);
business.getList();
});
} else {};
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
// 选择商圈后 自动刷新页面
// _doc.on('input', '#business_circle_id', function() {
// business.getList();
// });
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc.on('click', '.detail-modal-header-tab>a', function(e){
e.preventDefault();
e.stopPropagation();
......@@ -1073,7 +1075,7 @@ if(data.code == 200) {
params.city = '杭州市' ;
}
params.disc = $('#shop_area_id').val(); //区域筛选
params.business_id=$('#shop_area_id').val()//商圈筛选
params.business_id=$('#business_circle_id').val();//商圈筛选
params.industry_type = $('#yetai_id').val(); //业态筛选
params.dish_name = $('#dish_name').val(); //盘方姓名
params.dish_phone = $('#dish_phone').val(); //盘方手机号
......@@ -1168,7 +1170,6 @@ if(data.code == 200) {
'province': province,
'city': city,
'disc': id
},
dataType: 'json',
success: function(data) {
......
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