Authored by 周少峰

index notice

@@ -7,6 +7,10 @@ @@ -7,6 +7,10 @@
7 {{# iconsEnter}} 7 {{# iconsEnter}}
8 {{> home/icons_enter}} 8 {{> home/icons_enter}}
9 {{/ iconsEnter}} 9 {{/ iconsEnter}}
  10 + {{! 首页公告}}
  11 + {{# notice}}
  12 + {{> home/notice}}
  13 + {{/ notice}}
10 {{! 中间banner}} 14 {{! 中间banner}}
11 {{# banner}} 15 {{# banner}}
12 {{> home/banner}} 16 {{> home/banner}}
@@ -2,11 +2,11 @@ @@ -2,11 +2,11 @@
2 <div class="trend"> 2 <div class="trend">
3 </div> 3 </div>
4 <div class="notice" data-time="{{notice.time}}"> 4 <div class="notice" data-time="{{notice.time}}">
5 - {{#notice}} 5 + {{# list}}
6 <a class="notice-item item-{{@index}}" href="{{url}}"> 6 <a class="notice-item item-{{@index}}" href="{{url}}">
7 <span class="notice-icon"></span> 7 <span class="notice-icon"></span>
8 {{title}} 8 {{title}}
9 </a> 9 </a>
10 - {{/notice}} 10 + {{/ list}}
11 </div> 11 </div>
12 </div> 12 </div>
@@ -30,13 +30,6 @@ class BoysController extends AbstractAction @@ -30,13 +30,6 @@ class BoysController extends AbstractAction
30 $this->setNavFooterTab(); 30 $this->setNavFooterTab();
31 $uid = $this->getUid(true); 31 $uid = $this->getUid(true);
32 $content = Index\HomeModel::getBoysFloor($uid); 32 $content = Index\HomeModel::getBoysFloor($uid);
33 - // $content[] = array(  
34 - // 'notice' => array(  
35 - // 'open' => true,  
36 - // 'list' => UserModel::getNoticeData(),  
37 - // 'time' => 3,  
38 - // )  
39 - // );  
40 33
41 // 渲染模板并输出 34 // 渲染模板并输出
42 $this->_view->display('index', array( 35 $this->_view->display('index', array(