Customer.php 654 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\admin\controller;
  3. use app\BaseController;
  4. use app\common\model\CustomerModel;
  5. use think\App;
  6. use think\facade\View;
  7. use think\Request;
  8. class Customer extends BaseController
  9. {
  10. private $model;
  11. public function __construct(App $app)
  12. {
  13. parent::__construct($app);
  14. $this->model = new CustomerModel();
  15. }
  16. public function index(Request $request) {
  17. $params = $request->param();
  18. $params['name'] = '3';
  19. dump($params);
  20. View::assign([
  21. 'list' => $this->model->findCustomerPage($params),
  22. 'params' => $params
  23. ]);
  24. return view();
  25. }
  26. }