Commit 4f0edd6c authored by hujun's avatar hujun

查询经纪人接口修改

parent 3c812db1
...@@ -124,8 +124,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -124,8 +124,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}, },
search_phone2:function(){//手机号 search_phone2:function(){//手机号
$.ajax ({ $.ajax ({
url: '/index/select_by_phone', url: '/index/getBroker_new',
type: 'POST', type: 'GET',
async: true, async: true,
data: { data: {
"phone":$("#cus_fang").val() "phone":$("#cus_fang").val()
...@@ -135,10 +135,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -135,10 +135,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
if (data.code == 200) { if (data.code == 200) {
var user_ul2 = ""; var user_ul2 = "";
$.each(data.data, function(i,item) { $.each(data.data, function(i,item) {
user_ul2+='<li class="addphone2" data-id="'+item.id+'">'+item.id+'-'+item.realname+'-'+item.phone+'</li>'; user_ul2+='<li class="addphone2" data-id="'+item.id+'">'+item.id+'-'+item.name+'-'+item.phone+'</li>';
}); });
$(".user-ul2").html(user_ul2); $(".user-ul2").html(user_ul2);
} else { } else {
alert(data.msg); alert(data.msg);
} }
...@@ -151,7 +150,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', ' ...@@ -151,7 +150,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params.id = user.user_id; params.id = user.user_id;
params.user_nick = $("#cus_name").val(); params.user_nick = $("#cus_name").val();
params.user_phone = $("#cus_phone").html() params.user_phone = $("#cus_phone").html()
params.agent_id = user.agent_id2; params.agents_id = user.agent_id2;
params.sex = $("#sex").val(); params.sex = $("#sex").val();
$.ajax({ $.ajax({
......
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