Commit 779f221a authored by hujun's avatar hujun

新增注册时间

parent ed26f2ce
......@@ -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;
}
......
......@@ -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.referrer_source,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.registration_time,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);
......
......@@ -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>
......
......@@ -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"] %]'>
编辑
......
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