正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -33,7 +33,9 @@ class AdminUsersController extends AdminBaseController{ | @@ -33,7 +33,9 @@ class AdminUsersController extends AdminBaseController{ | ||
33 | $where['mobile']=['like','%'.$param['keyword'].'%']; | 33 | $where['mobile']=['like','%'.$param['keyword'].'%']; |
34 | } | 34 | } |
35 | $users=new UsersModel(); | 35 | $users=new UsersModel(); |
36 | - $data=$users->where('')->order('create_time','desc')->paginate(10); | 36 | + $data=$users->where($where)->order('create_time','desc')->paginate(10); |
37 | + $data->appends($param); | ||
38 | + $this->assign('keyword', isset($param['keyword']) ? $param['keyword'] : ''); | ||
37 | $this->assign('data',$data); | 39 | $this->assign('data',$data); |
38 | return $this->fetch(); | 40 | return $this->fetch(); |
39 | } | 41 | } |
-
请 注册 或 登录 后发表评论