Currency.php
1.01 KB
<?php
use Action\WebAction;
use WebPlugin\Helpers;
use Home\UserModel;
use Home\CurrencyModel;
/**
* 个人中心yoho币
*/
class CurrencyController extends WebAction
{
public function indexAction()
{
$uid = $this->auditJumpLogin();
$condition['page'] = $this->get('page', 1);
$condition['queryType'] = $this->get('type', 0);
$beginTime = date('Y-m-d',time()-3600*24*90);
$condition['beginTime'] = $this->get('beginTime', $beginTime);
$data = CurrencyModel::currencyData($uid, $condition);
//面包屑-左侧导航
$data['path'] = UserModel::getCenterCrumb('我的YOHO币');
$data['userThumb'] = UserModel::getUserHeadImg($uid);
$data['homeNav'] = UserModel::getCenterLeftNav('我的YOHO币', $uid);
//头部导航
$channel = Helpers::getChannelNameByCookie();
$this->setWebNavHeader($channel);
$this->_view->display('index', array('meCurrencyPage'=>true, 'meCurrency' => $data));
}
}