model = new GoodsModel; $this->view->engine->layout(false); } /** * 商品列表 * @return mixed * @throws \think\exception\DbException */ public function lists() { // 商品分类 $catgory = CategoryModel::getCacheTree(); // 商品列表 $list = $this->model->getList($this->request->param()); return $this->fetch('list', compact('list', 'catgory')); } }