| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\admin\controller;
- use app\BaseController;
- use app\common\model\CustomerModel;
- use think\App;
- use think\facade\View;
- use think\Request;
- class Customer extends BaseController
- {
- private $model;
- public function __construct(App $app)
- {
- parent::__construct($app);
- $this->model = new CustomerModel();
- }
- public function index(Request $request) {
- $params = $request->param();
- $params['name'] = '3';
- dump($params);
- View::assign([
- 'list' => $this->model->findCustomerPage($params),
- 'params' => $params
- ]);
- return view();
- }
- }
|