Commit e34c8485 authored by xishifeng's avatar xishifeng

补充3

parent 16d5bf94
......@@ -384,7 +384,7 @@
</div>
<!--客户详情 客户跟进 不可编辑-->
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-body-details">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="position: absolute;top: 0;right: 10px;width: 30px;height: 30px;background-color: white!important;">
......
......@@ -759,7 +759,7 @@
</div>
<!--客户详情 客户跟进 不可编辑-->
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-body-details">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="position: absolute;top: 0;right: 10px;width: 30px;height: 30px;background-color: white!important;">
......
......@@ -352,7 +352,7 @@
</div>
</div>
<!--客户详情 客户跟进 不可编辑-->
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-body-details">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="position: absolute;top: 0;right: 10px;width: 30px;height: 30px;background-color: white!important;">
......
......@@ -444,7 +444,7 @@
</div>
<!--客户详情 客户跟进 不可编辑-->
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" id="modal-record" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-body-details">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="position: absolute;top: 0;right: 10px;width: 30px;height: 30px;background-color: white!important;">
......
......@@ -89,7 +89,10 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
$('.datetimepicker').hide();//初始化隐藏时间控件
user.user_id = cus_obj.id;
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;
......@@ -337,6 +340,46 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
};
});
//拨打电话模态框,获取电话列表
_userId && $.ajax({
type: 'GET',
url: ServerHostTempC + '/broker/agentsPhone',
data: {
'AuthToken': _token,
'agents_id': _userId
},
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
success: function(data) {
if(typeof data === 'object') {
if (data.code == 200) {
var _htmlTemp = '';
$.each(data['data'], function(i, item) {
_htmlTemp += '<li class="{0}"><input placeholder="请输入本机手机号" maxlength="11" type="tel" value="{1}" {2} /><div class="call-edit-icon">完成</div><div class="call-submit-ing-icon">提交中ing</div><div class="call-select-icon"><img src="/app/images/ic_duigou_gre.png" /></div><div class="call-delete-icon"><img src="/app/images/search_gb.png" /></div></li>'.stringFormatObj({
'0': '',
'1': item['phone'],
'2': 'readonly',
});
});
$('.call-modal-main>ol').append(_htmlTemp);
}else {
layerTipsX(data['msg']);
};
}else{
layerTipsX('数据错误');
};
},
error: function() {
layerTipsX('error');
},
complete: function(xhr, textStatus){
if(textStatus === 'timeout'){
layerTipsX('请求超时');
};
}
});
//删除手机号按钮,点击事件
_doc.on('click','.call-delete-icon',function(e){
e.preventDefault();
......
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