Commit 2474d232 authored by agping's avatar agping Committed by hujun

拨打电话修改

parent fe6baf90
...@@ -1083,11 +1083,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs'] ...@@ -1083,11 +1083,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
Caozuo: function() { Caozuo: function() {
//获取跟进详情的数据 //获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的 //隐藏拨打电话 如果客户在保护期 并且客户不是我的
if((user_info_obj.id*1 == user.agentbaohu*1) || user.baohu*1){ // if((user_info_obj.id*1 == user.agentbaohu*1) || user.baohu*1){
$('.user_call').show(); // $('.user_call').show();
}else{ // }else{
$('.user_call').hide(); // $('.user_call').hide();
}; // };
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/userDetail', 'url': '/index/userDetail',
...@@ -1141,13 +1141,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs'] ...@@ -1141,13 +1141,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
}else{ }else{
$('#user_is_collect').html('取消收藏'); $('#user_is_collect').html('取消收藏');
}; };
//vip客户 查看权限 //拨打电话显示 隐藏
if(user.agent_id_call_vip*1 == 1){ if(data.data.is_outpace_call_num*1 == 1){
if(check_auth('auth_vip') || (user.agent_id_call*1 == user.agent_id_call_current*1) || (data.data.is_can_look == 0)){
$('.user_call').show();
}else{
$('.user_call').hide(); $('.user_call').hide();
}; }else{
$('.user_call').show();
}; };
//获取 站点城市(编辑) //获取 站点城市(编辑)
data.data.user_info['site_ids'] && $.each($('.roomTagEdit'), function(i, item) { data.data.user_info['site_ids'] && $.each($('.roomTagEdit'), function(i, item) {
......
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