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
779f221a
Commit
779f221a
authored
Apr 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增注册时间
parent
ed26f2ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
Member.php
application/api/controller/Member.php
+1
-0
Member.php
application/index/controller/Member.php
+1
-1
users_list.html
application/index/view/member/users_list.html
+1
-0
user_template_tpl.html
public/resource/template/user_template_tpl.html
+5
-0
No files found.
application/api/controller/Member.php
View file @
779f221a
...
...
@@ -303,6 +303,7 @@ class Member extends Basic
$result
=
$this
->
user
->
save
(
$insert_data
,
[
'id'
=>
$user_data
[
'id'
]]);
//注册用户
$id
=
empty
(
$result
)
?
0
:
$user_data
[
'id'
];
}
else
{
$insert_data
[
'registration_time'
]
=
$date
;
$this
->
user
->
save
(
$insert_data
);
//注册用户
$id
=
$this
->
user
->
id
;
}
...
...
application/index/controller/Member.php
View file @
779f221a
...
...
@@ -80,7 +80,7 @@ class Member extends Basic{
}
}
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.re
ferrer_sourc
e,a.user_name,a.last_login_ip,a.status'
;
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.re
gistration_tim
e,a.user_name,a.last_login_ip,a.status'
;
$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 @
779f221a
...
...
@@ -98,6 +98,7 @@
<th
class=
"text-center"
>
App状态
</th>
<th
class=
"text-center"
>
是否登录过
</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 @
779f221a
...
...
@@ -38,6 +38,11 @@
[
%=
it
[
item
][
"user_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'registration_time'
]
!=
null
){
%
]
[
%=
it
[
item
][
"registration_time"
]
%
]
[
%
}
%
]
<
/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