作者 景龙
1 个管道 的构建 通过 耗费 2 秒

修改后台用户数据

... ... @@ -76,11 +76,11 @@ class AdminIndexController extends AdminBaseController
if (!empty($data['keyword'])) {
$keyword = $data['keyword'];
$query->where('user_login|user_nickname|user_email|mobile', 'like', "%$keyword%");
$query->where('user_nickname|mobile|source', 'like', "%$keyword%");
}
})
->order("create_time DESC")
->order("create_time DESC")
->paginate(10);
// 获取分页显示
$page = $list->render();
... ...
... ... @@ -11,7 +11,7 @@
placeholder="请输入用户ID">
关键字:
<input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
placeholder="用户名/昵称/邮箱/手机">
placeholder="昵称/手机/来源">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
</form>
... ... @@ -34,6 +34,7 @@
<th>{:lang('AVATAR')}</th>
<!--<th>{:lang('EMAIL')}</th>-->
<th>手机号</th>
<th>来源</th>
<th>{:lang('REGISTRATION_TIME')}</th>
<th>{:lang('LAST_LOGIN_TIME')}</th>
<th>{:lang('LAST_LOGIN_IP')}</th>
... ... @@ -64,6 +65,7 @@
</td>
<!--<td>{$vo.user_email}</td>-->
<td>{$vo.mobile}</td>
<td>{$vo.source}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
<td>{$vo.last_login_ip}</td>
... ...
... ... @@ -44,11 +44,9 @@
<div class="index_tenth_seconds">
<div class="index_tenth_second">
<div class="index_tenth_second_one">
<a href="https://open.weixin.qq.com/connect/qrconnect?appid=wx9cfa880272f186bf&redirect_uri=http://www.starplanet.cn/portal/login/wx_login&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect">
<div class="index_tenth_second_img">
<img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
</div>
</a>
<div class="index_tenth_second_img" id="login">
<img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
</div>
<div class="index_tenth_second_title">
微信登录
</div>
... ... @@ -80,11 +78,14 @@
</p>
</div>
</div>
<div id="login_container">
</div>
</body>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js"></script>
<script src="__TMPL__/public/assets/js/public.js"></script>
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script>
$(".login").click(function() {
$(this).addClass("index_tenth_right");
... ... @@ -140,5 +141,4 @@
});
});
</script>
</html>
\ No newline at end of file
... ...