Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
26b3fab9
Commit
26b3fab9
authored
Nov 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台 vip权限更改
parent
0fae2614
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+11
-7
user.js
public/resource/js/user.js
+8
-7
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
26b3fab9
...
...
@@ -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'
);
...
...
public/resource/js/user.js
View file @
26b3fab9
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment