|
|
@@ -27,6 +27,9 @@ class NewsController extends HomeBaseController
|
|
|
|
|
|
$newsHot = NewsService::getHotList();
|
|
|
|
|
|
+ // 友情链接
|
|
|
+ $links = LinkService::getList(['catname'=> 'news'], 50);
|
|
|
+
|
|
|
$this->assign('news1',$news1);
|
|
|
$this->assign('data',$news1? $news1->toArray(): ['total'=>0]);
|
|
|
$this->assign('page',$news1->render());
|
|
|
@@ -36,7 +39,7 @@ class NewsController extends HomeBaseController
|
|
|
$this->assign('paihang',$paihang);
|
|
|
$this->assign('catinfo',$catinfo);
|
|
|
$this->assign('searchType', 3);
|
|
|
- $this->assign('link_cate_name','news');
|
|
|
+ $this->assign('links',$links);
|
|
|
|
|
|
return $this->fetch();
|
|
|
}
|