Commit 31997a2b authored by agping's avatar agping

客户列表 新增 编辑 详情增加 客户来源字段

parent b35c7ca9
......@@ -1340,6 +1340,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.source_intro=$("#user_source_edit").val();
params.referrer_id = user.user_id_edit_introduce ? user.user_id_edit_introduce : -1;
if (user.referrer_source == "0" || user.referrer_source == 0) {
params.referrer_source = 10;
......@@ -1504,6 +1505,21 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$("#take_look_name").html(data.data.user_info.user_name); //约带看姓名
$("#take_look_phone").html(data.data.user_info.user_phone); //约带看手机号
$("#take_look_id").html(data.data.user_info.user_id); //约带看id
var sw=function(s){
switch(Number(s))
{ case 1:return"网络";
case 2:return"客户介绍";
case 3:return"朋友介绍";
case 4:return"上门挂牌";
case 5:return"打跟进";
case 6:return"驻守";
case 7:return"其他";
default:return s}
};
$("#user_source_edit").val(data.data.user_info.source_intro);
$(".user-source-details").html(sw(data.data.user_info.source_intro));
if(data.data.user_info.city=='上海市'){
$("#user_city_edit").val(310100); //编辑客方
var city_id=310100;
......@@ -1745,6 +1761,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.area_demand = $("#area_type2").val();
params.industry_type = $("#industry_type2").val();
params.vip = $("#user_vip").val();
params.source_intro=$("#user_source_add").val();
params.type = 'add';
params.referrer_id = user.user_id_new_introduce;
params.referrer_source = 10;
......
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