Authored by yangyang

save

@@ -35,7 +35,7 @@ class StarClassModel @@ -35,7 +35,7 @@ class StarClassModel
35 $res['rankInfo'] = StarClassData::rankInfoDataUrl($uid); 35 $res['rankInfo'] = StarClassData::rankInfoDataUrl($uid);
36 //print_r($res['rankInfo']);exit; 36 //print_r($res['rankInfo']);exit;
37 $data = Yohobuy::getMulti($res); 37 $data = Yohobuy::getMulti($res);
38 -// print_r($data['starClassIndex']); 38 + print_r($data['starClassIndex']);
39 // print_r($data);exit; 39 // print_r($data);exit;
40 //调用成功封装数据 40 //调用成功封装数据
41 if (isset($data['starClassIndex']) && !empty($data['starClassIndex'])) { 41 if (isset($data['starClassIndex']) && !empty($data['starClassIndex'])) {
@@ -53,7 +53,7 @@ class StarClassModel @@ -53,7 +53,7 @@ class StarClassModel
53 if (empty($build)) { 53 if (empty($build)) {
54 continue; 54 continue;
55 } 55 }
56 - $result[] = $build; 56 + $result['resources'][] = $build;
57 } 57 }
58 $build = array(); 58 $build = array();
59 59
@@ -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 //签到