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
a41b7e52
Commit
a41b7e52
authored
Apr 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台用户列表增加一列是否登录过
parent
c6890fe2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
Member.php
application/index/controller/Member.php
+1
-1
users_list.html
application/index/view/member/users_list.html
+3
-2
user_template_tpl.html
public/resource/template/user_template_tpl.html
+12
-9
No files found.
application/index/controller/Member.php
View file @
a41b7e52
...
...
@@ -64,7 +64,7 @@ class Member extends Basic{
$where
[
'a.id'
]
=
$params
[
'id'
];
}
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.referrer_source'
;
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.referrer_source
,a.user_name,a.last_login_ip
'
;
$data
[
'list'
]
=
$this
->
user
->
getUserAgent
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
...
...
application/index/view/member/users_list.html
View file @
a41b7e52
...
...
@@ -77,14 +77,15 @@
</td>
</tr>
<tr>
<th
class=
"text-center"
>
客户
编号
</th>
<th
class=
"text-center"
>
客户
ID
</th>
<th
class=
"text-center"
>
客户姓名
</th>
<th
class=
"text-center"
>
性别
</th>
<th
class=
"text-center"
>
客户电话
</th>
<th
class=
"text-center"
>
创建时间
</th>
<th
class=
"text-center"
>
最后跟进时间
</th>
<th
class=
"text-center"
>
产生类型
</th>
<th
class=
"text-center"
>
App状态
</th>
<th
class=
"text-center"
>
是否登录过
</th>
<th
class=
"text-center"
>
昵称
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
...
...
public/resource/template/user_template_tpl.html
View file @
a41b7e52
...
...
@@ -4,15 +4,6 @@
<
tr
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_nick"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"sex"
]
==
0
)
{
%
]
保密
[
%
}
else
if
(
it
[
item
][
"sex"
]
==
1
)
{
%
]
男
[
%
}
else
{
%
]
女
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
...
...
@@ -38,6 +29,18 @@
冻结
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'last_login_ip'
]
==
null
){
%
]
否
[
%
}
else
{
%
]
是
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'user_name'
]
!=
null
){
%
]
[
%=
it
[
item
][
"user_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
...
...
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