keyword = $params['keyword'] ?? $keyword; $this->page = $params['page'] ?? $page; $this->pageSize = $params['page_size'] ?? $pageSize; $this->typeId = $params['type_id'] ?? $typeId; $this->tagId = $params['tag_id'] ?? $tagId; $this->plateId = BlogPlateModel::VIDEO; $this->viewFile = $viewFile; $this->router_path = $params['router_path'] ?? $routerPath; } /** * 视频列表组件 */ public function render() { $retData = []; $retData['news_list'] = BlogRenderFacade::getPublishBlogList( $this->plateId, $this->keyword, $this->page, $this->pageSize, [], (int)$this->typeId, (int)$this->tagId ); if (!empty($this->router_path)) { $pageContent = WebFacade::getStaticPageInfo(['route_path' => $this->router_path]); $retData['page_content'] = $pageContent['page_content']; } $retData['menu_data']=WebFacade::getWebMenu(); return view($this->viewFile, $retData); } }