Commit a41b7e52 authored by hujun's avatar hujun

后台用户列表增加一列是否登录过

parent c6890fe2
......@@ -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);
......
......@@ -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>
......
......@@ -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"] %]'>
编辑
......
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