|
|
@@ -104,10 +104,15 @@ class IndexController extends HomeBaseController
|
|
|
|
|
|
|
|
|
// 热点新闻
|
|
|
- $newsHot = NewsService::getHotList();
|
|
|
+ $recNews = NewsService::getNewList(6);
|
|
|
|
|
|
// 加盟问答
|
|
|
- $answerList = NewsService::getListByLevel(1, 13);
|
|
|
+ $answerList = Db::name('know')->whereIn('status',[1,2])
|
|
|
+ ->field('id,title,description')
|
|
|
+ ->order('create_time desc')
|
|
|
+ ->limit(13)
|
|
|
+ ->select();
|
|
|
+// $answerList = NewsService::getListByLevel(1, 13);
|
|
|
|
|
|
// 课堂列表
|
|
|
$courseList = NewsService::getListByLevel(2, 7);
|
|
|
@@ -158,7 +163,7 @@ class IndexController extends HomeBaseController
|
|
|
$this->assign('cateNews2',$cateNews2);
|
|
|
$this->assign('cateNews2',$cateNews2);
|
|
|
$this->assign('newsCates',$newsCates);
|
|
|
- $this->assign('newsHot',$newsHot);
|
|
|
+ $this->assign('recNews',$recNews);
|
|
|
$this->assign('answerList',$answerList);
|
|
|
$this->assign('jmMessages',$jmMessages);
|
|
|
$this->assign('courseList',$courseList);
|