Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
8affcf00
Commit
8affcf00
authored
Nov 04, 2016
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的会员显示注册时间
parent
8ae404cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
Member.php
src/common/models/Member.php
+1
-1
main.php
src/console/config/main.php
+1
-0
index.php
src/frontend/views/my-member/index.php
+1
-1
No files found.
src/common/models/Member.php
View file @
8affcf00
...
@@ -112,7 +112,7 @@ class Member extends \yii\db\ActiveRecord
...
@@ -112,7 +112,7 @@ class Member extends \yii\db\ActiveRecord
*/
*/
public
function
getUser
()
public
function
getUser
()
{
{
return
$this
->
hasOne
(
User
::
className
(),
[
'id'
=>
'member_id'
])
->
select
(
'id,username,telephone,role,avatar'
);
return
$this
->
hasOne
(
User
::
className
(),
[
'id'
=>
'member_id'
])
->
select
(
'id,username,telephone,role,avatar
,created_at
'
);
}
}
/**
/**
...
...
src/console/config/main.php
View file @
8affcf00
...
@@ -17,6 +17,7 @@ return [
...
@@ -17,6 +17,7 @@ return [
[
[
'class'
=>
'yii\log\FileTarget'
,
'class'
=>
'yii\log\FileTarget'
,
'levels'
=>
[
'error'
,
'warning'
,
'info'
],
'levels'
=>
[
'error'
,
'warning'
,
'info'
],
'logVars'
=>
[]
],
],
],
],
],
],
...
...
src/frontend/views/my-member/index.php
View file @
8affcf00
...
@@ -42,7 +42,7 @@ $this->title = '我的会员';
...
@@ -42,7 +42,7 @@ $this->title = '我的会员';
<tbody>
<tbody>
<?php
foreach
(
$data
as
$row
)
{
?>
<?php
foreach
(
$data
as
$row
)
{
?>
<tr>
<tr>
<td>
2016-12-11
</td>
<td>
<?=
date
(
'Y年m月d日'
,
$row
[
'user'
][
'created_at'
])
?>
</td>
<td>
<?=
$row
[
'user'
][
'telephone'
]
?>
/
<?=
$row
[
'user'
][
'username'
]
?>
</td>
<td>
<?=
$row
[
'user'
][
'telephone'
]
?>
/
<?=
$row
[
'user'
][
'username'
]
?>
</td>
<td>
推广
</td>
<td>
推广
</td>
<?php
if
(
!
empty
(
$row
[
'first_order'
]))
{
?>
<?php
if
(
!
empty
(
$row
[
'first_order'
]))
{
?>
...
...
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