Commit 361f0663 authored by agping's avatar agping

客户详情 跟进动态区分城市

parent ae8102e2
......@@ -707,12 +707,20 @@
</table>
</div>
<div class="clear modal-title-genjing">
<span class="modal-title-genjing-con">
<span class="btn-info-liu">客户动态</span>
<span>带看动态</span>
</span>
</div>
<span class="modal-title-genjing-con">
<span class="btn-info-liu">客户动态</span>
<span>带看动态</span>
</span>
<!--城市筛选-->
<select class="user_city_list" style="font-size: 14px;font-weight: 500;float: right;margin-top: 8px;">
<option value="">选择城市</option>
<option value="10001">上海市</option>
<option value="10002">杭州市</option>
<option value="10003">深圳市</option>
<option value="10004">广州市</option>
<option value="10005">北京市</option>
</select>
</div>
<div id="gen_jing_user">
<div>
<div class="follow-up-modal-list-area" style="height: 212px">
......
......@@ -135,14 +135,22 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
$('.follow-up-modal-list-area:nth-of-type(1)').show().siblings().hide();
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
//客户详情 默认跟进动态的城市
$('.user_city_list').val(user_info_obj.site_id);
user.getSiteTagsEdit();
//详情 跟进 带看
user.Caozuo();
$('#caozuo_table2').html('');
user.pageNoUser=1;
// user.getGenjincon();
// user.getUserLogNew();//客户详情获取最近一条带看动态
// user.getGenjinLabel();
//点击城市选择 更新动态
$('.user_city_list').on('change', function(){
user.pageNoUser=1;
$('#caozuo_table2').html('');
user.isExitsNew=0
user.getGenjincon();
user.getUserLog(2);
});
_doc.delegate(".caozuo-yue", "click", function() {
//约带看初始化
$('#look_shop_date').val('');
......@@ -936,7 +944,9 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
data: {
"user_id": user.user_id,
"type": type,
"entrust_type": user.entrustType
"entrust_type": user.entrustType,
// "site_id": $('.user_city_list').val(),
},
dataType: 'json',
success: function(data) {
......@@ -1098,7 +1108,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
data: {
"user_id": user.user_id,
"type": 1,
"entrust_type": user.entrustType
"entrust_type": user.entrustType,
},
dataType: 'json',
success: function(data) {
......@@ -1484,7 +1495,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id": user.user_id,
"page_no": user.pageNoUser,
"page_size": 30,
"entrust_type": user.entrustType
"entrust_type": user.entrustType,
// "site_id": $('.user_city_list').val(),
},
dataType: 'json',
......@@ -1545,7 +1557,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id": user.user_id,
"page_no": user.pageNoUser,
"page_size": 30,
"entrust_type": user.entrustType
"entrust_type": user.entrustType,
// "site_id": $('.user_city_list').val(),
},
dataType: 'json',
......@@ -1659,10 +1672,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
params.type=user_type;
params.AuthToken=user_info_obj.AuthToken;
params.site_id = $(parent.document.querySelector('.user_city_choose_site_list')).val();
// checkLogin();
$.ajax({
url: '/broker/getLastOrNextUserID',
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
type: 'GET',
async: true,
data:params,
......@@ -1677,7 +1688,6 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
$('.call-user-five').html(data.msg);
$('.detail-modal-body-sec-2').hide();
}
console.log(670)
user.Caozuo();
user.getUserLogNew();
user.pageNoUser=1;
......
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