Commit 6c72a893 authored by agping's avatar agping

客户列表修改

parent 0527912a
......@@ -56,7 +56,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$('#end_date').val(day_end);//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选
user.initializationCityFunction();
user.getList();
user.event();
//时间控件初始化
//bootstrap 时间控件选择
......@@ -115,9 +114,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
//城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() {
$('#user_area_choose').val('');
user.getList();
var _this = $(this);
var _id = _this.val();
user.setUpCityFunction(_id);
$('#user_area_choose').html(''); //先清空
if(_id && _id != '0') {
user.getCityAreaList(_id, function(_data) {
......@@ -131,6 +132,10 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
} else {};
});
//自动筛选 区域
_doc.on('input', '#user_area_choose', function() {
user.getList();
});
//城市 区域 筛选
_doc.on('input', '#user_city_add,#user_city_edit', function() {
var _this = $(this);
......@@ -1114,7 +1119,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params.industry_type = $(".industry_type_two_1").val();
params.price_demand = $(".price_demand_1").val();
params.area_demand = $(".area_demand_1").val();
params.referrer_id = user.user_id_edit_introduce;
// params.referrer_id = user.user_id_edit_introduce;
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : 0;
params.referrer_source = 10;
if($('#user_city_edit').val() == 310100){
params.city = '上海市' ;
......@@ -1643,6 +1649,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$("#user_area_choose").html(_str);
});
} else {};
user.getList();
}
});
},
......
......@@ -68,7 +68,6 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$('#create_time_end').val(day_end);//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选
house.initializationCityFunction();
house.getList(0);//商铺跟进列表
// 部门 门店 二级联动
house.getDistrict(function() {
......@@ -132,6 +131,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
});
//城市 区域 筛选
_doc.on('input', '#user_city_choose', function() {
$('#shop_area_id').val('');
house.getList();
var _this = $(this);
var _id = _this.val();
......@@ -152,6 +152,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
});
} else {};
});
_doc.on('input', '#shop_area_id', function() {
house.getList();
});
//查看点击事件
_doc.on('click', 'a[href="#modal_shop_detail"]', function(e){
e.preventDefault();
......@@ -387,7 +390,10 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$("#shop_area_id").html(_str);
});
} else {};
house.getList(0);//商铺跟进列表
}
});
},
//设置 城市
......
......@@ -80,7 +80,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
// $('#end_date').val(day_end);//去掉默认时间
//初始化城市 区域筛选
business.initializationCityFunction();
business.getList(1);
business.event();
business.resetLoad();
},
......@@ -253,11 +252,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
//城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() {
$('#shop_area_id').val('');
business.getList();
var _this = $(this);
var _id = _this.val();
business.setUpCityFunction(_id);
$('#user_area_choose').html(''); //先清空
$('#shop_area_id').html(''); //先清空
if(_id && _id != '0') {
business.getDistrictStoreList(_id, function(_data) {
var _str = '<option value="">区域</option>';
......@@ -1188,7 +1188,10 @@ if(data.code == 200) {
$("#shop_area_id").html(_str);
});
} else {};
business.getList(1);
}
});
},
//设置 城市
......
......@@ -87,7 +87,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('#end_date').val(day_end);//客户列表 进来 默认时间 一个月
//默认 筛选求租客户
$("select[name=public_status]").val('0');
user.getList();
user.event();
//新增 默认上海
user.getCityAreaList(310100, function(_data) {
......@@ -211,6 +211,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
});
//城市 区域 二级联动 筛选
_doc.on('input', '#user_city_choose', function() {
$('#user_area_choose').val('');
user.getList();
var _this = $(this);
var _id = _this.val();
......@@ -228,6 +229,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
});
} else {};
});
_doc.on('input', '#user_area_choose', function() {
user.getList();
});
//城市 区域 筛选
_doc.on('input', '#user_city_add,#user_city_edit', function() {
var _this = $(this);
......@@ -1203,9 +1207,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success: function(data) {
if(data.code == 200) {
var user_ul = "";
$.each(data.data.user_date, function(i, item) {
user_ul += '<li class="add-user-edit-li" data-id="' + item.user_id + '">' + item.user_name + '-' + item.user_phone + '-' + item.user_id + '</li>';
});
if(data.data.user_date){
$.each(data.data.user_date, function(i, item) {
user_ul += '<li class="add-user-edit-li" data-id="' + item.user_id + '">' + item.user_name + '-' + item.user_phone + '-' + item.user_id + '</li>';
});
}
$(".user-ul-edit-introduce").html(user_ul);
} else {
......@@ -1330,7 +1337,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.industry_type = $(".industry_type_two_1").val();
params.price_demand = $(".price_demand_1").val();
params.area_demand = $(".area_demand_1").val();
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : "";
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : 0;
params.referrer_source = 10;
if($('#user_city_edit').val() == 310100){
params.city = '上海市' ;
......@@ -1874,6 +1881,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$("#user_area_choose").html(_str);
});
} else {};
user.getList();
}
});
},
......
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