Authored by 周少峰

index notice

... ... @@ -7,6 +7,10 @@
{{# iconsEnter}}
{{> home/icons_enter}}
{{/ iconsEnter}}
{{! 首页公告}}
{{# notice}}
{{> home/notice}}
{{/ notice}}
{{! 中间banner}}
{{# banner}}
{{> home/banner}}
... ...
... ... @@ -2,11 +2,11 @@
<div class="trend">
</div>
<div class="notice" data-time="{{notice.time}}">
{{#notice}}
{{# list}}
<a class="notice-item item-{{@index}}" href="{{url}}">
<span class="notice-icon"></span>
{{title}}
</a>
{{/notice}}
{{/ list}}
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -30,13 +30,6 @@ class BoysController extends AbstractAction
$this->setNavFooterTab();
$uid = $this->getUid(true);
$content = Index\HomeModel::getBoysFloor($uid);
// $content[] = array(
// 'notice' => array(
// 'open' => true,
// 'list' => UserModel::getNoticeData(),
// 'time' => 3,
// )
// );
// 渲染模板并输出
$this->_view->display('index', array(
... ...