...
|
...
|
@@ -20,29 +20,26 @@ class StarClassController extends AbstractAction |
|
|
public function indexAction()
|
|
|
{
|
|
|
//获取uid
|
|
|
$uid = $this->getLoggedUid();
|
|
|
$uid = $this->getLoggedUid() ? $this->getLoggedUid() : $this->getCookie('uid');
|
|
|
|
|
|
if (!$this->_isApp) {
|
|
|
if ($uid) {
|
|
|
$this->setCookie('uid', $uid);
|
|
|
}else{
|
|
|
$this->setCookie('uid', '', time() - 3600);
|
|
|
}
|
|
|
}else{
|
|
|
$this->setCookie('isApp',true);
|
|
|
if ($uid) {
|
|
|
$this->setCookie('uid', $uid);
|
|
|
}else{
|
|
|
$this->setCookie('uid', '', time() - 3600);
|
|
|
}
|
|
|
}
|
|
|
//设置头部公共导航
|
|
|
$isApp = $this->getCookie('isApp', false);
|
|
|
if (!$isApp) {
|
|
|
|
|
|
if (!($isApp || $this->_isApp)) {
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}
|
|
|
|
|
|
$this->setTitle('星潮教室');
|
|
|
$this->setTitle('星潮教室', false, '');
|
|
|
//调用模型获得星潮教室首页数据
|
|
|
$data = StarClassModel::getStarClass($uid);
|
|
|
//渲染模板
|
...
|
...
|
@@ -66,7 +63,7 @@ class StarClassController extends AbstractAction |
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}
|
|
|
$this->setTitle('星潮教室');
|
|
|
$this->setTitle('星潮教室', false, '');
|
|
|
|
|
|
//调用模型获得星专题数据
|
|
|
$data = StarClassModel::getspecial();
|
...
|
...
|
@@ -91,7 +88,7 @@ class StarClassController extends AbstractAction |
|
|
//设置头部公共导航
|
|
|
$this->setNavHeader('星潮教室', true, false);
|
|
|
}
|
|
|
$this->setTitle('星潮教室');
|
|
|
$this->setTitle('星潮教室', false, '');
|
|
|
|
|
|
//调用模板获得星搭配数据
|
|
|
$data = StarClassModel::getCollocation();
|
...
|
...
|
@@ -143,7 +140,7 @@ class StarClassController extends AbstractAction |
|
|
$url = Helpers::url('/guang/starclass/index');
|
|
|
$this->setNavHeader('星潮粉丝榜', $url, false);
|
|
|
}
|
|
|
$this->setTitle('星潮粉丝榜');
|
|
|
$this->setTitle('星潮粉丝榜', false, '');
|
|
|
|
|
|
//根据客户端类型,进行未登录跳转
|
|
|
if (!$uid) {
|
...
|
...
|
|