Commit 26b3fab9 authored by agping's avatar agping

后台 vip权限更改

parent 0fae2614
......@@ -1297,12 +1297,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}else{
$('.user_call').hide();
};
//vip客户 查看权限
if((check_auth('auth_vip') && user.agent_id_call_vip*1) || (user.agent_id_call*1 == user_info_obj.id*1)){
$('.user_call').show();
}else{
$('.user_call').hide();
};
$.ajax({
'type': 'GET',
'url': '/index/useraction_search',
......@@ -1332,7 +1327,16 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$("#take_look_name").html(data.data.user_info.user_name); //约带看姓名
$("#take_look_phone").html(data.data.user_info.user_phone); //约带看手机号
$("#take_look_id").html(data.data.user_info.user_id); //约带看id
//vip客户 查看权限
if(user.agent_id_call_vip*1 == 1){
if(check_auth('auth_vip') || (user.agent_id_call*1 == user.agent_id_call_current*1) || (data.data.user_info.is_can_look == 0)){
$('.user_call').show();
}else{
$('.user_call').hide();
};
};
//获取 站点城市(编辑)
data.data.user_info['site_ids'] && $.each($('.roomTagEdit'), function(i, item) {
~data.data.user_info['site_ids'].indexOf(item.getAttribute('data-id')) && (item.checked = 'checked');
......
......@@ -1528,12 +1528,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}else{
$('.user_call').hide();
};
//vip客户 查看权限
if((check_auth('auth_vip') && user.agent_id_call_vip*1) || (user.agent_id_call*1 == user.agent_id_call_current*1)){
$('.user_call').show();
}else{
$('.user_call').hide();
}
checkLogin();
$.ajax({
'type': 'GET',
......@@ -1566,7 +1560,14 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$("#take_look_name").html(data.data.user_info.user_name); //约带看姓名
$("#take_look_phone").html(data.data.user_info.user_phone); //约带看手机号
$("#take_look_id").html(data.data.user_info.user_id); //约带看id
//vip客户 查看权限
if(user.agent_id_call_vip*1 == 1){
if(check_auth('auth_vip') || (user.agent_id_call*1 == user.agent_id_call_current*1) || (data.data.user_info.is_can_look == 0)){
$('.user_call').show();
}else{
$('.user_call').hide();
};
};
//获取 站点城市(编辑)
data.data.user_info['site_ids'] && $.each($('.roomTagEdit'), function(i, item) {
~data.data.user_info['site_ids'].indexOf(item.getAttribute('data-id')) && (item.checked = 'checked');
......
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