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
7647e283
Commit
7647e283
authored
Aug 08, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特殊权限验证
parent
4f1328fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Basic.php
application/index/extend/Basic.php
+2
-2
user_template_tpl.html
public/resource/template/user_template_tpl.html
+2
-1
No files found.
application/index/extend/Basic.php
View file @
7647e283
...
...
@@ -155,9 +155,9 @@ class Basic extends Controller
$m_user
=
new
Users
();
$where
[
'agent_id'
]
=
$this
->
userId
;
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$is_
=
$m_user
->
selectUser
(
$where
,
'id,agent_id'
);
$is_
=
$m_user
->
getMyUserCount
(
$where
);
if
(
$is_
[
'agent_id'
]
==
0
)
{
if
(
$is_
)
{
$is_auth
=
1
;
}
else
{
$is_auth
=
$is_
>
0
?
1
:
0
;
...
...
public/resource/template/user_template_tpl.html
View file @
7647e283
...
...
@@ -42,8 +42,9 @@
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
0
)
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
check_auth
(
'index/useraction_search'
)
)
{
%
]
<
a
class
=
"btn1 btn-success caozuo genj_ure"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
/
跟进
<
/a> 
;
[
%
if
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
{
%
]
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
客户编辑
<
/a> 
;
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
跟进
<
/a> --
>
<
a
class
=
"btn1 btn-success take-look"
href
=
"#modal-takeLook"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
data
-
phone
=
'[%= it[item]["user_phone"] %]'
>
约带看
<
/a
>
...
...
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