|
@@ -39,34 +39,31 @@ class StarClassController extends AbstractAction |
|
@@ -39,34 +39,31 @@ class StarClassController extends AbstractAction |
39
|
|
39
|
|
40
|
|
40
|
|
41
|
//星潮教室-星搭配
|
41
|
//星潮教室-星搭配
|
42
|
- public function CollocationAction()
|
42
|
+ public function collocationAction()
|
43
|
{
|
43
|
{
|
44
|
$data = StarClassModel::getCollocation();
|
44
|
$data = StarClassModel::getCollocation();
|
45
|
|
45
|
|
46
|
- $this->_view->display('collocation', array(
|
46
|
+ $this->_view->display('collocation-list', array(
|
|
|
47
|
+ 'trendClassCollocationPage' => true,
|
47
|
'trendClassCollocation' => $data
|
48
|
'trendClassCollocation' => $data
|
48
|
));
|
49
|
));
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
}
|
50
|
}
|
52
|
|
51
|
|
53
|
- //星潮教室-星搭配
|
52
|
+ //星潮教室-星搭配文章请求
|
54
|
public function ajaxCollocationAction()
|
53
|
public function ajaxCollocationAction()
|
55
|
{
|
54
|
{
|
56
|
-// if (!$this->isAjax()) {
|
|
|
57
|
-// return;
|
|
|
58
|
-// }
|
55
|
+ if (!$this->isAjax()) {
|
|
|
56
|
+ return;
|
|
|
57
|
+ }
|
59
|
$page = $this->get('page',2);
|
58
|
$page = $this->get('page',2);
|
60
|
$data = StarClassModel::ajaxCollocation($page);
|
59
|
$data = StarClassModel::ajaxCollocation($page);
|
61
|
if (isset($data) && !empty($data)) {
|
60
|
if (isset($data) && !empty($data)) {
|
62
|
- $this->_view->display('collocation', array(
|
61
|
+ $this->_view->display('collocation-list', array(
|
63
|
'trendClassCollocation' => $data
|
62
|
'trendClassCollocation' => $data
|
64
|
));
|
63
|
));
|
65
|
}else{
|
64
|
}else{
|
66
|
echo ' ';
|
65
|
echo ' ';
|
67
|
}
|
66
|
}
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
}
|
67
|
}
|
71
|
|
68
|
|
72
|
//签到
|
69
|
//签到
|