Commit ad803d17 authored by agping's avatar agping

优化

parent 83795f22
......@@ -703,6 +703,8 @@
<th class="text-center">商铺ID</th>
<th class="text-center">客户ID</th>
<th class="text-center">查看端口</th>
<th class="text-center">头像/昵称</th>
</tr>
</thead>
<tbody class="text-center" id="caozuo_table_kehu"></tbody>
......@@ -721,6 +723,23 @@
</div>
</div>
</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">
<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;position: relative;z-index: 666666;outline: none;">
&times;
</button>
<div class="modal-body" style="margin-top: -23px;padding: 0;">
<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>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
......
......@@ -1028,11 +1028,11 @@
<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;">
<!--<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;position: relative;z-index: 666666;outline: none;">
&times;
</button>
<div class="modal-body" style="margin-top: -6px;">
<div class="modal-body" style="margin-top: -20px;">
<iframe src="" frameborder="0" class="iframe-user-detail" style="width:100%;height: 756px;display: block;border: none;border-radius: 6px;"></iframe>
</div>
......
......@@ -139,6 +139,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
//点击客户详情
_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'));
});
_doc.on("input", "#dish_name", function() { //客户列表 客方员工姓名 下拉式搜索
if($("#dish_name").val() == '') {
business.agent_id_choose='';
......@@ -1135,7 +1141,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}else{
var type_ = '微信'
}
caozuo_table += '<tr><td>' + item.look_day + '</td> <td>' + item.house_id + '</td> <td>' + (item.user_id == 0 ?'' : item.user_id) + '</td> <td>' + type_ +'</td></tr>'
caozuo_table += '<tr><td>' + item.look_day + '</td> <td>' + item.house_id + '</td> <td>' + (item.user_id == 0 ?'' : item.user_id) + '</td> <td>' + type_ +'</td><td>'+ item.look_day + item.look_day + (item.user_id == 0 ?'' : ('&nbsp;<a class="user-detail btn btn-info" href="#modal-userDetail" data-toggle="modal" data-id="'+ item.user_id +'">客户详情</a>')) + '</td></tr>'
});
if(caozuo_table){
$("#caozuo_table_kehu").append(caozuo_table);
......
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