...
|
...
|
@@ -9,9 +9,9 @@ use Index\UserModel as UserModel; |
|
|
|
|
|
/**
|
|
|
* 个人中心相关的控制器
|
|
|
*
|
|
|
*
|
|
|
* @name HomeController
|
|
|
* @package
|
|
|
* @package
|
|
|
* @copyright yoho.inc
|
|
|
* @version 1.0 (2015-10-28 16:28:32)
|
|
|
*/
|
...
|
...
|
@@ -31,7 +31,7 @@ class HomeController extends AbstractAction |
|
|
/*if (!$uid) {
|
|
|
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
|
|
|
}*/
|
|
|
|
|
|
|
|
|
$action = $this->getRequest()->getActionName();
|
|
|
if (!$uid && $action !== 'index') {
|
|
|
$this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')) ) );
|
...
|
...
|
@@ -61,7 +61,7 @@ class HomeController extends AbstractAction |
|
|
$data += UserModel::getUserProfileData($uid);
|
|
|
$data += UserModel::getInfoNumData($uid);
|
|
|
}
|
|
|
|
|
|
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -229,6 +229,21 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* YOHO币
|
|
|
*/
|
|
|
public function currencyNewAction()
|
|
|
{
|
|
|
$this->setTitle('YOHO币');
|
|
|
$this->setNavHeader('YOHO币', true, false);
|
|
|
|
|
|
$uid = $this->getUid();
|
|
|
$currency = UserModel::getYohoCoinData($uid);
|
|
|
|
|
|
$currency['pageFooter'] = true;
|
|
|
$this->_view->display('currency-new', $currency);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 优惠券
|
|
|
*/
|
|
|
public function couponsAction()
|
...
|
...
|
@@ -247,7 +262,7 @@ class HomeController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 我的消息
|
|
|
*
|
|
|
*
|
|
|
* 暂时使用老的,因后面APP、PC、WAP会进行一次改版
|
|
|
*/
|
|
|
public function messageAction()
|
...
|
...
|
@@ -377,7 +392,7 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* 在线客服
|
|
|
*/
|
|
|
public function onlineServiceAction()
|
...
|
...
|
@@ -536,7 +551,7 @@ class HomeController extends AbstractAction |
|
|
$uid = $this->getUid();
|
|
|
$data = GradeModel::getGrade($gender, $channel, $uid);
|
|
|
$data['pageFooter'] = true;
|
|
|
|
|
|
|
|
|
$this->_view->display('vip-grade', $data);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -729,7 +744,7 @@ class HomeController extends AbstractAction |
|
|
* 帮助列表页
|
|
|
*/
|
|
|
private function IHelpAction()
|
|
|
{
|
|
|
{
|
|
|
$this->setTitle('帮助中心');
|
|
|
$this->setNavHeader('帮助中心');
|
|
|
$data = array(
|
...
|
...
|
@@ -749,4 +764,4 @@ class HomeController extends AbstractAction |
|
|
);
|
|
|
$this->_view->display('i-help', $data);
|
|
|
}
|
|
|
} |
|
|
} |
...
|
...
|
|