Authored by yangyang

删除不需要文件

@@ -44,7 +44,7 @@ class StarClassData @@ -44,7 +44,7 @@ class StarClassData
44 $param['content_code'] = $contentCode; 44 $param['content_code'] = $contentCode;
45 $param['client_secret'] = Sign::getSign($param); 45 $param['client_secret'] = Sign::getSign($param);
46 46
47 - return Yohobuy::httpBuildQuery(Yohobuy::API_URL . 'operations/api/v5/resource/get', $param); 47 + return Yohobuy::httpBuildQuery(Yohobuy::SERVICE_URL . 'operations/api/v5/resource/get', $param);
48 } 48 }
49 49
50 50
@@ -59,7 +59,7 @@ class StarClassData @@ -59,7 +59,7 @@ class StarClassData
59 $param['content_code'] = $contentCode; 59 $param['content_code'] = $contentCode;
60 $param['client_secret'] = Sign::getSign($param); 60 $param['client_secret'] = Sign::getSign($param);
61 61
62 - return Yohobuy::get(Yohobuy::API_URL . 'operations/api/v5/resource/get', $param); 62 + return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/resource/get', $param);
63 } 63 }
64 64
65 65
@@ -93,7 +93,7 @@ class StarClassData @@ -93,7 +93,7 @@ class StarClassData
93 $param['uid'] = $uid; 93 $param['uid'] = $uid;
94 $param['client_secret'] = Sign::getSign($param); 94 $param['client_secret'] = Sign::getSign($param);
95 95
96 - return Yohobuy::get(Yohobuy::API_URL . 'guang/api/v5/article/getStarClassroomArticleList', $param); 96 + return Yohobuy::get(Yohobuy::SERVICE_URL . 'guang/api/v5/article/getStarClassroomArticleList', $param);
97 } 97 }
98 98
99 /** 99 /**
@@ -109,7 +109,7 @@ class StarClassData @@ -109,7 +109,7 @@ class StarClassData
109 $param['udid'] = $udid; 109 $param['udid'] = $udid;
110 $param['client_secret'] = Sign::getSign($param); 110 $param['client_secret'] = Sign::getSign($param);
111 111
112 - return Yohobuy::get(Yohobuy::API_URL . 'guang/api/v5/praise/setPraise', $param); 112 + return Yohobuy::get(Yohobuy::SERVICE_URL . 'guang/api/v5/praise/setPraise', $param);
113 } 113 }
114 114
115 /** 115 /**
@@ -148,7 +148,7 @@ class StarClassData @@ -148,7 +148,7 @@ class StarClassData
148 $param['uid'] = $uid; 148 $param['uid'] = $uid;
149 $param['client_secret'] = Sign::getSign($param); 149 $param['client_secret'] = Sign::getSign($param);
150 150
151 - return Yohobuy::get(Yohobuy::API_URL . $url, $param); 151 + return Yohobuy::get(Yohobuy::SERVICE_URL . $url, $param);
152 } 152 }
153 153
154 154
1 -<?php  
2 -  
3 -use Action\AbstractAction;  
4 -use Guang\StarClassModel;  
5 -use LibModels\Wap\Guang\StarClassData;  
6 -use Plugin\Helpers;  
7 -  
8 -/**  
9 - * 星潮教室  
10 - * Class StarClassController  
11 - */  
12 -class StarClassController extends AbstractAction  
13 -{  
14 - //定义是否APP变量  
15 - protected $_isApp = false;  
16 -  
17 - /**  
18 - * 星潮教室首页  
19 - */  
20 - public function indexAction()  
21 - {  
22 - //设置头部公共导航  
23 - $this->setNavHeader('星潮教室', true, false);  
24 - //获取uid  
25 - $uid = $this->getLoggedUid();  
26 - //调用模型获得星潮教室首页数据  
27 - $data = StarClassModel::getStarClass($uid);  
28 - //渲染模板  
29 - $this->_view->display('index', array(  
30 - 'trendClassHome' => $data,  
31 - 'trendClassHomePage' => true  
32 - )  
33 - );  
34 - }  
35 -  
36 -  
37 - /**  
38 - * 星潮教室-星专题  
39 - */  
40 - public function specialAction()  
41 - {  
42 - //设置头部公共导航  
43 - $this->setNavHeader('星潮教室', true, false);  
44 -  
45 - //调用模型获得星专题数据  
46 - $data = StarClassModel::getspecial();  
47 -  
48 - //渲染模板  
49 - $this->_view->display('subject', array(  
50 - 'trendClassSubject' => $data,  
51 - 'trendClassHomePage' => true  
52 - ));  
53 - }  
54 -  
55 -  
56 - /**  
57 - * 星潮教室-星搭配  
58 - */  
59 - public function collocationAction()  
60 - {  
61 - //设置头部公共导航  
62 - $this->setNavHeader('星潮教室', true, false);  
63 -  
64 - //调用模板获得星搭配数据  
65 - $data = StarClassModel::getCollocation();  
66 -  
67 - //渲染模板  
68 - $this->_view->display('collocation', array(  
69 - 'trendClassCollocation' => $data,  
70 - 'trendClassCollocationPage' => true  
71 - ));  
72 - }  
73 -  
74 -  
75 - /**  
76 - * 星潮教室-星搭配文章 ajax请求  
77 - */  
78 - public function ajaxCollocationAction()  
79 - {  
80 - if (!$this->isAjax()) {  
81 - return;  
82 - }  
83 - //获得必要参数  
84 - $page = $this->get('page',1);  
85 - $uid = $this->getLoggedUid();  
86 - $isApp = $this->_isApp;  
87 -  
88 - //调取模型获得星搭配文章  
89 - $data = StarClassModel::ajaxCollocation($page, $uid, $isApp, $limit = 20);  
90 -  
91 - //返回数据到页面,没有数据返回空格  
92 - if (isset($data) && !empty($data)) {  
93 - $this->_view->display('collocation-list',$data);  
94 - }else{  
95 - echo ' ';  
96 - }  
97 - }  
98 -  
99 -  
100 - /**  
101 - * 星潮教室-签到-Top100排行榜  
102 - */  
103 - public function topAction()  
104 - {  
105 - //设置头部公共导航(此处返回键调转星潮教室首页)  
106 - $url = Helpers::url('/guang/starclass/index');  
107 - $this->setNavHeader('星潮粉丝榜', $url, false);  
108 -  
109 - //根据客户端类型,进行未登录跳转  
110 - $uid = $this->getLoggedUid();  
111 - if (!$uid) {  
112 - $refer = Helpers::url('/guang/starclass/top');  
113 - if (!$this->_isApp) {  
114 - $this->go(Helpers::url('/signin.html', array('refer' => $refer)));  
115 - } else {  
116 - $referEncode = strtr($refer, array('/' => '\\/'));  
117 - $this->go($refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}');  
118 - }  
119 - return;  
120 - }  
121 -  
122 - //调取模型获得Top100数据  
123 - $data = StarClassModel::getTop($uid);  
124 -  
125 - //渲染模板  
126 - $this->_view->display('check-in',array(  
127 - 'trendClassCheckIn'=>$data,  
128 - 'trendClassTopPage' => true  
129 - ));  
130 - }  
131 -  
132 -  
133 - /**  
134 - * 星潮教室-签到  
135 - */  
136 - public function signAction()  
137 - {  
138 - if(!$this->isAjax()){  
139 - return;  
140 - }  
141 -  
142 - //根据客户端类型,进行未登录跳转  
143 - $uid = $this->getLoggedUid();  
144 - if (!$uid) {  
145 - $refer = Helpers::url('/guang/starclass/index');  
146 - if (!$this->_isApp) {  
147 - $this->echoJson(array('code'=>201,'data'=>Helpers::url('/signin.html', array('refer' => $refer))));  
148 - } else {  
149 - $referEncode = strtr($refer, array('/' => '\\/'));  
150 - $this->echoJson(array('code'=>201,'data'=>$refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'));  
151 - }  
152 - return;  
153 - }  
154 - //调取模型完成签到,并返回数据  
155 - $res = StarClassModel::sign($uid);  
156 -  
157 - //输出签到结果到页面  
158 - $this->echoJson($res);  
159 - }  
160 -  
161 - /**  
162 - * 星鲜事-点赞  
163 - */  
164 - public function setPraiseAction()  
165 - {  
166 - if(!$this->isAjax()){  
167 - return;  
168 - }  
169 - //获得客户端ID(点赞不需要登录)  
170 - $udid = $this->getUdid();  
171 - //获得文章ID  
172 - $articleId = $this->post('articleId');  
173 -  
174 - //调取接口点赞  
175 - $result = StarClassData::setPraise($articleId, $udid);  
176 -  
177 - $this->echoJson($result);  
178 - }  
179 -  
180 - /**  
181 - * 星搭配-文章分享  
182 - */  
183 - public function forwardAction()  
184 - {  
185 - if(!$this->isAjax()){  
186 - return;  
187 - }  
188 - $result = array();  
189 -  
190 - //根据客户端类型,进行未登录跳转  
191 - $uid = $this->getLoggedUid();  
192 - if (!$uid) {  
193 - $refer = Helpers::url('/guang/starclass/collocation');  
194 - if (!$this->_isApp) {  
195 - $this->echoJson(array('code'=>201,'data'=>Helpers::url('/signin.html', array('refer' => $refer))));  
196 - } else {  
197 - $referEncode = strtr($refer, array('/' => '\\/'));  
198 - $this->echoJson(array('code'=>201,'data'=>$refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'));  
199 - }  
200 - return;  
201 - }else{  
202 - //调取接口分享文章  
203 - $result = StarClassData::forward($uid);  
204 - }  
205 -  
206 - $this->echoJson($result);  
207 - }  
208 -  
209 - /**  
210 - * 星搭配-收藏资讯文章  
211 - */  
212 - public function setFavoriteAction()  
213 - {  
214 - if (!$this->isAjax()) {  
215 - return;  
216 - }  
217 -  
218 - //根据客户端类型,进行未登录跳转  
219 - $uid = $this->getLoggedUid();  
220 - if (!$uid) {  
221 - $refer = Helpers::url('/guang/starclass/collocation');;  
222 - if (!$this->_isApp) {  
223 - $this->echoJson(array('code'=>201,'data'=>Helpers::url('/signin.html', array('refer' => $refer))));  
224 - } else {  
225 - $referEncode = strtr($refer, array('/' => '\\/'));  
226 - $this->echoJson(array('code'=>201,'data'=>$refer . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $referEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'));  
227 - }  
228 - return;  
229 - }  
230 -  
231 - //获取文章ID,接口Type(fav调取收藏接口,del调取取消收藏接口)  
232 - $articleId = $this->post('articleId');  
233 - $type = $this->post('type');  
234 -  
235 - if (!isset($articleId) || !isset($type)) {  
236 - $this->echoJson(array('code'=>400,'message'=>'参数错误!'));  
237 - }  
238 - $result = array();  
239 - //调取接口进行收藏  
240 - $result = StarClassData::setFavorite($articleId, $uid, $type);  
241 -  
242 - if (!empty($result)) {  
243 - $this->echoJson($result);  
244 - }  
245 -  
246 - }  
247 -  
248 - /**  
249 - * 检测登录状态  
250 - *  
251 - * @return int  
252 - */  
253 - private function getLoggedUid()  
254 - {  
255 - // 判断是否是应用访问, 拼接APP需要的URL参数  
256 - $this->_isApp = (null !== $this->get('app_version') || null !== $this->get('uid'));  
257 - $uid = false;  
258 - if ($this->_isApp) {  
259 - $uid = $this->get('uid');  
260 - } else {  
261 - $uid = $this->getUid();  
262 - }  
263 -  
264 - return $uid;  
265 - }  
266 -  
267 -}  
1 -<?php  
2 -  
3 -use Action\AbstractAction;  
4 -  
5 -/**  
6 - * 星潮教室  
7 - */  
8 -class TrendClassroom2Controller extends AbstractAction  
9 -{  
10 - /**  
11 - * 首页  
12 - */  
13 - public function indexAction()  
14 - {  
15 - $data = array(  
16 - 'title' => '星潮教室',  
17 - 'headTab' => array(  
18 - array(  
19 - 'name' => '全部',  
20 - 'url' => '#',  
21 - 'cur' => true  
22 - ),  
23 - array(  
24 - 'name' => '星专题',  
25 - 'url' => '/star/classroom/subject'  
26 - ),  
27 - array(  
28 - 'name' => '星搭配',  
29 - 'url' => '/star/classroom/collocation'  
30 - ),  
31 - array(  
32 - 'name' => '星鲜事',  
33 - 'url' => '/star/classroom/things'  
34 - )  
35 - ),  
36 - 'bannerList' => array(  
37 - array(  
38 - 'url' => 'http://feature.yoho.cn/0328/0328DAILYBOY/index.html?title=出游场景模拟变装趴&share_id=870',  
39 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b36610904562fd3085090f55aeca66df.jpg?imageView/2/w/640/h/240'  
40 - ),  
41 - array(  
42 - 'url' => 'http://designer.yoho.cn/bill?title=晒晒你的潮流清单&share_id=898',  
43 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240'  
44 - ),  
45 - array(  
46 - 'url' => 'http://feature.yoho.cn/NEWS/0331APPWEEKNEWSBOY/index.html?title=一周速报&share_id=882',  
47 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/31/03/01337e43ca91484214c4b5b2becc0ef13d.jpg?imageView/2/w/640/h/240'  
48 - ),  
49 - array(  
50 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=14&gender=1,3',  
51 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/01/08/02c78a28a9ca1dc585d614b195abff3eb1.jpg?imageView/2/w/640/h/240'  
52 - ),  
53 - array(  
54 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=11&gender=1,3',  
55 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240'  
56 - )  
57 - ),  
58 - 'homeSign' => array(  
59 -// 'portraitUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
60 -// 'username' => 'LIFE KK',  
61 -// 'rank' => 169,  
62 -// 'intimacy' => 2589,  
63 -// 'week' => array(  
64 -// 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fn', 'Sat'  
65 -// ),  
66 -  
67 -// 'signDay' => '1,2,3,4',  
68 -// 'intimacyNum' => '15',  
69 - 'url' => '/star/classroom/check-in',  
70 - //'calendar' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/31/03/01337e43ca91484214c4b5b2becc0ef13d.jpg?imageView/2/w/640/h/240',  
71 - 'fanCharts' => array(  
72 - array(  
73 - 'num' => '1',  
74 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
75 - 'name' => 'aaaaa',  
76 - 'intimacyNum' => '2546'  
77 - ),  
78 - array(  
79 - 'num' => '2',  
80 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
81 - 'name' => 'aaaaa',  
82 - 'intimacyNum' => '2546'  
83 - ),  
84 - array(  
85 - 'num' => '3',  
86 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
87 - 'name' => 'aaaaa',  
88 - 'intimacyNum' => '2546'  
89 - )  
90 - )  
91 - ),  
92 - 'starSubject' => array(  
93 - 'title' => array(  
94 - 'title' => '星专题',  
95 - 'moreUrl' => '/star/classroom/subject'  
96 - ),  
97 - 'subjectBanner' => array(  
98 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=1&gender=2,3',  
99 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
100 - ),  
101 - 'subjectVideo' => array(  
102 - 'videoImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
103 - 'videoUrl' => 'http://feature.yoho.cn/activity/2016/03/vgo/video/001/vgo.mp4'  
104 - )  
105 - ),  
106 - 'starCollocation' => array(  
107 - 'title' => array(  
108 - 'title' => '星搭配',  
109 - 'moreUrl' => '/star/classroom/collocation'  
110 - ),  
111 - 'collocationBigImg' => array(  
112 - array(  
113 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=14&gender=1,3',  
114 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/01/08/02c78a28a9ca1dc585d614b195abff3eb1.jpg?imageView/2/w/640/h/240'  
115 - ),  
116 - array(  
117 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=11&gender=1,3',  
118 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240'  
119 - )  
120 - ),  
121 - 'collocationList' => array(  
122 - array(  
123 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
124 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
125 - ),  
126 - array(  
127 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
128 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
129 - ),  
130 - array(  
131 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
132 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
133 - ),  
134 - array(  
135 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
136 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
137 - ),  
138 - array(  
139 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
140 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
141 - )  
142 - )  
143 - ),  
144 - 'starThings' => array(  
145 - 'title' => array(  
146 - 'title' => '星鲜事',  
147 - 'moreUrl' => '/star/classroom/things'  
148 - ),  
149 - 'thingsArticle' => array(  
150 - 'articles' => array(  
151 - array(  
152 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
153 - 'authorname' => '山本耀司',  
154 - 'releaseTime' => '2小时前',  
155 - 'seeNum' => '3445',  
156 - 'url' => '',  
157 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
158 - 'articeImg' => array(  
159 - array(  
160 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
161 - ),  
162 - array(  
163 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
164 - ),  
165 - array(  
166 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
167 - )  
168 - ),  
169 - 'zanUser' => array(  
170 - array(  
171 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
172 - ),  
173 - array(  
174 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
175 - ),  
176 - array(  
177 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
178 - ),  
179 - array(  
180 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
181 - ),  
182 - array(  
183 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
184 - ),  
185 - array(  
186 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
187 - )  
188 - ),  
189 - 'zanNum' => '99'  
190 - )  
191 - )  
192 - )  
193 - )  
194 - );  
195 -  
196 - $this->_view->display('index', array(  
197 - 'trendClassHome' => $data,  
198 - 'trendClassHomePage' => true  
199 - ));  
200 - }  
201 -  
202 - /**  
203 - * 星专题  
204 - */  
205 - public function specialAction()  
206 - {  
207 - $data = array(  
208 - 'title' => '星潮教室',  
209 - 'headTab' => array(  
210 - array(  
211 - 'name' => '全部',  
212 - 'url' => '/star/classroom'  
213 - ),  
214 - array(  
215 - 'name' => '星专题',  
216 - 'url' => '#',  
217 - 'cur' => true  
218 - ),  
219 - array(  
220 - 'name' => '星搭配',  
221 - 'url' => '/star/classroom/collocation'  
222 - ),  
223 - array(  
224 - 'name' => '星鲜事',  
225 - 'url' => '/star/classroom/things'  
226 - )  
227 - ),  
228 - 'subjectList' => array(  
229 - array(  
230 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
231 - 'img'=> 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
232 - 'title' => '壹周速报:吴亦凡'  
233 - ),  
234 - array(  
235 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
236 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
237 - 'title' => '吴亦凡生日会回礼送给“每个你”'  
238 - ),  
239 - array(  
240 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
241 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
242 - 'title' => '吴亦凡生日会回礼送给“每个你”吴亦凡生日会回礼送给“每个你”'  
243 - ),  
244 - array(  
245 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
246 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
247 - 'title' => '壹周速报:吴亦凡'  
248 - )  
249 - )  
250 - );  
251 -  
252 - $this->_view->display('subject', array(  
253 - 'trendClassSubject' => $data  
254 - ));  
255 - }  
256 -  
257 - /**  
258 - * 星搭配  
259 - */  
260 - public function collocationAction()  
261 - {  
262 - $data = array(  
263 - 'title' => '星潮教室',  
264 - 'headTab' => array(  
265 - array(  
266 - 'name' => '全部',  
267 - 'url' => '/star/classroom'  
268 - ),  
269 - array(  
270 - 'name' => '星专题',  
271 - 'url' => '/star/classroom/subject'  
272 - ),  
273 - array(  
274 - 'name' => '星搭配',  
275 - 'url' => '#',  
276 - 'cur' => true  
277 - ),  
278 - array(  
279 - 'name' => '星鲜事',  
280 - 'url' => '/star/classroom/things'  
281 - )  
282 - ),  
283 - 'collocationList' => array(  
284 - array(  
285 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
286 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
287 - 'title' => '小鲜肉吴亦凡告诉你什么才叫潮流街拍',  
288 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
289 - 'time' => '2月13日 12:34',  
290 - 'seeNum' => '3345',  
291 - 'zanNum' => '32'  
292 - ),  
293 - array(  
294 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
295 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
296 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
297 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
298 - 'time' => '2月13日 12:34',  
299 - 'seeNum' => '3345',  
300 - 'zanNum' => '32'  
301 - ),  
302 - array(  
303 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
304 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
305 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
306 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
307 - 'time' => '2月13日 12:34',  
308 - 'seeNum' => '3345',  
309 - 'zanNum' => '32'  
310 - ),  
311 - array(  
312 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
313 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
314 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
315 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
316 - 'time' => '2月13日 12:34',  
317 - 'seeNum' => '3345',  
318 - 'zanNum' => '32'  
319 - )  
320 - )  
321 - );  
322 -  
323 - $this->_view->display('collocation', array(  
324 - 'trendClassCollocation' => $data  
325 - ));  
326 - }  
327 -  
328 - /**  
329 - * 星鲜事  
330 - */  
331 - public function freshAction()  
332 - {  
333 - $data = array(  
334 - 'title' => '星潮教室',  
335 - 'headTab' => array(  
336 - array(  
337 - 'name' => '全部',  
338 - 'url' => '/star/classroom'  
339 - ),  
340 - array(  
341 - 'name' => '星专题',  
342 - 'url' => '/star/classroom/subject'  
343 - ),  
344 - array(  
345 - 'name' => '星搭配',  
346 - 'url' => '/star/classroom/collocation'  
347 - ),  
348 - array(  
349 - 'name' => '星鲜事',  
350 - 'url' => '#',  
351 - 'cur' => true  
352 - )  
353 - ),  
354 - 'thingsArticle' => array(  
355 - 'articles' => array(  
356 - array(  
357 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
358 - 'authorname' => '山本耀司',  
359 - 'releaseTime' => '2小时前',  
360 - 'seeNum' => '3445',  
361 - 'url' => '',  
362 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
363 - 'articeImg' => array(  
364 - array(  
365 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
366 - ),  
367 - array(  
368 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
369 - ),  
370 - array(  
371 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
372 - )  
373 - ),  
374 - 'zanUser' => array(  
375 - array(  
376 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
377 - ),  
378 - array(  
379 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
380 - ),  
381 - array(  
382 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
383 - ),  
384 - array(  
385 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
386 - ),  
387 - array(  
388 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
389 - ),  
390 - array(  
391 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
392 - )  
393 - ),  
394 - 'zanNum' => '99'  
395 - ),  
396 - array(  
397 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
398 - 'authorname' => '山本耀司',  
399 - 'releaseTime' => '2小时前',  
400 - 'seeNum' => '3445',  
401 - 'url' => '',  
402 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
403 - 'articeImg' => array(  
404 - array(  
405 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
406 - ),  
407 - array(  
408 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
409 - ),  
410 - array(  
411 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
412 - )  
413 - ),  
414 - 'zanUser' => array(  
415 - array(  
416 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
417 - ),  
418 - array(  
419 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
420 - ),  
421 - array(  
422 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
423 - ),  
424 - array(  
425 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
426 - ),  
427 - array(  
428 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
429 - ),  
430 - array(  
431 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
432 - )  
433 - ),  
434 - 'zanNum' => '99'  
435 - ),  
436 - array(  
437 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
438 - 'authorname' => '山本耀司',  
439 - 'releaseTime' => '2小时前',  
440 - 'seeNum' => '3445',  
441 - 'url' => '',  
442 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
443 - 'articeImg' => array(  
444 - array(  
445 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
446 - ),  
447 - array(  
448 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
449 - ),  
450 - array(  
451 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
452 - )  
453 - ),  
454 - 'zanUser' => array(  
455 - array(  
456 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
457 - ),  
458 - array(  
459 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
460 - ),  
461 - array(  
462 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
463 - ),  
464 - array(  
465 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
466 - ),  
467 - array(  
468 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
469 - ),  
470 - array(  
471 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
472 - )  
473 - ),  
474 - 'zanNum' => '99'  
475 - ),  
476 - array(  
477 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
478 - 'authorname' => '山本耀司',  
479 - 'releaseTime' => '2小时前',  
480 - 'seeNum' => '3445',  
481 - 'url' => '',  
482 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
483 - 'articeImg' => array(  
484 - array(  
485 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
486 - ),  
487 - array(  
488 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
489 - ),  
490 - array(  
491 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
492 - )  
493 - ),  
494 - 'zanUser' => array(  
495 - array(  
496 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
497 - ),  
498 - array(  
499 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
500 - ),  
501 - array(  
502 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
503 - ),  
504 - array(  
505 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
506 - ),  
507 - array(  
508 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
509 - ),  
510 - array(  
511 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
512 - )  
513 - ),  
514 - 'zanNum' => '99'  
515 - ),  
516 - array(  
517 - 'authorImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
518 - 'authorname' => '山本耀司',  
519 - 'releaseTime' => '2小时前',  
520 - 'seeNum' => '3445',  
521 - 'url' => '',  
522 - 'articeTxt' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可是有大学问的哦。不要再一板一眼地扣上每一个扣子了,选择一件有个性地',  
523 - 'articeImg' => array(  
524 - array(  
525 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
526 - ),  
527 - array(  
528 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
529 - ),  
530 - array(  
531 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
532 - )  
533 - ),  
534 - 'zanUser' => array(  
535 - array(  
536 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
537 - ),  
538 - array(  
539 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
540 - ),  
541 - array(  
542 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
543 - ),  
544 - array(  
545 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
546 - ),  
547 - array(  
548 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
549 - ),  
550 - array(  
551 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
552 - )  
553 - ),  
554 - 'zanNum' => '99'  
555 - )  
556 - )  
557 - )  
558 - );  
559 -  
560 - $this->_view->display('things', array(  
561 - 'trendClassThings' => $data  
562 - ));  
563 - }  
564 -  
565 - /**  
566 - * 签到  
567 - */  
568 - public function checkInAction()  
569 - {  
570 - $data = array(  
571 - //'title' => '星潮教室',  
572 - 'userImg' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
573 - 'userName' => 'LIFE KK',  
574 - 'rankNum' => '169',  
575 - 'intimacy' => '2589',  
576 - 'rankingList' => array(  
577 - array(  
578 - 'highLigth' => true,  
579 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
580 - 'num' => '1',  
581 - 'userName' => '小管JPG',  
582 - 'intimacyNum' => '8994'  
583 - ),  
584 - array(  
585 - 'highLigth' => true,  
586 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
587 - 'num' => '1',  
588 - 'userName' => '小管JPG',  
589 - 'intimacyNum' => '8994'  
590 - ),  
591 - array(  
592 - 'highLigth' => true,  
593 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
594 - 'num' => '1',  
595 - 'userName' => '小管JPG',  
596 - 'intimacyNum' => '8994'  
597 - ),  
598 - array(  
599 - 'highLigth' => true,  
600 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
601 - 'num' => '1',  
602 - 'userName' => '小管JPG',  
603 - 'intimacyNum' => '8994'  
604 - ),  
605 - array(  
606 - 'highLigth' => true,  
607 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
608 - 'num' => '1',  
609 - 'userName' => '小管JPG',  
610 - 'intimacyNum' => '8994'  
611 - ),  
612 - array(  
613 - 'highLigth' => true,  
614 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
615 - 'num' => '1',  
616 - 'userName' => '小管JPG',  
617 - 'intimacyNum' => '8994'  
618 - ),  
619 - array(  
620 - 'highLigth' => true,  
621 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
622 - 'num' => '1',  
623 - 'userName' => '小管JPG',  
624 - 'intimacyNum' => '8994'  
625 - )  
626 - )  
627 - );  
628 -  
629 - $this->_view->display('check-in', array(  
630 - 'trendClassCheckIn' => $data  
631 - ));  
632 - }  
633 -}  
1 -<?php  
2 -  
3 -use Action\AbstractAction;  
4 -  
5 -/**  
6 - * 星潮教室  
7 - */  
8 -class TrendClassroom2Controller extends AbstractAction  
9 -{  
10 - /**  
11 - * 首页  
12 - */  
13 - public function indexAction()  
14 - {  
15 - $data = array(  
16 - 'title' => '星潮教室',  
17 - 'headTab' => array(  
18 - array(  
19 - 'name' => '全部',  
20 - 'url' => '#',  
21 - 'cur' => true  
22 - ),  
23 - array(  
24 - 'name' => '星专题',  
25 - 'url' => '/Guang/TrendClassroom2/special'  
26 - ),  
27 - array(  
28 - 'name' => '星搭配',  
29 - 'url' => '/Guang/TrendClassroom2/collocation'  
30 - )  
31 - ),  
32 - 'bannerList' => array(  
33 - array(  
34 - 'url' => 'http://feature.yoho.cn/0328/0328DAILYBOY/index.html?title=出游场景模拟变装趴&share_id=870',  
35 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b36610904562fd3085090f55aeca66df.jpg?imageView/2/w/640/h/240'  
36 - ),  
37 - array(  
38 - 'url' => 'http://designer.yoho.cn/bill?title=晒晒你的潮流清单&share_id=898',  
39 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240'  
40 - ),  
41 - array(  
42 - 'url' => 'http://feature.yoho.cn/NEWS/0331APPWEEKNEWSBOY/index.html?title=一周速报&share_id=882',  
43 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/31/03/01337e43ca91484214c4b5b2becc0ef13d.jpg?imageView/2/w/640/h/240'  
44 - ),  
45 - array(  
46 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=14&gender=1,3',  
47 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/01/08/02c78a28a9ca1dc585d614b195abff3eb1.jpg?imageView/2/w/640/h/240'  
48 - ),  
49 - array(  
50 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=11&gender=1,3',  
51 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240'  
52 - )  
53 - ),  
54 - 'homeSign' => array(  
55 - 'portraitUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
56 - 'username' => 'LIFE KK',  
57 - 'rank' => 168,  
58 - 'intimacy' => 2589,  
59 - 'week' => array(  
60 - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fn', 'Sat'  
61 - ),  
62 - 'signDay' => '1,2,3,4',  
63 - 'intimacyNum' => '15',  
64 - 'url' => '/Guang/TrendClassroom2/checkIn',  
65 - 'calendar' => 'http://img11.static.yhbimg.com/yhb-img01/2016/03/31/03/01337e43ca91484214c4b5b2becc0ef13d.jpg?imageView/2/w/640/h/240',  
66 - 'fanCharts' => array(  
67 - array(  
68 - 'num' => '1',  
69 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
70 - 'name' => 'aaaaa',  
71 - 'intimacyNum' => '2546'  
72 - ),  
73 - array(  
74 - 'num' => '2',  
75 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
76 - 'name' => 'aaaaa',  
77 - 'intimacyNum' => '2546'  
78 - ),  
79 - array(  
80 - 'num' => '3',  
81 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240',  
82 - 'name' => 'aaaaa',  
83 - 'intimacyNum' => '2546'  
84 - )  
85 - )  
86 - ),  
87 - 'starSubject' => array(  
88 - 'title' => array(  
89 - 'title' => '星专题',  
90 - 'moreUrl' => '/Guang/TrendClassroom2/special'  
91 - ),  
92 - 'subjectBanner' => array(  
93 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=1&gender=2,3',  
94 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/05/06/023c1554ddd85563312fdf420edb2c48b9.jpg?imageView/2/w/640/h/240'  
95 - ),  
96 - 'subjectVideo' => array(  
97 - 'videoImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
98 - 'videoUrl' => 'http://feature.yoho.cn/activity/2016/03/vgo/video/001/vgo.mp4'  
99 - )  
100 - ),  
101 - 'starCollocation' => array(  
102 - 'title' => array(  
103 - 'title' => '星搭配',  
104 - 'moreUrl' => '/Guang/TrendClassroom2/collocation'  
105 - ),  
106 - 'collocationBigImg' => array(  
107 - array(  
108 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=14&gender=1,3',  
109 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/01/08/02c78a28a9ca1dc585d614b195abff3eb1.jpg?imageView/2/w/640/h/240'  
110 - ),  
111 - array(  
112 - 'url' => 'http://sale.m.yohobuy.com/?specialsale_id=11&gender=1,3',  
113 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/04/02ca2b986e193f7134d2f75c74f8169ec3.jpg?imageView/2/w/640/h/240'  
114 - )  
115 - ),  
116 - 'collocationList' => array(  
117 - array(  
118 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
119 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
120 - ),  
121 - array(  
122 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
123 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
124 - ),  
125 - array(  
126 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
127 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
128 - ),  
129 - array(  
130 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
131 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
132 - ),  
133 - array(  
134 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
135 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240'  
136 - )  
137 - )  
138 - )  
139 - );  
140 -  
141 - $this->_view->display('index', array(  
142 - 'trendClassHome' => $data,  
143 - 'trendClassHomePage' => true  
144 - ));  
145 - }  
146 -  
147 - /**  
148 - * 星专题  
149 - */  
150 - public function specialAction()  
151 - {  
152 - $data = array(  
153 - 'title' => '星潮教室',  
154 - 'headTab' => array(  
155 - array(  
156 - 'name' => '全部',  
157 - 'url' => '/Guang/TrendClassroom2/index'  
158 - ),  
159 - array(  
160 - 'name' => '星专题',  
161 - 'url' => '#',  
162 - 'cur' => true  
163 - ),  
164 - array(  
165 - 'name' => '星搭配',  
166 - 'url' => '/Guang/TrendClassroom2/collocation'  
167 - )  
168 - ),  
169 - 'subjectList' => array(  
170 - array(  
171 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
172 - 'img'=> 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
173 - 'title' => '壹周速报:吴亦凡'  
174 - ),  
175 - array(  
176 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
177 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
178 - 'title' => '吴亦凡生日会回礼送给“每个你”'  
179 - ),  
180 - array(  
181 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
182 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
183 - 'title' => '吴亦凡生日会回礼送给“每个你”吴亦凡生日会回礼送给“每个你”'  
184 - ),  
185 - array(  
186 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
187 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
188 - 'title' => '壹周速报:吴亦凡'  
189 - )  
190 - )  
191 - );  
192 -  
193 - $this->_view->display('subject', array(  
194 - 'trendClassSubject' => $data  
195 - ));  
196 - }  
197 -  
198 - /**  
199 - * 星搭配  
200 - */  
201 - public function collocationAction()  
202 - {  
203 - $data = array(  
204 - 'title' => '星潮教室',  
205 - 'headTab' => array(  
206 - array(  
207 - 'name' => '全部',  
208 - 'url' => '/Guang/TrendClassroom2/index'  
209 - ),  
210 - array(  
211 - 'name' => '星专题',  
212 - 'url' => '/Guang/TrendClassroom2/special'  
213 - ),  
214 - array(  
215 - 'name' => '星搭配',  
216 - 'url' => '#',  
217 - 'cur' => true  
218 - )  
219 - ),  
220 - 'collocationList' => array(  
221 - array(  
222 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
223 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
224 - 'title' => '小鲜肉吴亦凡告诉你什么才叫潮流街拍',  
225 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
226 - 'time' => '2月13日 12:34',  
227 - 'seeNum' => '3345',  
228 - 'zanNum' => '32',  
229 - 'share' => '#'  
230 - ),  
231 - array(  
232 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
233 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
234 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
235 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
236 - 'time' => '2月13日 12:34',  
237 - 'seeNum' => '3345',  
238 - 'zanNum' => '32'  
239 - ),  
240 - array(  
241 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
242 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
243 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
244 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
245 - 'time' => '2月13日 12:34',  
246 - 'seeNum' => '3345',  
247 - 'zanNum' => '32'  
248 - ),  
249 - array(  
250 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/03/28/10/02e3c1e87c4c06987ac22f9b6a80e7c616.jpg?imageView/2/w/640/h/240',  
251 - 'url' => 'http://cdn.yoho.cn/huodong/0328TESEGIRL/index.html?title=红人私服搭配list&share_id=836',  
252 - 'title' => '吴亦凡生日会回礼送给“每个你”',  
253 - 'content' => '学院风的格子衬衫可能是每个男生衣柜里都会有的单品了,但如何将设计大同小异的格子衬衫穿出型来可',  
254 - 'time' => '2月13日 12:34',  
255 - 'seeNum' => '3345',  
256 - 'zanNum' => '32'  
257 - )  
258 - )  
259 - );  
260 -  
261 - $this->_view->display('collocation', array(  
262 - 'trendClassCollocation' => $data,  
263 - 'trendClassCollocationPage' => true  
264 - ));  
265 - }  
266 -  
267 - /**  
268 - * 签到  
269 - */  
270 - public function checkInAction()  
271 - {  
272 - $data = array(  
273 - 'title' => '星潮教室',  
274 - 'userImg' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
275 - 'userName' => 'LIFE KK',  
276 - 'rankNum' => '169',  
277 - 'intimacy' => '2589',  
278 - 'rankingList' => array(  
279 - array(  
280 - 'highLigth' => true,  
281 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
282 - 'num' => '1',  
283 - 'userName' => '小管JPG',  
284 - 'intimacyNum' => '8994'  
285 - ),  
286 - array(  
287 - 'highLigth' => true,  
288 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
289 - 'num' => '1',  
290 - 'userName' => '小管JPG',  
291 - 'intimacyNum' => '8994'  
292 - ),  
293 - array(  
294 - 'highLigth' => true,  
295 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
296 - 'num' => '1',  
297 - 'userName' => '小管JPG',  
298 - 'intimacyNum' => '8994'  
299 - ),  
300 - array(  
301 - 'highLigth' => true,  
302 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
303 - 'num' => '1',  
304 - 'userName' => '小管JPG',  
305 - 'intimacyNum' => '8994'  
306 - ),  
307 - array(  
308 - 'highLigth' => true,  
309 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
310 - 'num' => '1',  
311 - 'userName' => '小管JPG',  
312 - 'intimacyNum' => '8994'  
313 - ),  
314 - array(  
315 - 'highLigth' => true,  
316 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
317 - 'num' => '1',  
318 - 'userName' => '小管JPG',  
319 - 'intimacyNum' => '8994'  
320 - ),  
321 - array(  
322 - 'highLigth' => true,  
323 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/04/01/05/010cb10578a55206faff271bceb0f22aaf.jpg?imageView/2/w/640/h/240',  
324 - 'num' => '1',  
325 - 'userName' => '小管JPG',  
326 - 'intimacyNum' => '8994'  
327 - )  
328 - )  
329 - );  
330 -  
331 - $this->_view->display('check-in', array(  
332 - 'trendClassCheckIn' => $data  
333 - ));  
334 - }  
335 -}