Commit 8affcf00 authored by 杨培's avatar 杨培

我的会员显示注册时间

parent 8ae404cb
......@@ -112,7 +112,7 @@ class Member extends \yii\db\ActiveRecord
*/
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');
}
/**
......
......@@ -17,6 +17,7 @@ return [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning', 'info'],
'logVars' => []
],
],
],
......
......@@ -42,7 +42,7 @@ $this->title = '我的会员';
<tbody>
<?php foreach ($data as $row) { ?>
<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>推广</td>
<?php if (!empty($row['first_order'])) { ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment