QueueController.php 738 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Author: 芸众商城 www.yunzshop.com
  4. * Date: 2019/3/31
  5. * Time: 9:42 PM
  6. */
  7. namespace app\backend\modules\point\controllers;
  8. use app\common\components\BaseController;
  9. use app\common\helpers\PaginationHelper;
  10. use app\common\models\finance\PointQueue;
  11. class QueueController extends BaseController
  12. {
  13. public function index()
  14. {
  15. $searh = request()->search;
  16. $list = PointQueue::getList($searh)
  17. ->orderBy('id', 'desc')
  18. ->paginate();
  19. $pager = PaginationHelper::show($list->total(), $list->currentPage(), $list->perPage());
  20. return view('point.queue', [
  21. 'list' => $list,
  22. 'pager' => $pager,
  23. 'search' => $searh
  24. ]);
  25. }
  26. }