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
2d7fc044
Commit
2d7fc044
authored
Jul 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公客处理
parent
9effa03f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
Basic.php
application/index/extend/Basic.php
+9
-4
user_template_tpl.html
public/resource/template/user_template_tpl.html
+1
-1
No files found.
application/index/extend/Basic.php
View file @
2d7fc044
...
...
@@ -145,8 +145,8 @@ class Basic extends Controller
}
}
//处理客方编辑客户
if
((
$requestPath
==
'index/pcEditClient'
||
$requestPath
==
'index/pcAddFollow'
)
&&
isset
(
$this
->
params
[
'id'
]))
{
//处理客方编辑
、跟进、公客
客户
if
((
$requestPath
==
'index/pcEditClient'
||
$requestPath
==
'index/pcAddFollow'
||
$requestPath
==
'index/useraction_search'
)
&&
isset
(
$this
->
params
[
'id'
]))
{
if
(
empty
(
$this
->
params
[
'id'
]))
{
$is_auth
=
1
;
...
...
@@ -154,8 +154,13 @@ class Basic extends Controller
$m_user
=
new
Users
();
$where
[
'agent_id'
]
=
$this
->
userId
;
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$is_
=
$m_user
->
getUserAgentTotal
(
$where
);
$is_auth
=
$is_
>
0
?
1
:
0
;
$is_
=
$m_user
->
selectUser
(
$where
,
'id,agent_id'
);
if
(
$is_
[
'agent_id'
]
==
0
)
{
$is_auth
=
1
;
}
else
{
$is_auth
=
$is_
>
0
?
1
:
0
;
}
}
}
}
...
...
public/resource/template/user_template_tpl.html
View file @
2d7fc044
...
...
@@ -26,7 +26,7 @@
[
%
if
(
it
[
item
][
'first_login_time'
]
!=
null
){
%
]
[
%=
it
[
item
][
"first_login_time"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
((
check_auth
(
'auth_vip
'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
(
check_auth
(
'index/pcEditClient'
))
)
{
%
]
[
%
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/pcEditClient'
)
)
{
%
]
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详细信息
<
/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