...
|
...
|
@@ -11,6 +11,7 @@ namespace app\portal\controller; |
|
|
|
|
|
use app\portal\model\UsersModel;
|
|
|
use cmf\controller\AdminBaseController;
|
|
|
use think\Db;
|
|
|
/**
|
|
|
* Class AdminUsersController
|
|
|
* @package app\portal\controller
|
...
|
...
|
@@ -33,7 +34,12 @@ class AdminUsersController extends AdminBaseController{ |
|
|
$where['phone']=['like','%'.$param['keyword'].'%'];
|
|
|
}
|
|
|
$users=new UsersModel();
|
|
|
$data=$users->where($where)->order('create_time','desc')->paginate(10);
|
|
|
$data=$users->where($where)->order('create_time','desc')->paginate(10)->each(function ($item) {
|
|
|
if ($item['is_use']==1){
|
|
|
$item['eq']=Db::name('order')->where(['users_id'=>$item['id'],'status'=>1])->find()['eq_name'];
|
|
|
}
|
|
|
return $item;
|
|
|
});
|
|
|
$data->appends($param);
|
|
|
$this->assign('keyword', isset($param['keyword']) ? $param['keyword'] : '');
|
|
|
$this->assign('data',$data);
|
...
|
...
|
|