Commit 564204d2 authored by agping's avatar agping

解绑记录

parent 6d12a070
......@@ -198,7 +198,14 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user.agent_id_phone='';
});
//客户列表 客户绑定记录
_doc.on('click', '.relationalRecord ', function(e) {
e.preventDefault();
e.stopPropagation();
var id_=$(this).attr("data-id");
user.relationalRecord(id_);
});
//客户动态 加载更多
_doc.on('click', '.user-log-more', function(e) {
e.preventDefault();
......@@ -1945,6 +1952,28 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
});
},
//绑定记录
relationalRecord: function(id) {
$.ajax({
url: '/index/getUserBindHistory',
type: 'GET',
async: true,
data: {
"user_id": id
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var temp = document.getElementById('relational_record_list').innerHTML;
var doTtmpl = doT.template(temp);
$("#agent_phone_binding").html(doTtmpl(data.data.data));
} else {
}
}
});
},
//获取站点 标签
getSiteTags: function() {
$.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