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

修改后台用户数据

@@ -76,11 +76,11 @@ class AdminIndexController extends AdminBaseController @@ -76,11 +76,11 @@ class AdminIndexController extends AdminBaseController
76 76
77 if (!empty($data['keyword'])) { 77 if (!empty($data['keyword'])) {
78 $keyword = $data['keyword']; 78 $keyword = $data['keyword'];
79 - $query->where('user_login|user_nickname|user_email|mobile', 'like', "%$keyword%"); 79 + $query->where('user_nickname|mobile|source', 'like', "%$keyword%");
80 } 80 }
81 81
82 }) 82 })
83 - ->order("create_time DESC") 83 + ->order("create_time DESC")
84 ->paginate(10); 84 ->paginate(10);
85 // 获取分页显示 85 // 获取分页显示
86 $page = $list->render(); 86 $page = $list->render();
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 placeholder="请输入用户ID"> 11 placeholder="请输入用户ID">
12 关键字: 12 关键字:
13 <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" 13 <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
14 - placeholder="用户名/昵称/邮箱/手机"> 14 + placeholder="昵称/手机/来源">
15 <input type="submit" class="btn btn-primary" value="搜索"/> 15 <input type="submit" class="btn btn-primary" value="搜索"/>
16 <a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a> 16 <a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
17 </form> 17 </form>
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 <th>{:lang('AVATAR')}</th> 34 <th>{:lang('AVATAR')}</th>
35 <!--<th>{:lang('EMAIL')}</th>--> 35 <!--<th>{:lang('EMAIL')}</th>-->
36 <th>手机号</th> 36 <th>手机号</th>
  37 + <th>来源</th>
37 <th>{:lang('REGISTRATION_TIME')}</th> 38 <th>{:lang('REGISTRATION_TIME')}</th>
38 <th>{:lang('LAST_LOGIN_TIME')}</th> 39 <th>{:lang('LAST_LOGIN_TIME')}</th>
39 <th>{:lang('LAST_LOGIN_IP')}</th> 40 <th>{:lang('LAST_LOGIN_IP')}</th>
@@ -64,6 +65,7 @@ @@ -64,6 +65,7 @@
64 </td> 65 </td>
65 <!--<td>{$vo.user_email}</td>--> 66 <!--<td>{$vo.user_email}</td>-->
66 <td>{$vo.mobile}</td> 67 <td>{$vo.mobile}</td>
  68 + <td>{$vo.source}</td>
67 <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> 69 <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
68 <td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td> 70 <td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
69 <td>{$vo.last_login_ip}</td> 71 <td>{$vo.last_login_ip}</td>
@@ -44,11 +44,9 @@ @@ -44,11 +44,9 @@
44 <div class="index_tenth_seconds"> 44 <div class="index_tenth_seconds">
45 <div class="index_tenth_second"> 45 <div class="index_tenth_second">
46 <div class="index_tenth_second_one"> 46 <div class="index_tenth_second_one">
47 - <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">  
48 - <div class="index_tenth_second_img">  
49 - <img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />  
50 - </div>  
51 - </a> 47 + <div class="index_tenth_second_img" id="login">
  48 + <img src="__TMPL__/public/assets/images/cicon_71@2x.png" alt="" />
  49 + </div>
52 <div class="index_tenth_second_title"> 50 <div class="index_tenth_second_title">
53 微信登录 51 微信登录
54 </div> 52 </div>
@@ -80,11 +78,14 @@ @@ -80,11 +78,14 @@
80 </p> 78 </p>
81 </div> 79 </div>
82 </div> 80 </div>
  81 + <div id="login_container">
  82 + </div>
83 </body> 83 </body>
84 <script src="__TMPL__/public/assets/js/base.js"></script> 84 <script src="__TMPL__/public/assets/js/base.js"></script>
85 <script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script> 85 <script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
86 <script src="__TMPL__/public/assets/js/swiper.min.js"></script> 86 <script src="__TMPL__/public/assets/js/swiper.min.js"></script>
87 <script src="__TMPL__/public/assets/js/public.js"></script> 87 <script src="__TMPL__/public/assets/js/public.js"></script>
  88 +<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
88 <script> 89 <script>
89 $(".login").click(function() { 90 $(".login").click(function() {
90 $(this).addClass("index_tenth_right"); 91 $(this).addClass("index_tenth_right");
@@ -140,5 +141,4 @@ @@ -140,5 +141,4 @@
140 }); 141 });
141 }); 142 });
142 </script> 143 </script>
143 -  
144 </html> 144 </html>