Redenvelopes.php 895 Bytes
<?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));
    }

}