Commit 3882590d authored by agping's avatar agping Committed by zw

优化

parent 00d4b183
......@@ -46,7 +46,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
agent_id_call_vip:"",
agent_id_phone:'',
pageNoUser:1,//客户详情 客户动态初始化分页
moreUser:0,//标识点击加载更多 还有没有数据
init: function() {
//初始化dot
$("body").append(template);
......@@ -367,6 +367,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_doc.on('click', '.user-log-more', function(e) {
e.preventDefault();
e.stopPropagation();
user.moreUser=1;
user.getGenjincon(user.pageNoUser++)
});
//点击缓存
......@@ -2028,7 +2029,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
// $('.follow-up-modal-list-area').scrollTop(0);
}else{
$("#caozuo_table2").html('暂无跟进信息');
if(user.pageNoUser==1){
$("#caozuo_table2").html('暂无跟进信息');
};
if(user.moreUser){
alert('暂无跟进信息!!!');
user.moreUser=0;
};
}
},
});
......
......@@ -52,6 +52,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
agent_id_call_current:"",
agent_id_call_vip:"",
pageNoUser:1,//客户详情 客户动态初始化分页
moreUser:0,//标识点击加载更多 还有没有数据
init: function() {
//初始化dot
$("body").append(template);
......@@ -179,6 +181,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
_doc.on('click', '.user-log-more', function(e) {
e.preventDefault();
e.stopPropagation();
user.moreUser=1;
user.getGenjincon(user.pageNoUser++)
});
......@@ -2306,7 +2309,14 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
// $('.follow-up-modal-list-area').scrollTop(0);
}else{
$("#caozuo_table2").html('暂无跟进信息');
if(user.pageNoUser==1){
$("#caozuo_table2").html('暂无跟进信息');
}
if(user.moreUser){
alert('暂无跟进信息!!!');
user.moreUser=0;
};
}
}
});
......
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