Blame view

yohobuy/www.yohobuy.com/application/modules/Home/controllers/Redenvelopes.php 895 Bytes
whb authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<?php

use Action\WebAction;
use WebPlugin\Helpers;
use Home\UserModel;
use Home\RedenvelopesModel;

/**
 * 个人中心我的红包
 */
class RedenvelopesController extends WebAction
{

    public function indexAction()
    {
        $uid = $this->auditJumpLogin();
        //面包屑-左侧导航
        $path = UserModel::getCenterCrumb('红包');
        $leftNav = UserModel::getCenterLeftNav('我的红包', $uid);
        //头部导航
        $channel = Helpers::getChannelNameByCookie();
        $this->setWebNavHeader($channel);
        $data = array(
            'path' => $path,
            'userThumb' => UserModel::getUserHeadImg($uid),
            'homeNav' => $leftNav,
            'redEnvelopes' => RedenvelopesModel::redenvelopesList($uid)
        );
        $this->_view->display('red-envelopes', array('meRedEnvelopes' => $data));
    }

}