...
|
...
|
@@ -21,13 +21,16 @@ class StarClassController extends AbstractAction |
|
|
{
|
|
|
//获取uid
|
|
|
$uid = self::getLoggedUid();
|
|
|
$appVersion = array();
|
|
|
if (!$this->_isApp) {
|
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}else{
|
|
|
$appVersion = array('app_version'=>1);
|
|
|
}
|
|
|
$this->setTitle('星潮教室');
|
|
|
//调用模型获得星潮教室首页数据
|
|
|
$data = StarClassModel::getStarClass($uid);
|
|
|
$data = StarClassModel::getStarClass($uid, $appVersion);
|
|
|
//渲染模板
|
|
|
$this->_view->display('index', array(
|
|
|
'trendClassHome' => $data,
|
...
|
...
|
@@ -44,14 +47,17 @@ class StarClassController extends AbstractAction |
|
|
{
|
|
|
//获取uid
|
|
|
$uid = self::getLoggedUid();
|
|
|
$appVersion = array();
|
|
|
if (!$this->_isApp) {
|
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}else{
|
|
|
$appVersion = array('app_version'=>1);
|
|
|
}
|
|
|
$this->setTitle('星潮教室');
|
|
|
|
|
|
//调用模型获得星专题数据
|
|
|
$data = StarClassModel::getspecial();
|
|
|
$data = StarClassModel::getspecial($appVersion);
|
|
|
|
|
|
//渲染模板
|
|
|
$this->_view->display('subject', array(
|
...
|
...
|
@@ -68,14 +74,17 @@ class StarClassController extends AbstractAction |
|
|
{
|
|
|
//获取uid
|
|
|
$uid = self::getLoggedUid();
|
|
|
$appVersion = array();
|
|
|
if (!$this->_isApp) {
|
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}else{
|
|
|
$appVersion = array('app_version'=>1);
|
|
|
}
|
|
|
$this->setTitle('星潮教室');
|
|
|
|
|
|
//调用模板获得星搭配数据
|
|
|
$data = StarClassModel::getCollocation();
|
|
|
$data = StarClassModel::getCollocation($appVersion);
|
|
|
|
|
|
//渲染模板
|
|
|
$this->_view->display('collocation', array(
|
...
|
...
|
@@ -115,16 +124,21 @@ class StarClassController extends AbstractAction |
|
|
*/
|
|
|
public function topAction()
|
|
|
{
|
|
|
//获取uid
|
|
|
$uid = self::getLoggedUid();
|
|
|
$appVersion = array();
|
|
|
//设置头部公共导航(此处返回键调转星潮教室首页)
|
|
|
$url = Helpers::url('/guang/starclass/index');
|
|
|
if (!$this->_isApp) {
|
|
|
$url = Helpers::url('/guang/starclass/index');
|
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮粉丝榜', $url, false);
|
|
|
}else{
|
|
|
$appVersion = array('app_version'=>1);
|
|
|
$url = Helpers::url('/guang/starclass/index', $appVersion);
|
|
|
}
|
|
|
$this->setTitle('星潮粉丝榜');
|
|
|
|
|
|
//根据客户端类型,进行未登录跳转
|
|
|
$uid = $this->getLoggedUid();
|
|
|
if (!$uid) {
|
|
|
$refer = Helpers::url('/guang/starclass/top');
|
|
|
if (!$this->_isApp) {
|
...
|
...
|
|