作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

XIAOPAN

@@ -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 }