Commit e0aeccda authored by hujun's avatar hujun

更换新增客户查询客方接口

parent ad37d1ba
......@@ -174,8 +174,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
},
search_phone:function(){//手机号
$.ajax ({
url: '/index/select_by_phone',
type: 'POST',
url: '/index/getBroker_new',
type: 'GET',
async: true,
data: {
"phone":$("#set_father_id3").val()
......@@ -185,7 +185,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
if (data.code == 200) {
var user_ul = "";
$.each(data.data, function(i,item) {
user_ul+='<li class="addphone" data-id="'+item.id+'">'+item.id+'-'+item.realname+'-'+item.phone+'</li>';
user_ul+='<li class="addphone" data-id="'+item.id+'">'+item.id+'-'+item.name+'-'+item.phone+'</li>';
});
$(".user-ul").html(user_ul);
......
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