| | |
| | | |
| | | namespace app\shop\controller\supplier; |
| | | |
| | | use app\common\enum\supplier\SupplierType; |
| | | use app\shop\controller\Controller; |
| | | use app\shop\model\supplier\Category as CategoryModel; |
| | | |
| | |
| | | */ |
| | | public function index() |
| | | { |
| | | $typeList = SupplierType::getTypeName();// 获取请求的供应商类型参数 |
| | | // 广告分类 |
| | | $model = new CategoryModel; |
| | | $category = $model->getAll(); |
| | | return $this->renderSuccess('', compact('category')); |
| | | $params = $this->request->param(); |
| | | $category = $model->getAll($params); |
| | | return $this->renderSuccess('', compact('category','typeList')); |
| | | } |
| | | |
| | | /** |