data['slide'] = Slide::findList([["position","=",SlidePosition::home_position]])['list']; $this->data['topCategoryId'] = ArchivesCategory::index_id ; //碎片 $this->data['blocks'] = Block:: getByCategoryId(ArchivesCategory::index_id); return $this->view(); }catch (RepositoryException $e){ return $this->error("服务器错误"); } } }