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

测试反馈修改

... ... @@ -36,6 +36,7 @@ class AdminActiveController extends AdminBaseController
$data = Db::name('active')
->where($where)
->order('create_time','desc')
->paginate('15');
$data->appends($param);
... ...
... ... @@ -20,7 +20,7 @@ class AdminBrandCategoryController extends AdminBaseController
//商家分类
public function index()
{
$data=Db::name('brand_category')->where('status',1)->select();
$data=Db::name('brand_category')->where('status',1)->order('create_time','desc')->select();
$this->assign('list',$data);
return $this->fetch();
}
... ...
... ... @@ -44,6 +44,7 @@ class AdminBrandController extends AdminBaseController
->join('brand_category bc2','b.floor_id=bc2.id')
->where($where)
->field('b.*,bc1.name as bc1name,bc2.name as bc2name')
->order('b.create_time','desc')
->paginate('15');
$data->appends($param);
... ...
... ... @@ -44,6 +44,7 @@ class AdminCommentController extends AdminBaseController
->join('users u','u.id=c.users_id')
->where('c.status',1)
->field('u.*,b.name,c.*')
->order('c.create_time','desc')
->paginate('15');
// $ca1=Db::name('brand_category')->where('status',1)->select();
... ... @@ -65,6 +66,7 @@ class AdminCommentController extends AdminBaseController
->join('active a','c.cid=a.id')
->join('users u','c.users_id=u.id')
->where('c.status',2)
->order('c.create_time','desc')
->field('u.*,a.name,c.*')
->paginate('15');
$this->assign('list', $data);
... ... @@ -79,6 +81,7 @@ class AdminCommentController extends AdminBaseController
->join('users u','c.users_id=u.id')
->where('c.status',3)
->field('u.*,p.name,c.*')
->order('c.create_time','desc')
->paginate('15');
$this->assign('list', $data);
$this->assign('page',$data->render());
... ...
... ... @@ -20,7 +20,7 @@ class AdminPrizeCategoryController extends AdminBaseController
//礼品分类
public function index()
{
$data=Db::name('prize_category')->select();
$data=Db::name('prize_category')->order('create_time','desc')->select();
$this->assign('list',$data);
return $this->fetch();
}
... ...
... ... @@ -37,6 +37,7 @@ class AdminPrizeController extends AdminBaseController
->join('prize_category pc','p.category_id=pc.id')
->where($where)
->field('p.*,pc.name as pcname')
->order('p.create_time','desc')
->paginate('15')
->each(function ($item) {
$item['order'] = Db::name('prize_order') ->where('prize_id',$item['id'])->count();
... ...
... ... @@ -35,6 +35,7 @@ class AdminPrizeOrderController extends AdminBaseController
->join('users u','po.users_id=u.id')
->where($where)
->field('po.*,p.name,p.score as pscore,po.status as postatus,u.nickname,u.mobile')
->order('po.create_time','desc')
->paginate('15');
$data->appends($param);
... ...
... ... @@ -35,6 +35,7 @@ class AdminScoreController extends AdminBaseController
->join('users u','us.users_id=u.id')
->where($where)
->field('us.*,u.nickname,u.mobile')
->order('us.create_time','desc')
->paginate('15');
$data->appends($param);
... ...
... ... @@ -75,7 +75,7 @@ class AdminIndexController extends AdminBaseController
$keyword = $request['keyword'];
$where['nickname|mobile'] = ['like', "%$keyword%"];
}
$list=Db::name('users')->where($where)->paginate('15');
$list=Db::name('users')->where($where)->order('create_time','desc')->paginate('15');
// 获取分页显示
$page = $list->render();
$this->assign('start_time', isset($param['start_time']) ? $param['start_time'] : '');
... ...