Commit e47e4a81 authored by agping's avatar agping

点击关联客户 进入详情页

parent 75d76bc9
......@@ -9,8 +9,8 @@
float: left;
width: 50%;
}
.user-detail-relational>div>span{
margin-left: 30px;
.user-detail-relational>div>span,.user-detail-relational>div>a{
margin-left: 10px;
cursor: pointer;
}
.user-ul-liu{
......@@ -455,7 +455,7 @@
}
.public-box-noleft-73{
display: inline-block;
width: 73px;
width: 60px;
height: 26px;
line-height: 26px;
text-align: center;
......@@ -1023,4 +1023,22 @@
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--关联客户 客户详情-->
<div class="modal fade" id="modal-userDetail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width: 850px;">
<div class="modal-content">
<p style="position: absolute;font-size: 16px;margin-left: 20px;" class="text-danger">关联客户详情</p>
<button type="button" data-dismiss="modal" aria-hidden="true" style="margin-left: 791px;font-size: 26px;height: 20px;line-height: 20px;background: #fff;border: 0;">
&times;
</button>
<div class="modal-body" style="margin-top: -6px;">
<iframe src="" frameborder="0" class="iframe-user-detail" style="width:100%;height: 756px;display: block;border: none;border-radius: 6px;"></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
......@@ -20,7 +20,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
_backPhone = '',//绑定之后返回的号码
_temp_follow_id = '',//临时的跟进id
is_outpace_call_num = 1;//拨打电话0:未超过限制 1:超过限制
var iframeType = getUrlParam('type');
var cus_obj = JSON.parse(getUrlParam('data'));//获取链接上面数据
var idIndex = getUrlParam('idindex');//客户跟进列表
var idIndexUser = getUrlParam('idindex');//客户列表
......@@ -101,10 +101,17 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
e.stopPropagation();
window.parent.document.querySelector('#modal-record .close').click();
});
user.user_id = cus_obj.user_id;
if(_tempUrl === '/index/users_list'){
user.user_id = cus_obj.id;//客户列表特殊处理
};
if(iframeType){
user.user_id = getUrlParam('data');
$('.close').hide()
// window.parent.document.querySelector('#modal-userDetail .close').hide();
}else{
user.user_id = cus_obj.user_id;
if(_tempUrl === '/index/users_list'){
user.user_id = cus_obj.id;//客户列表特殊处理
};
}
user.user_phone = cus_obj.user_phone;
user.baohu = cus_obj.is_outstrip_twenty_four_hours;
user.agentbaohu = cus_obj.agent_id;
......@@ -203,6 +210,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
e.stopPropagation();
$(this).parent().remove();
});
//点击客户详情
_doc.on('click', '.user-detail', function(e) {
e.preventDefault();
e.stopPropagation();
$('.iframe-user-detail').attr('src','/index/userModalList?type=1&data=' + $(this).attr('data-id'));
});
//查看弹出框里的tab点击事件,查看客户详情,客户约带看
_doc.on('click', '.detail-modal-header-tab>span', function(e){
e.preventDefault();
......@@ -1344,7 +1358,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
//关联客户显示 解除关联
var user_bind_list = "";
$.each(data['data']['user_bind_list'], function(i, item) {
user_bind_list += '<div>' + item.user_name + ',ID:' + item.user_id + ',' + hideTel(item.user_phone) + '<span class="public-box-noleft-73 del-relational" data-id="'+ item.user_id +'">解除关联</span></div>';
user_bind_list += '<div>' + item.user_name + ',ID:' + item.user_id + ',' + hideTel(item.user_phone) + '<span class="public-box-noleft-73 del-relational" data-id="'+ item.user_id +'">解除关联</span>' + '<a class="public-box-noleft-73 user-detail" href="#modal-userDetail" data-toggle="modal" data-id="'+ item.user_id +'">客户详情</a>' + '</div>';
});
if(user_bind_list){
$(".user-detail-relational").html(user_bind_list);
......
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