Commit d4c73460 authored by agping's avatar agping

上一条 同步客户列表

parent b8338b1a
...@@ -284,6 +284,11 @@ ...@@ -284,6 +284,11 @@
#user_area_add{ #user_area_add{
margin-left: 5px; margin-left: 5px;
} }
.call-user-five {
color: red;
font-size: 20px;
font-weight: 700;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -377,6 +382,8 @@ ...@@ -377,6 +382,8 @@
</div> </div>
<div class="modal-body modal-body1"> <div class="modal-body modal-body1">
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="" id="caozuo_hide" border='0'> <table class="" id="caozuo_hide" border='0'>
<thead> <thead>
<tr> <tr>
...@@ -454,7 +461,7 @@ ...@@ -454,7 +461,7 @@
<span class="fore-span ld-Marheight">昵称:</span> <span class="fore-span ld-Marheight">昵称:</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>--> <!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>--> <!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg=''/> <img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg='' />
<span class="fore-span ld-Marheight cus_nick"></span> <span class="fore-span ld-Marheight cus_nick"></span>
</td> </td>
</tr> </tr>
...@@ -524,256 +531,21 @@ ...@@ -524,256 +531,21 @@
<span class="text-danger">(必填)</span> <span class="text-danger">(必填)</span>
</div> </div>
<!--跟进保存--> <!--跟进保存-->
<div class="center-btn"> <div class="center-btn">
<button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button> <button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button>
</div> </div>
</div> </div>
</div>
<!--详情 约带看 切换-->
<div class="detail-modal-body-sec">
<table class="table table-striped table-bordered table-hover table-condensed" id=" ">
<thead>
<tr>
<td>
<form id="form1">
<span class="fore-span ld-Marheight">姓名:</span>
<span class="fore-span ld-Marheight" id="take_look_name"></span>
<div class="clear "></div>
<span class="fore-span ld-Marheight">电话:</span>
<span class="fore-span ld-Marheight" id="take_look_phone"></span>
<div class="clear "></div>
<span class="fore-span ld-Marheight">客户编号:</span>
<span class="fore-span ld-Marheight" id="take_look_id"></span>
<div class="clear"></div>
<div class="detail-modal-bargaininfo-commission-inputpar">
<div class="detail-modal-bargaininfo-commission-addarea">
<div class="form-group detail-modal-bargaininfo-commission-sec">
<span class="fore-span ld-Marheight">约带看商铺:</span>
<div class=" ">
<!--选择式-->
<input type="text" class="form-control ld-Marheight look-shop" name=" " autocomplete="off" placeholder="请输入商铺名称、商铺编号、商铺地址关键词 ">
<ul class="look-shop-ul"></ul>
<!--下拉列表-->
</div>
</div>
</div>
<div id="bargaininfo_commission_add_btn">
<img src="/resource/image/jia2@2x.png" />
</div>
</div>
<div class="clear"></div>
<span class="fore-span ld-Marheight">预计到场时间:</span>
<!--bootstrap 时间控件-->
<input type="text" value=" " class="form_datetime form-control btn6 ld-Marheight" id="look_shop_date" readonly="readonly">
<div class="clear"></div>
<div class="textarea-con ld-Marheight">
<span class="fore-span">备注:</span>
<textarea name=" " rows="5" cols="50" id="note_look"></textarea>
</div>
</form>
</td>
</tr>
</thead>
<tbody class="text-center" id="caozuo_table">
</table>
<button type="button" class="btn btn-primary save-look">
保存
</button>
</div>
</div>
<!--<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_edit" data-dismiss="modal">
提交
</button>
</div>-->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--客户详情 客户跟进 不可编辑-->
<div class="modal fade" id="modal-record" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content modal-body-details">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title text-info detail-modal-header-tab">
<a href="javascript:;" class="btn btn-default">客户详情/跟进</a>
<a href="javascript:;" class="btn btn-info caozuo-yue">约带看</a>
</h4>
<div class="user_up_con">
<span id="user_up" class="ld-Marheight text-primary ld-Marheight">上一条客户</span>
<span id="user_down" class="ld-Marheight text-primary ld-Marheight">下一条客户</span>
</div>
</div>
<div class="modal-body modal-body1">
<div class="detail-modal-body-sec">
<table class="" id="caozuo_hide" border='0'>
<thead>
<tr>
<td width="40%">
<span class="fore-span ld-Marheight">产生类型:</span>
<span class="fore-span ld-Marheight source_type"></span>
</td>
<td>
<span class="fore-span ld-Marheight">VIP客户:</span>
<select class="form-control btn6 ld-Marheight user_vip2" disabled="disabled">
<option value='' class="successModel">请选择</option>
<option value="1"></option>
<option value="0"></option>
</select>
</td>
<td>
<span class="fore-span ld-Marheight">客户编号:</span>
<span class="fore-span ld-Marheight cus_id"></span>
</td>
</tr>
<tr>
<td>
<span class="fore-span ld-Marheight">姓名:</span>
<input class="form-control btn6 ld-Marheight cus_name" value="" data-rule-phoneus="false" data-rule-required="false" name="name" type="text" disabled="disabled">
</td>
<td>
<span class="fore-span ld-Marheight">性别:</span>
<select class="form-control btn6 ld-Marheight sex" disabled="disabled">
<option value="0" class="successModel">性别</option>
<option value="1"></option>
<option value="2"></option>
</select>
</td>
<td>
<span class="fore-span ld-Marheight">电话:</span>
<span class="fore-span ld-Marheight cus_phone"></span>
<a class="fore-span btn-primary ld-Marheight user_call" href="#modal-call" data-toggle="modal">拨打</a>
</td>
</tr>
<tr>
<td>
<span class="fore-span ld-Marheight">业态:</span>
<select class="form-control btn6 ld-Marheight" name="industry_type_two" disabled="disabled">
<option>轻餐饮</option>
<option>重餐饮</option>
<option>百货零售</option>
<option>服装</option>
<option>亲子教育</option>
<option>休闲娱乐</option>
</select>
</td>
<td>
<span class="fore-span ld-Marheight">价格:</span>
<input class="form-control btn6 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="" name="price_demand" type="number" disabled="disabled"><span class="fore-span ld-Marheight">元/月</span>
</td>
<td>
<span class="fore-span ld-Marheight">面积:</span>
<input class="form-control btn6 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="" name="area_demand" type="number" disabled="disabled"><span class="fore-span ld-Marheight"></span>
</td>
</tr>
<tr>
<td>
<span class="fore-span ld-Marheight">注册时间:</span>
<span class="fore-span ld-Marheight registration_time"></span>
</td>
<td>
<span class="fore-span ld-Marheight">邀请人:</span>
<span class="fore-span ld-Marheight referrer_user"></span>
</td>
<td>
<span class="fore-span ld-Marheight">昵称:</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg=''/>
<span class="fore-span ld-Marheight cus_nick"></span>
</td>
</tr>
<tr>
<td>
<span class="fore-span ld-Marheight">创建时间:</span>
<span class="fore-span ld-Marheight cus_date"></span>
</td>
<!--<td>
</td>-->
<td>
<span class="fore-span ld-Marheight">下载登录时间:</span>
<span class="fore-span ld-Marheight firstlogin_time"></span>
</td>
<td>
<span class="fore-span ld-Marheight">客户标签:</span>
<span class="user_details_label ld-Marheight fore-span">
</span>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<span class="fore-span ld-Marheight">客方:</span>
<div class="col-sm-9">
<input type="text" class="form-control btn6-1 ld-Marheight cus_fang_edit" name="pwd" autocomplete="off" disabled="disabled">
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</td>
<td>
<span class="fore-span ld-Marheight">客户所属城市:</span>
<span class="user_details_city ld-Marheight fore-span">
</span>
</td>
</tr>
<!--<tr class="ld-Marheight">
<td class="text-left"><label>客方修改记录:</label></td>
</tr>-->
</thead>
</table>
<h4 class="modal-title-genjing clear text-info">
客户跟进
</h4>
<div id="gen_jing_user">
<div class="followup-modal-list-area">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="caozuo_table2">
</tbody>
</table>
</div>
<div class="clear margin-top-ld">
</div>
<label class="col-sm-3 control-label">跟进:</label>
<div class="col-sm-9">
<textarea class="form-control" rows="3" id="genj_text"></textarea>
<span class="use-span text-danger">(必填)</span>
</div>
<label class="col-sm-3 control-label">状态标签:</label>
<div class="col-sm-9">
<label class="control-label">无效</label><input type="radio" name="user_status" value="-1">
<label class="control-label">已租</label><input type="radio" name="user_status" value="1">
<label class="control-label">求租</label><input type="radio" name="user_status" value="0">
<span class="text-danger">(必填)</span>
</div>
<!--跟进保存-->
<div class="center-btn">
<button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button>
</div> </div>
</div> </div>
</div>
<!--详情 约带看 切换--> <!--详情 约带看 切换-->
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="table table-striped table-bordered table-hover table-condensed" id=" "> <table class="table table-striped table-bordered table-hover table-condensed" id=" ">
<thead> <thead>
<tr> <tr>
...@@ -825,14 +597,9 @@ ...@@ -825,14 +597,9 @@
保存 保存
</button> </button>
</div> </div>
</div>
</div> </div>
<!--<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_edit" data-dismiss="modal">
提交
</button>
</div>-->
</div> </div>
<!-- /.modal-content --> <!-- /.modal-content -->
</div> </div>
......
...@@ -285,6 +285,11 @@ ...@@ -285,6 +285,11 @@
#user_area_add{ #user_area_add{
margin-left: 5px; margin-left: 5px;
} }
.call-user-five {
color: red;
font-size: 20px;
font-weight: 700;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -356,6 +361,8 @@ ...@@ -356,6 +361,8 @@
</div> </div>
<div class="modal-body modal-body1"> <div class="modal-body modal-body1">
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="" id="caozuo_hide" border='0'> <table class="" id="caozuo_hide" border='0'>
<thead> <thead>
<tr> <tr>
...@@ -433,7 +440,7 @@ ...@@ -433,7 +440,7 @@
<span class="fore-span ld-Marheight">昵称:</span> <span class="fore-span ld-Marheight">昵称:</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>--> <!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>--> <!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg=''/> <img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg='' />
<span class="fore-span ld-Marheight cus_nick"></span> <span class="fore-span ld-Marheight cus_nick"></span>
</td> </td>
</tr> </tr>
...@@ -503,16 +510,21 @@ ...@@ -503,16 +510,21 @@
<span class="text-danger">(必填)</span> <span class="text-danger">(必填)</span>
</div> </div>
<!--跟进保存--> <!--跟进保存-->
<div class="center-btn"> <div class="center-btn">
<button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button> <button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button>
</div> </div>
</div> </div>
</div>
</div> </div>
<!--详情 约带看 切换--> <!--详情 约带看 切换-->
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="table table-striped table-bordered table-hover table-condensed" id=" "> <table class="table table-striped table-bordered table-hover table-condensed" id=" ">
<thead> <thead>
<tr> <tr>
...@@ -564,20 +576,14 @@ ...@@ -564,20 +576,14 @@
保存 保存
</button> </button>
</div> </div>
</div>
</div> </div>
<!--<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_edit" data-dismiss="modal">
提交
</button>
</div>-->
</div> </div>
<!-- /.modal-content --> <!-- /.modal-content -->
</div> </div>
<!-- /.modal --> <!-- /.modal -->
</div> </div>
<!-- /#删除模态框 --> <!-- /#删除模态框 -->
<div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
......
...@@ -283,6 +283,11 @@ ...@@ -283,6 +283,11 @@
#user_area_add{ #user_area_add{
margin-left: 5px; margin-left: 5px;
} }
.call-user-five {
color: red;
font-size: 20px;
font-weight: 700;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -377,6 +382,8 @@ ...@@ -377,6 +382,8 @@
</div> </div>
<div class="modal-body modal-body1"> <div class="modal-body modal-body1">
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="" id="caozuo_hide" border='0'> <table class="" id="caozuo_hide" border='0'>
<thead> <thead>
<tr> <tr>
...@@ -454,7 +461,7 @@ ...@@ -454,7 +461,7 @@
<span class="fore-span ld-Marheight">昵称:</span> <span class="fore-span ld-Marheight">昵称:</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>--> <!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>--> <!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg=''/> <img src="" alt="" class="fore-span ld-Marheight diagram-image J_preview user_pic" data-bimg='' />
<span class="fore-span ld-Marheight cus_nick"></span> <span class="fore-span ld-Marheight cus_nick"></span>
</td> </td>
</tr> </tr>
...@@ -524,16 +531,21 @@ ...@@ -524,16 +531,21 @@
<span class="text-danger">(必填)</span> <span class="text-danger">(必填)</span>
</div> </div>
<!--跟进保存--> <!--跟进保存-->
<div class="center-btn"> <div class="center-btn">
<button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button> <button type="button" class="btn btn-primary right-btn" id="edit_add">保存</button>
</div> </div>
</div> </div>
</div>
</div> </div>
<!--详情 约带看 切换--> <!--详情 约带看 切换-->
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<div class="call-user-five"></div>
<div class="detail-modal-body-sec-2">
<table class="table table-striped table-bordered table-hover table-condensed" id=" "> <table class="table table-striped table-bordered table-hover table-condensed" id=" ">
<thead> <thead>
<tr> <tr>
...@@ -585,14 +597,9 @@ ...@@ -585,14 +597,9 @@
保存 保存
</button> </button>
</div> </div>
</div>
</div> </div>
<!--<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_edit" data-dismiss="modal">
提交
</button>
</div>-->
</div> </div>
<!-- /.modal-content --> <!-- /.modal-content -->
</div> </div>
......
...@@ -210,6 +210,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde ...@@ -210,6 +210,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
user.user_phone = $(this).attr("data-phone"); user.user_phone = $(this).attr("data-phone");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
$('#take_look_name').html($(this).attr("data-name")); $('#take_look_name').html($(this).attr("data-name"));
$('#take_look_phone').html($(this).attr("data-phone")); $('#take_look_phone').html($(this).attr("data-phone"));
$('#take_look_id').html($(this).attr("data-id")); $('#take_look_id').html($(this).attr("data-id"));
...@@ -1044,8 +1046,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde ...@@ -1044,8 +1046,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200&&data.data) { if(data.code == 200 || data.code == 201) {
user.user_id=data.data.user_id; user.user_id=data.data.user_id;
if(data.code == 200){
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
}else{
$('.call-user-five').html(data.msg);
$('.detail-modal-body-sec-2').hide();
}
user.Caozuo(); user.Caozuo();
user.getGenjincon(); user.getGenjincon();
if(data.data.user_id==data.data.max_user_id){ if(data.data.user_id==data.data.max_user_id){
...@@ -1057,6 +1066,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde ...@@ -1057,6 +1066,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
}else{ }else{
alert(data.msg) alert(data.msg)
} }
} }
}); });
}, },
......
...@@ -260,11 +260,10 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta ...@@ -260,11 +260,10 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
console.log(user.user_id); console.log(user.user_id);
if(user.user_id== 'null'){ if(user.user_id== 'null'){
// $("#modal-record").modal('hide');
alert('当前用户不存在'); alert('当前用户不存在');
} }
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
user.user_phone = $(this).attr("data-phone"); user.user_phone = $(this).attr("data-phone");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
$('#take_look_name').html($(this).attr("data-name")); $('#take_look_name').html($(this).attr("data-name"));
...@@ -1054,8 +1053,15 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta ...@@ -1054,8 +1053,15 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200&&data.data) { if(data.code == 200 || data.code == 201) {
user.user_id=data.data.user_id; user.user_id=data.data.user_id;
if(data.code == 200){
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
}else{
$('.call-user-five').html(data.msg);
$('.detail-modal-body-sec-2').hide();
}
user.Caozuo(); user.Caozuo();
user.getGenjincon(); user.getGenjincon();
if(data.data.user_id==data.data.max_user_id){ if(data.data.user_id==data.data.max_user_id){
...@@ -1067,6 +1073,7 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta ...@@ -1067,6 +1073,7 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'ckfinder', 'ckfinderSta
}else{ }else{
alert(data.msg) alert(data.msg)
} }
} }
}); });
}, },
......
...@@ -260,6 +260,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck ...@@ -260,6 +260,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
user.user_phone = $(this).attr("data-phone"); user.user_phone = $(this).attr("data-phone");
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
$('#take_look_name').html($(this).attr("data-name")); $('#take_look_name').html($(this).attr("data-name"));
$('#take_look_phone').html($(this).attr("data-phone")); $('#take_look_phone').html($(this).attr("data-phone"));
$('#take_look_id').html($(this).attr("data-id")); $('#take_look_id').html($(this).attr("data-id"));
...@@ -1060,8 +1062,15 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck ...@@ -1060,8 +1062,15 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck
}, },
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200&&data.data.length!=0) { if(data.code == 200 || data.code == 201) {
user.user_id=data.data.user_id; user.user_id=data.data.user_id;
if(data.code == 200){
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
}else{
$('.call-user-five').html(data.msg);
$('.detail-modal-body-sec-2').hide();
}
user.Caozuo(); user.Caozuo();
user.getGenjincon(); user.getGenjincon();
if(data.data.user_id==data.data.max_user_id){ if(data.data.user_id==data.data.max_user_id){
...@@ -1073,6 +1082,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck ...@@ -1073,6 +1082,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'ckfinder', 'ck
}else{ }else{
alert(data.msg) alert(data.msg)
} }
} }
}); });
}, },
......
...@@ -264,9 +264,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -264,9 +264,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user.agent_id_infor = $(this).attr("data-agentId"); user.agent_id_infor = $(this).attr("data-agentId");
$('.call-user-five').html(''); $('.call-user-five').html('');
$('.detail-modal-body-sec-2').show(); $('.detail-modal-body-sec-2').show();
$('.user_call').show();
$('#edit_add').show();
$('.save-look').show();
$('#take_look_name').html($(this).attr("data-name")); $('#take_look_name').html($(this).attr("data-name"));
$('#take_look_phone').html($(this).attr("data-phone")); $('#take_look_phone').html($(this).attr("data-phone"));
$('#take_look_id').html($(this).attr("data-id")); $('#take_look_id').html($(this).attr("data-id"));
...@@ -1132,15 +1129,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -1132,15 +1129,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
if(data.code == 200){ if(data.code == 200){
$('.call-user-five').html(''); $('.call-user-five').html('');
$('.detail-modal-body-sec-2').show(); $('.detail-modal-body-sec-2').show();
$('.user_call').show();
$('#edit_add').show();
$('.save-look').show();
}else{ }else{
$('.call-user-five').html(data.msg); $('.call-user-five').html(data.msg);
$('.detail-modal-body-sec-2').hide(); $('.detail-modal-body-sec-2').hide();
$('.user_call').hide();
$('#edit_add').hide();
$('.save-look').hide();
} }
user.Caozuo(); user.Caozuo();
user.getGenjincon(); user.getGenjincon();
......
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