完善首页以及频道页的模板,添加分类数据处理类,初步完成分类模块
Showing
10 changed files
with
78 additions
and
963 deletions
library/Plugin/ClassProcess.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +namespace Plugin; | ||
4 | + | ||
5 | +/** | ||
6 | + * 分类数据处理类 | ||
7 | + */ | ||
8 | +class ClassProcess | ||
9 | +{ | ||
10 | + | ||
11 | + /** | ||
12 | + * 处理品类数据 | ||
13 | + * @param $data | ||
14 | + * @return array 处理之后的品类数据 | ||
15 | + */ | ||
16 | + public static function getClassData($data) | ||
17 | + { | ||
18 | + $num = 1; | ||
19 | + $classes = array(); | ||
20 | + | ||
21 | + foreach ($data as $k => $v){ | ||
22 | + $oneClass = array('name'=>$k, 'ca'=>array()); | ||
23 | + if($num === 1) | ||
24 | + { | ||
25 | + $oneClass['focus'] = true; | ||
26 | + } | ||
27 | + | ||
28 | + foreach ($v as $val) { | ||
29 | + $item = array(); | ||
30 | + $item['name'] = $val['category_name']; | ||
31 | + foreach ($val['sub'] as $value) { | ||
32 | + $subitem = array(); | ||
33 | + $subitem['name'] = $value['category_name']; | ||
34 | + $subitem['url'] = $value['category_id']; | ||
35 | + | ||
36 | + $item['sub'][] = $subitem; | ||
37 | + } | ||
38 | + | ||
39 | + $oneClass['ca'][] = $item; | ||
40 | + } | ||
41 | + | ||
42 | + $num++; | ||
43 | + $classes[] = $oneClass; | ||
44 | + } | ||
45 | + | ||
46 | + return $classes; | ||
47 | + | ||
48 | + } | ||
49 | +} |
@@ -16,11 +16,6 @@ | @@ -16,11 +16,6 @@ | ||
16 | {{# twoColumnGoods}} | 16 | {{# twoColumnGoods}} |
17 | {{> common/two_column_goods}} | 17 | {{> common/two_column_goods}} |
18 | {{/ twoColumnGoods}} | 18 | {{/ twoColumnGoods}} |
19 | - | ||
20 | - {{! 底部banner}} | ||
21 | - {{# bannerCenter}} | ||
22 | - {{> common/banner_bottom}} | ||
23 | - {{/ bannerCenter}} | ||
24 | 19 | ||
25 | <div class="overlay"></div> | 20 | <div class="overlay"></div> |
26 | </div> | 21 | </div> |
@@ -19,7 +19,7 @@ class BoysController extends AbstractAction | @@ -19,7 +19,7 @@ class BoysController extends AbstractAction | ||
19 | // 设置顶部信息(搜索) | 19 | // 设置顶部信息(搜索) |
20 | $this->setHomeChannelHeader(); | 20 | $this->setHomeChannelHeader(); |
21 | 21 | ||
22 | - $data = array(); | 22 | + $data = array('boysHomePage'=>true); |
23 | 23 | ||
24 | // 频道数据 | 24 | // 频道数据 |
25 | $channelData = IndexData::getUserChannelData(0, '1,3', '201504091403001'); | 25 | $channelData = IndexData::getUserChannelData(0, '1,3', '201504091403001'); |
@@ -19,7 +19,7 @@ class GirlsController extends AbstractAction | @@ -19,7 +19,7 @@ class GirlsController extends AbstractAction | ||
19 | // 设置顶部信息(搜索) | 19 | // 设置顶部信息(搜索) |
20 | $this->setHomeChannelHeader(); | 20 | $this->setHomeChannelHeader(); |
21 | 21 | ||
22 | - $data = array(); | 22 | + $data = array('grilsHomePage' => true); |
23 | 23 | ||
24 | // 频道数据 | 24 | // 频道数据 |
25 | $channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002'); | 25 | $channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002'); |
@@ -39,438 +39,6 @@ class GirlsController extends AbstractAction | @@ -39,438 +39,6 @@ class GirlsController extends AbstractAction | ||
39 | $data['content'][] = array('maybeLike' =>$maybeLike); | 39 | $data['content'][] = array('maybeLike' =>$maybeLike); |
40 | }*/ | 40 | }*/ |
41 | 41 | ||
42 | - $data = array( | ||
43 | - 'grilsHomePage' => true, | ||
44 | - 'headerDownload' => array( | ||
45 | - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
46 | - 'url' => 'http://www.baidu.com' | ||
47 | - ), | ||
48 | - 'homeHeader' => array( | ||
49 | - 'bgColor' => '#FF88AE', | ||
50 | - 'searchUrl' => '' | ||
51 | - ), | ||
52 | - 'sideNav' => array( | ||
53 | - array( | ||
54 | - 'textCn' => '男生', | ||
55 | - 'textEn' => 'Boys', | ||
56 | - 'styleClass' => 'boys', | ||
57 | - 'url' => '' | ||
58 | - ), | ||
59 | - array( | ||
60 | - 'textCn' => '女生', | ||
61 | - 'textEn' => 'GIRLS', | ||
62 | - 'styleClass' => 'girls', | ||
63 | - 'url' => '' | ||
64 | - ), | ||
65 | - array( | ||
66 | - 'textCn' => '潮童', | ||
67 | - 'textEn' => 'KIDS', | ||
68 | - 'styleClass' => 'kids', | ||
69 | - 'url' => '' | ||
70 | - ), | ||
71 | - array( | ||
72 | - 'textCn' => '创意生活', | ||
73 | - 'textEn' => 'LIFE STYLE', | ||
74 | - 'styleClass' => 'life', | ||
75 | - 'url' => '' | ||
76 | - ), | ||
77 | - array( | ||
78 | - 'textCn' => '逛', | ||
79 | - 'textEn' => 'TRENDFINDER', | ||
80 | - 'styleClass' => 'guang', | ||
81 | - 'subNav' => array( | ||
82 | - 'list' => array( | ||
83 | - array( | ||
84 | - 'textCn' => '逛', | ||
85 | - 'textEn' => 'TrendFinder', | ||
86 | - 'back' => true, | ||
87 | - 'bgColor' => '#fd307f' | ||
88 | - ), | ||
89 | - array( | ||
90 | - 'textCn' => '查看全部', | ||
91 | - 'url' => '' | ||
92 | - ), | ||
93 | - array( | ||
94 | - 'textCn' => '只看男生', | ||
95 | - 'textEn' => 'Boys', | ||
96 | - 'url' => '' | ||
97 | - ), | ||
98 | - array( | ||
99 | - 'textCn' => '只看女生', | ||
100 | - 'textEn' => 'Girls', | ||
101 | - 'url' => '', | ||
102 | - 'isSelect' => true | ||
103 | - ) | ||
104 | - ) | ||
105 | - ) | ||
106 | - ) | ||
107 | - ), | ||
108 | - 'content' => array( | ||
109 | - 'bannerTop' => array( | ||
110 | - 'list' => array( | ||
111 | - array( | ||
112 | - 'url' => '', | ||
113 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
114 | - ), | ||
115 | - array( | ||
116 | - 'url' => '', | ||
117 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
118 | - ), | ||
119 | - array( | ||
120 | - 'url' => '', | ||
121 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
122 | - ) | ||
123 | - ) | ||
124 | - ), | ||
125 | - 'iconsEnter' => array( | ||
126 | - 'list' => array( | ||
127 | - array( | ||
128 | - 'url' => '', | ||
129 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
130 | - 'text' => '新品到着' | ||
131 | - ), | ||
132 | - array( | ||
133 | - 'url' => '', | ||
134 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
135 | - 'text' => '全球优选' | ||
136 | - ), | ||
137 | - array( | ||
138 | - 'url' => '', | ||
139 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
140 | - 'text' => '明星潮牌' | ||
141 | - ), | ||
142 | - array( | ||
143 | - 'url' => '', | ||
144 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
145 | - 'text' => '全部品类' | ||
146 | - ), | ||
147 | - array( | ||
148 | - 'url' => '', | ||
149 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
150 | - 'text' => '逛' | ||
151 | - ), | ||
152 | - array( | ||
153 | - 'url' => '', | ||
154 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
155 | - 'text' => '搭配指南' | ||
156 | - ), | ||
157 | - array( | ||
158 | - 'url' => '', | ||
159 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
160 | - 'text' => '潮品推荐' | ||
161 | - ), | ||
162 | - array( | ||
163 | - 'url' => '', | ||
164 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
165 | - 'text' => '折扣精选' | ||
166 | - ) | ||
167 | - ) | ||
168 | - ), | ||
169 | - 'bannerCenter' => array( | ||
170 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
171 | - 'url' => '' | ||
172 | - ), | ||
173 | - | ||
174 | - 'hotCategory' => array( | ||
175 | - 'title' => array( | ||
176 | - 'name' => '热门品类' | ||
177 | - ), | ||
178 | - 'list' => array( | ||
179 | - array( | ||
180 | - 'textCn' => '卫衣', | ||
181 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
182 | - 'url' => '' | ||
183 | - ), | ||
184 | - array( | ||
185 | - 'textCn' => 'T恤', | ||
186 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
187 | - 'url' => '' | ||
188 | - ), | ||
189 | - array( | ||
190 | - 'textCn' => '打底衫', | ||
191 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
192 | - 'url' => '' | ||
193 | - ), | ||
194 | - array( | ||
195 | - 'textCn' => '打底衫', | ||
196 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
197 | - 'url' => '' | ||
198 | - ), | ||
199 | - array( | ||
200 | - 'textCn' => '打底衫', | ||
201 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
202 | - 'url' => '' | ||
203 | - ), | ||
204 | - array( | ||
205 | - 'textCn' => '打底衫', | ||
206 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
207 | - 'url' => '' | ||
208 | - ), | ||
209 | - array( | ||
210 | - 'textCn' => '打底衫', | ||
211 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
212 | - 'url' => '' | ||
213 | - ), | ||
214 | - array( | ||
215 | - 'textCn' => '打底衫', | ||
216 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
217 | - 'url' => '' | ||
218 | - ) | ||
219 | - ) | ||
220 | - ), | ||
221 | - 'hotBrands' => array( | ||
222 | - 'title' => array( | ||
223 | - 'name' => '热门品牌' | ||
224 | - ), | ||
225 | - 'list' => array( | ||
226 | - array( | ||
227 | - 'textCn' => 'Moussy', | ||
228 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
229 | - 'url' => '' | ||
230 | - ), | ||
231 | - array( | ||
232 | - 'textCn' => 'Moussy', | ||
233 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
234 | - 'url' => '' | ||
235 | - ), | ||
236 | - array( | ||
237 | - 'textCn' => 'Moussy', | ||
238 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
239 | - 'url' => '' | ||
240 | - ), | ||
241 | - array( | ||
242 | - 'textCn' => 'Moussy', | ||
243 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
244 | - 'url' => '' | ||
245 | - ), | ||
246 | - array( | ||
247 | - 'textCn' => 'Moussy', | ||
248 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
249 | - 'url' => '' | ||
250 | - ), | ||
251 | - array( | ||
252 | - 'textCn' => 'Moussy', | ||
253 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
254 | - 'url' => '' | ||
255 | - ) | ||
256 | - ) | ||
257 | - ), | ||
258 | - | ||
259 | - 'trendColloaction' => array( | ||
260 | - 'title' => array( | ||
261 | - 'title' => '潮人 ▪ 搭配', | ||
262 | - 'more_name' => '...', | ||
263 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
264 | - ), | ||
265 | - 'article' => array( | ||
266 | - array( | ||
267 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
268 | - 'url' => '' | ||
269 | - ), | ||
270 | - array( | ||
271 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
272 | - 'url' => '' | ||
273 | - ) | ||
274 | - ), | ||
275 | - | ||
276 | - 'recommend_collocation' => array( | ||
277 | - array( | ||
278 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
279 | - 'url' => '' | ||
280 | - ), | ||
281 | - array( | ||
282 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
283 | - 'url' => '' | ||
284 | - ), | ||
285 | - array( | ||
286 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
287 | - 'url' => '' | ||
288 | - ), | ||
289 | - array( | ||
290 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
291 | - 'url' => '' | ||
292 | - ), | ||
293 | - array( | ||
294 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
295 | - 'url' => '' | ||
296 | - ) | ||
297 | - ) | ||
298 | - ), | ||
299 | - 'trendTopics' => array( | ||
300 | - 'title' => array( | ||
301 | - 'title' => '潮品 ▪ 话题', | ||
302 | - 'more_name' => '...', | ||
303 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
304 | - ), | ||
305 | - 'list' => array( | ||
306 | - array( | ||
307 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
308 | - 'url' => '', | ||
309 | - 'title' => '现代裁剪', | ||
310 | - 'time' => '2月13日 12:34' | ||
311 | - ), | ||
312 | - array( | ||
313 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
314 | - 'url' => '', | ||
315 | - 'title' => '现代裁剪', | ||
316 | - 'time' => '2月13日 12:34' | ||
317 | - ), | ||
318 | - array( | ||
319 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
320 | - 'url' => '', | ||
321 | - 'title' => '现代裁剪', | ||
322 | - 'time' => '2月13日 12:34' | ||
323 | - ) | ||
324 | - ) | ||
325 | - ), | ||
326 | - 'goodsCategory' => array( | ||
327 | - 'title' => array( | ||
328 | - 'title' => '潮流时装', | ||
329 | - 'more_name' => '...', | ||
330 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
331 | - ), | ||
332 | - 'big_image' => array( | ||
333 | - 'list' => array( | ||
334 | - array( | ||
335 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
336 | - 'url' => '' | ||
337 | - ) | ||
338 | - ) | ||
339 | - ), | ||
340 | - 'list' => array( | ||
341 | - array( | ||
342 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
343 | - 'url' => '', | ||
344 | - 'textCn' => '手表' | ||
345 | - ), | ||
346 | - array( | ||
347 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
348 | - 'url' => '', | ||
349 | - 'textCn' => '烛台' | ||
350 | - ), | ||
351 | - array( | ||
352 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
353 | - 'url' => '', | ||
354 | - 'textCn' => '围巾' | ||
355 | - ), | ||
356 | - array( | ||
357 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
358 | - 'url' => '', | ||
359 | - 'textCn' => '盘子' | ||
360 | - ), | ||
361 | - array( | ||
362 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
363 | - 'url' => '', | ||
364 | - 'textCn' => '耳机' | ||
365 | - ) | ||
366 | - ) | ||
367 | - ), | ||
368 | - 'creativeLife' => array( | ||
369 | - 'title' => array( | ||
370 | - 'title' => '新入住品牌', | ||
371 | - 'more_name' => '...', | ||
372 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
373 | - ), | ||
374 | - 'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640', | ||
375 | - 'classify' => array( | ||
376 | - array( | ||
377 | - 'url' => '', | ||
378 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
379 | - 'name' => '手表' | ||
380 | - ), array( | ||
381 | - 'url' => '', | ||
382 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
383 | - 'name' => '烛台' | ||
384 | - ), array( | ||
385 | - 'url' => '', | ||
386 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
387 | - 'name' => '围巾' | ||
388 | - ), array( | ||
389 | - 'url' => '', | ||
390 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
391 | - 'name' => '盘子' | ||
392 | - ), array( | ||
393 | - 'url' => '', | ||
394 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
395 | - 'name' => '耳机' | ||
396 | - ), array( | ||
397 | - 'url' => '', | ||
398 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
399 | - 'name' => '生活' | ||
400 | - ) | ||
401 | - ) | ||
402 | - ), | ||
403 | - | ||
404 | - | ||
405 | - 'plusStar' => array( | ||
406 | - array( | ||
407 | - 'name' => 'PLUS 全球优选', | ||
408 | - 'url' => '', | ||
409 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
410 | - ), | ||
411 | - array( | ||
412 | - 'name' => 'PLUS 全球优选', | ||
413 | - 'url' => '', | ||
414 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
415 | - ) | ||
416 | - ), | ||
417 | - | ||
418 | - 'maybeLike' => array( | ||
419 | - 'goods' => array( | ||
420 | - array( | ||
421 | - 'id' => 1, | ||
422 | - 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
423 | - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣', | ||
424 | - 'isLike' => false, | ||
425 | - 'price' => 1268, | ||
426 | - 'salePrice' => 589, | ||
427 | - 'isSale' => true, | ||
428 | - 'isFew' => true, | ||
429 | - 'isNew' => false, | ||
430 | - 'url' => '' | ||
431 | - ), array( | ||
432 | - 'id' => 2, | ||
433 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
434 | - 'name' => 'CLOTtee 撞色连帽外套', | ||
435 | - 'isLike' => false, | ||
436 | - 'price' => 488, | ||
437 | - 'salePrice' => 139, | ||
438 | - 'isSale' => true, | ||
439 | - 'isFew' => true, | ||
440 | - 'isNew' => false, | ||
441 | - 'url' => '' | ||
442 | - ), array( | ||
443 | - 'id' => 3, | ||
444 | - 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
445 | - 'name' => 'HALFGIRL 插肩棒球服短裙套装', | ||
446 | - 'isLike' => true, | ||
447 | - 'price' => 478, | ||
448 | - 'salePrice' => 208, | ||
449 | - 'isSale' => true, | ||
450 | - 'isFew' => true, | ||
451 | - 'isNew' => false, | ||
452 | - 'url' => '' | ||
453 | - ), array( | ||
454 | - 'id' => 4, | ||
455 | - 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
456 | - 'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣', | ||
457 | - 'isLike' => false, | ||
458 | - 'salePrice' => 148, | ||
459 | - 'isSale' => false, | ||
460 | - 'isFew' => false, | ||
461 | - 'isNew' => true, | ||
462 | - 'url' => '' | ||
463 | - ) | ||
464 | - ) | ||
465 | - ), | ||
466 | - | ||
467 | - 'bannerBottom' => array( | ||
468 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
469 | - 'url' => '' | ||
470 | - ) | ||
471 | - | ||
472 | - )); | ||
473 | - | ||
474 | $this->_view->assign('title', 'YOHO!有货'); | 42 | $this->_view->assign('title', 'YOHO!有货'); |
475 | $this->_view->display('index', $data); | 43 | $this->_view->display('index', $data); |
476 | } | 44 | } |
@@ -20,7 +20,7 @@ class KidsController extends AbstractAction | @@ -20,7 +20,7 @@ class KidsController extends AbstractAction | ||
20 | // 设置顶部信息(搜索) | 20 | // 设置顶部信息(搜索) |
21 | $this->setHomeChannelHeader(); | 21 | $this->setHomeChannelHeader(); |
22 | 22 | ||
23 | - $data = array(); | 23 | + $data = array('kidsHomePage'=>true); |
24 | 24 | ||
25 | // 频道数据 | 25 | // 频道数据 |
26 | $channelData = IndexData::getUserChannelData(0, '', 'e9875682c1599a886bfbdb965b740022'); | 26 | $channelData = IndexData::getUserChannelData(0, '', 'e9875682c1599a886bfbdb965b740022'); |
@@ -20,14 +20,14 @@ class LifestyleController extends AbstractAction | @@ -20,14 +20,14 @@ class LifestyleController extends AbstractAction | ||
20 | // 设置顶部信息(搜索) | 20 | // 设置顶部信息(搜索) |
21 | $this->setHomeChannelHeader(); | 21 | $this->setHomeChannelHeader(); |
22 | 22 | ||
23 | - $data = array(); | 23 | + $data = array('lifestyleHomePage'=>true); |
24 | 24 | ||
25 | // 频道数据 | 25 | // 频道数据 |
26 | - $channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002'); | 26 | + $channelData = IndexData::getUserChannelData(0, '', '9aa25f5133f011ec96c2045eb15ae425'); |
27 | $channels = array(); | 27 | $channels = array(); |
28 | if($channelData['code'] == 200) | 28 | if($channelData['code'] == 200) |
29 | { | 29 | { |
30 | - $data['content'] = FloorProcess::getContent($channelData['data'], 2); | 30 | + $data['content'] = FloorProcess::getContent($channelData['data'], 4); |
31 | } | 31 | } |
32 | 32 | ||
33 | /*// 也许喜欢 | 33 | /*// 也许喜欢 |
@@ -40,437 +40,6 @@ class LifestyleController extends AbstractAction | @@ -40,437 +40,6 @@ class LifestyleController extends AbstractAction | ||
40 | $data['content'][] = array('maybeLike' =>$maybeLike); | 40 | $data['content'][] = array('maybeLike' =>$maybeLike); |
41 | }*/ | 41 | }*/ |
42 | 42 | ||
43 | - $data = array( | ||
44 | - 'headerDownload' => array( | ||
45 | - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
46 | - 'url' => 'http://www.baidu.com' | ||
47 | - ), | ||
48 | - 'homeHeader' => array( | ||
49 | - 'bgColor' => '#FF88AE', | ||
50 | - 'searchUrl' => '' | ||
51 | - ), | ||
52 | - 'sideNav' => array( | ||
53 | - array( | ||
54 | - 'textCn' => '男生', | ||
55 | - 'textEn' => 'Boys', | ||
56 | - 'styleClass' => 'boys', | ||
57 | - 'url' => '' | ||
58 | - ), | ||
59 | - array( | ||
60 | - 'textCn' => '女生', | ||
61 | - 'textEn' => 'GIRLS', | ||
62 | - 'styleClass' => 'girls', | ||
63 | - 'url' => '' | ||
64 | - ), | ||
65 | - array( | ||
66 | - 'textCn' => '潮童', | ||
67 | - 'textEn' => 'KIDS', | ||
68 | - 'styleClass' => 'kids', | ||
69 | - 'url' => '' | ||
70 | - ), | ||
71 | - array( | ||
72 | - 'textCn' => '创意生活', | ||
73 | - 'textEn' => 'LIFE STYLE', | ||
74 | - 'styleClass' => 'life', | ||
75 | - 'url' => '' | ||
76 | - ), | ||
77 | - array( | ||
78 | - 'textCn' => '逛', | ||
79 | - 'textEn' => 'TRENDFINDER', | ||
80 | - 'styleClass' => 'guang', | ||
81 | - 'subNav' => array( | ||
82 | - 'list' => array( | ||
83 | - array( | ||
84 | - 'textCn' => '逛', | ||
85 | - 'textEn' => 'TrendFinder', | ||
86 | - 'back' => true, | ||
87 | - 'bgColor' => '#fd307f' | ||
88 | - ), | ||
89 | - array( | ||
90 | - 'textCn' => '查看全部', | ||
91 | - 'url' => '' | ||
92 | - ), | ||
93 | - array( | ||
94 | - 'textCn' => '只看男生', | ||
95 | - 'textEn' => 'Boys', | ||
96 | - 'url' => '' | ||
97 | - ), | ||
98 | - array( | ||
99 | - 'textCn' => '只看女生', | ||
100 | - 'textEn' => 'Girls', | ||
101 | - 'url' => '', | ||
102 | - 'isSelect' => true | ||
103 | - ) | ||
104 | - ) | ||
105 | - ) | ||
106 | - ) | ||
107 | - ), | ||
108 | - 'content' => array( | ||
109 | - 'bannerTop' => array( | ||
110 | - 'list' => array( | ||
111 | - array( | ||
112 | - 'url' => '', | ||
113 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
114 | - ), | ||
115 | - array( | ||
116 | - 'url' => '', | ||
117 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
118 | - ), | ||
119 | - array( | ||
120 | - 'url' => '', | ||
121 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
122 | - ) | ||
123 | - ) | ||
124 | - ), | ||
125 | - 'iconsEnter' => array( | ||
126 | - 'list' => array( | ||
127 | - array( | ||
128 | - 'url' => '', | ||
129 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
130 | - 'text' => '新品到着' | ||
131 | - ), | ||
132 | - array( | ||
133 | - 'url' => '', | ||
134 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
135 | - 'text' => '全球优选' | ||
136 | - ), | ||
137 | - array( | ||
138 | - 'url' => '', | ||
139 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
140 | - 'text' => '明星潮牌' | ||
141 | - ), | ||
142 | - array( | ||
143 | - 'url' => '', | ||
144 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
145 | - 'text' => '全部品类' | ||
146 | - ), | ||
147 | - array( | ||
148 | - 'url' => '', | ||
149 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
150 | - 'text' => '逛' | ||
151 | - ), | ||
152 | - array( | ||
153 | - 'url' => '', | ||
154 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
155 | - 'text' => '搭配指南' | ||
156 | - ), | ||
157 | - array( | ||
158 | - 'url' => '', | ||
159 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
160 | - 'text' => '潮品推荐' | ||
161 | - ), | ||
162 | - array( | ||
163 | - 'url' => '', | ||
164 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
165 | - 'text' => '折扣精选' | ||
166 | - ) | ||
167 | - ) | ||
168 | - ), | ||
169 | - 'bannerCenter' => array( | ||
170 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
171 | - 'url' => '' | ||
172 | - ), | ||
173 | - | ||
174 | - 'hotCategory' => array( | ||
175 | - 'title' => array( | ||
176 | - 'name' => '热门品类' | ||
177 | - ), | ||
178 | - 'list' => array( | ||
179 | - array( | ||
180 | - 'textCn' => '卫衣', | ||
181 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
182 | - 'url' => '' | ||
183 | - ), | ||
184 | - array( | ||
185 | - 'textCn' => 'T恤', | ||
186 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
187 | - 'url' => '' | ||
188 | - ), | ||
189 | - array( | ||
190 | - 'textCn' => '打底衫', | ||
191 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
192 | - 'url' => '' | ||
193 | - ), | ||
194 | - array( | ||
195 | - 'textCn' => '打底衫', | ||
196 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
197 | - 'url' => '' | ||
198 | - ), | ||
199 | - array( | ||
200 | - 'textCn' => '打底衫', | ||
201 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
202 | - 'url' => '' | ||
203 | - ), | ||
204 | - array( | ||
205 | - 'textCn' => '打底衫', | ||
206 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
207 | - 'url' => '' | ||
208 | - ), | ||
209 | - array( | ||
210 | - 'textCn' => '打底衫', | ||
211 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
212 | - 'url' => '' | ||
213 | - ), | ||
214 | - array( | ||
215 | - 'textCn' => '打底衫', | ||
216 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
217 | - 'url' => '' | ||
218 | - ) | ||
219 | - ) | ||
220 | - ), | ||
221 | - 'hotBrands' => array( | ||
222 | - 'title' => array( | ||
223 | - 'name' => '热门品牌' | ||
224 | - ), | ||
225 | - 'list' => array( | ||
226 | - array( | ||
227 | - 'textCn' => 'Moussy', | ||
228 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
229 | - 'url' => '' | ||
230 | - ), | ||
231 | - array( | ||
232 | - 'textCn' => 'Moussy', | ||
233 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
234 | - 'url' => '' | ||
235 | - ), | ||
236 | - array( | ||
237 | - 'textCn' => 'Moussy', | ||
238 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
239 | - 'url' => '' | ||
240 | - ), | ||
241 | - array( | ||
242 | - 'textCn' => 'Moussy', | ||
243 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
244 | - 'url' => '' | ||
245 | - ), | ||
246 | - array( | ||
247 | - 'textCn' => 'Moussy', | ||
248 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
249 | - 'url' => '' | ||
250 | - ), | ||
251 | - array( | ||
252 | - 'textCn' => 'Moussy', | ||
253 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
254 | - 'url' => '' | ||
255 | - ) | ||
256 | - ) | ||
257 | - ), | ||
258 | - | ||
259 | - 'trendColloaction' => array( | ||
260 | - 'title' => array( | ||
261 | - 'title' => '潮人 ▪ 搭配', | ||
262 | - 'more_name' => '...', | ||
263 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
264 | - ), | ||
265 | - 'article' => array( | ||
266 | - array( | ||
267 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
268 | - 'url' => '' | ||
269 | - ), | ||
270 | - array( | ||
271 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
272 | - 'url' => '' | ||
273 | - ) | ||
274 | - ), | ||
275 | - | ||
276 | - 'recommend_collocation' => array( | ||
277 | - array( | ||
278 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
279 | - 'url' => '' | ||
280 | - ), | ||
281 | - array( | ||
282 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
283 | - 'url' => '' | ||
284 | - ), | ||
285 | - array( | ||
286 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
287 | - 'url' => '' | ||
288 | - ), | ||
289 | - array( | ||
290 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
291 | - 'url' => '' | ||
292 | - ), | ||
293 | - array( | ||
294 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
295 | - 'url' => '' | ||
296 | - ) | ||
297 | - ) | ||
298 | - ), | ||
299 | - 'trendTopics' => array( | ||
300 | - 'title' => array( | ||
301 | - 'title' => '潮品 ▪ 话题', | ||
302 | - 'more_name' => '...', | ||
303 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
304 | - ), | ||
305 | - 'list' => array( | ||
306 | - array( | ||
307 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
308 | - 'url' => '', | ||
309 | - 'title' => '现代裁剪', | ||
310 | - 'time' => '2月13日 12:34' | ||
311 | - ), | ||
312 | - array( | ||
313 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
314 | - 'url' => '', | ||
315 | - 'title' => '现代裁剪', | ||
316 | - 'time' => '2月13日 12:34' | ||
317 | - ), | ||
318 | - array( | ||
319 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
320 | - 'url' => '', | ||
321 | - 'title' => '现代裁剪', | ||
322 | - 'time' => '2月13日 12:34' | ||
323 | - ) | ||
324 | - ) | ||
325 | - ), | ||
326 | - 'goodsCategory' => array( | ||
327 | - 'title' => array( | ||
328 | - 'title' => '潮流时装', | ||
329 | - 'more_name' => '...', | ||
330 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
331 | - ), | ||
332 | - 'big_image' => array( | ||
333 | - 'list' => array( | ||
334 | - array( | ||
335 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
336 | - 'url' => '' | ||
337 | - ) | ||
338 | - ) | ||
339 | - ), | ||
340 | - 'list' => array( | ||
341 | - array( | ||
342 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
343 | - 'url' => '', | ||
344 | - 'textCn' => '手表' | ||
345 | - ), | ||
346 | - array( | ||
347 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
348 | - 'url' => '', | ||
349 | - 'textCn' => '烛台' | ||
350 | - ), | ||
351 | - array( | ||
352 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
353 | - 'url' => '', | ||
354 | - 'textCn' => '围巾' | ||
355 | - ), | ||
356 | - array( | ||
357 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
358 | - 'url' => '', | ||
359 | - 'textCn' => '盘子' | ||
360 | - ), | ||
361 | - array( | ||
362 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
363 | - 'url' => '', | ||
364 | - 'textCn' => '耳机' | ||
365 | - ) | ||
366 | - ) | ||
367 | - ), | ||
368 | - 'creativeLife' => array( | ||
369 | - 'title' => array( | ||
370 | - 'title' => '新入住品牌', | ||
371 | - 'more_name' => '...', | ||
372 | - 'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}' | ||
373 | - ), | ||
374 | - 'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640', | ||
375 | - 'classify' => array( | ||
376 | - array( | ||
377 | - 'url' => '', | ||
378 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
379 | - 'name' => '手表' | ||
380 | - ), array( | ||
381 | - 'url' => '', | ||
382 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
383 | - 'name' => '烛台' | ||
384 | - ), array( | ||
385 | - 'url' => '', | ||
386 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
387 | - 'name' => '围巾' | ||
388 | - ), array( | ||
389 | - 'url' => '', | ||
390 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
391 | - 'name' => '盘子' | ||
392 | - ), array( | ||
393 | - 'url' => '', | ||
394 | - 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
395 | - 'name' => '耳机' | ||
396 | - ), array( | ||
397 | - 'url' => '', | ||
398 | - 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
399 | - 'name' => '生活' | ||
400 | - ) | ||
401 | - ) | ||
402 | - ), | ||
403 | - | ||
404 | - | ||
405 | - 'plusStar' => array( | ||
406 | - array( | ||
407 | - 'name' => 'PLUS 全球优选', | ||
408 | - 'url' => '', | ||
409 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
410 | - ), | ||
411 | - array( | ||
412 | - 'name' => 'PLUS 全球优选', | ||
413 | - 'url' => '', | ||
414 | - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
415 | - ) | ||
416 | - ), | ||
417 | - | ||
418 | - 'maybeLike' => array( | ||
419 | - 'goods' => array( | ||
420 | - array( | ||
421 | - 'id' => 1, | ||
422 | - 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
423 | - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣', | ||
424 | - 'isLike' => false, | ||
425 | - 'price' => 1268, | ||
426 | - 'salePrice' => 589, | ||
427 | - 'isSale' => true, | ||
428 | - 'isFew' => true, | ||
429 | - 'isNew' => false, | ||
430 | - 'url' => '' | ||
431 | - ), array( | ||
432 | - 'id' => 2, | ||
433 | - 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
434 | - 'name' => 'CLOTtee 撞色连帽外套', | ||
435 | - 'isLike' => false, | ||
436 | - 'price' => 488, | ||
437 | - 'salePrice' => 139, | ||
438 | - 'isSale' => true, | ||
439 | - 'isFew' => true, | ||
440 | - 'isNew' => false, | ||
441 | - 'url' => '' | ||
442 | - ), array( | ||
443 | - 'id' => 3, | ||
444 | - 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
445 | - 'name' => 'HALFGIRL 插肩棒球服短裙套装', | ||
446 | - 'isLike' => true, | ||
447 | - 'price' => 478, | ||
448 | - 'salePrice' => 208, | ||
449 | - 'isSale' => true, | ||
450 | - 'isFew' => true, | ||
451 | - 'isNew' => false, | ||
452 | - 'url' => '' | ||
453 | - ), array( | ||
454 | - 'id' => 4, | ||
455 | - 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
456 | - 'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣', | ||
457 | - 'isLike' => false, | ||
458 | - 'salePrice' => 148, | ||
459 | - 'isSale' => false, | ||
460 | - 'isFew' => false, | ||
461 | - 'isNew' => true, | ||
462 | - 'url' => '' | ||
463 | - ) | ||
464 | - ) | ||
465 | - ), | ||
466 | - | ||
467 | - 'bannerBottom' => array( | ||
468 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
469 | - 'url' => '' | ||
470 | - ) | ||
471 | - | ||
472 | - )); | ||
473 | - | ||
474 | $this->_view->assign('title', 'YOHO!有货'); | 43 | $this->_view->assign('title', 'YOHO!有货'); |
475 | $this->_view->display('index', $data); | 44 | $this->_view->display('index', $data); |
476 | } | 45 | } |
1 | <?php | 1 | <?php |
2 | use Action\AbstractAction; | 2 | use Action\AbstractAction; |
3 | -// use LibModels\Wap\Category\ClassData; | 3 | +use LibModels\Wap\Category\ClassData; |
4 | +use Plugin\ClassProcess; | ||
4 | 5 | ||
5 | /** | 6 | /** |
6 | * 品牌 | 7 | * 品牌 |
@@ -9,86 +10,17 @@ class ClassController extends AbstractAction | @@ -9,86 +10,17 @@ class ClassController extends AbstractAction | ||
9 | { | 10 | { |
10 | public function indexAction() | 11 | public function indexAction() |
11 | { | 12 | { |
12 | - // $brandsData = ClassData::getClassesData(); | 13 | + $brandsData = ClassData::getClassesData(); |
13 | 14 | ||
14 | - // $classes = array(); | ||
15 | - // if($brandsData['code'] == 200) | ||
16 | - // { | ||
17 | - // $classes = $brandsData['data']; | ||
18 | - // } | 15 | + $classes = array(); |
16 | + if($brandsData['code'] == 200) | ||
17 | + { | ||
18 | + $classes = ClassProcess::getClassData($brandsData['data']); | ||
19 | + } | ||
19 | 20 | ||
20 | - // echo '<pre>'; | ||
21 | - // var_dump($classes);exit; | ||
22 | - | ||
23 | - // $this->_view->assign('title', 'YOHO!有货'); | ||
24 | - // $this->_view->display('class', compact('classes')); | ||
25 | $data = array( | 21 | $data = array( |
26 | "searchUrl" => "", | 22 | "searchUrl" => "", |
27 | - "class" => array( | ||
28 | - array( | ||
29 | - "name" => "Boy", | ||
30 | - "focus" => true, | ||
31 | - "ca" => array( | ||
32 | - array( | ||
33 | - "name" => "上衣", | ||
34 | - "sub" => array( | ||
35 | - array( | ||
36 | - "name" => "全部上衣", | ||
37 | - "url" => "" | ||
38 | - ), | ||
39 | - array( | ||
40 | - "name" => "卫衣", | ||
41 | - "url" => "" | ||
42 | - ) | ||
43 | - ) | ||
44 | - ), | ||
45 | - array( | ||
46 | - "name" => "裤装", | ||
47 | - "sub" => array( | ||
48 | - array( | ||
49 | - "name" => "全部裤装", | ||
50 | - "url" => "" | ||
51 | - ), | ||
52 | - array( | ||
53 | - "name" => "牛仔裤", | ||
54 | - "url" => "" | ||
55 | - ) | ||
56 | - ) | ||
57 | - ) | ||
58 | - ) | ||
59 | - ), | ||
60 | - array( | ||
61 | - "name" => "Girl", | ||
62 | - "ca" => array( | ||
63 | - array( | ||
64 | - "name" => "裙装", | ||
65 | - "sub" => array( | ||
66 | - array( | ||
67 | - "name" => "全部裙装", | ||
68 | - "url" => "" | ||
69 | - ), | ||
70 | - array( | ||
71 | - "name" => "短裙", | ||
72 | - "url" => "" | ||
73 | - ) | ||
74 | - ) | ||
75 | - ), | ||
76 | - array( | ||
77 | - "name" => "鞋靴", | ||
78 | - "sub" => array( | ||
79 | - array( | ||
80 | - "name" => "全部鞋靴", | ||
81 | - "url" => "" | ||
82 | - ), | ||
83 | - array( | ||
84 | - "name" => "休闲鞋", | ||
85 | - "url" => "" | ||
86 | - ) | ||
87 | - ) | ||
88 | - ) | ||
89 | - ) | ||
90 | - ) | ||
91 | - ) | 23 | + "class" => $classes |
92 | ); | 24 | ); |
93 | 25 | ||
94 | $this->_view->assign('title', 'YOHO!有货'); | 26 | $this->_view->assign('title', 'YOHO!有货'); |
@@ -10,7 +10,7 @@ class NewsaleController extends AbstractAction | @@ -10,7 +10,7 @@ class NewsaleController extends AbstractAction | ||
10 | { | 10 | { |
11 | public function indexAction() | 11 | public function indexAction() |
12 | { | 12 | { |
13 | - /*$this->_view->assign('title', '新品到着'); | 13 | + $this->_view->assign('title', '新品到着'); |
14 | 14 | ||
15 | // 新品到着顶部焦点图 | 15 | // 新品到着顶部焦点图 |
16 | $focusData = Newsale::getNewsaleFocus('a7989369aa86681c678bc40f171b8f1d'); | 16 | $focusData = Newsale::getNewsaleFocus('a7989369aa86681c678bc40f171b8f1d'); |
@@ -29,11 +29,13 @@ class NewsaleController extends AbstractAction | @@ -29,11 +29,13 @@ class NewsaleController extends AbstractAction | ||
29 | 29 | ||
30 | // 批量获取新品到着商品数据 | 30 | // 批量获取新品到着商品数据 |
31 | $products = Newsale::getNewProducts('1,3', 1, 60); | 31 | $products = Newsale::getNewProducts('1,3', 1, 60); |
32 | - var_dump($focus); | ||
33 | 32 | ||
34 | - $this->_view->display('new', compact('focus', 'products'));*/ | 33 | + echo '<pre>'; |
34 | + print_r($focus);print_r($products);exit; | ||
35 | + | ||
36 | + $this->_view->display('new', compact('f/**/ocus', 'products')); | ||
35 | 37 | ||
36 | - $data = array( | 38 | + /*$data = array( |
37 | 'headerBanner' => array( | 39 | 'headerBanner' => array( |
38 | 'list' => array( | 40 | 'list' => array( |
39 | array( | 41 | array( |
@@ -67,7 +69,7 @@ class NewsaleController extends AbstractAction | @@ -67,7 +69,7 @@ class NewsaleController extends AbstractAction | ||
67 | ); | 69 | ); |
68 | 70 | ||
69 | $this->_view->assign('title', '新品到着'); | 71 | $this->_view->assign('title', '新品到着'); |
70 | - $this->_view->display('new', $data); | 72 | + $this->_view->display('new', $data);*/ |
71 | } | 73 | } |
72 | 74 | ||
73 | 75 | ||
@@ -120,7 +122,9 @@ class NewsaleController extends AbstractAction | @@ -120,7 +122,9 @@ class NewsaleController extends AbstractAction | ||
120 | 122 | ||
121 | // 折扣专区商品数据 | 123 | // 折扣专区商品数据 |
122 | $products = Newsale::getNewProducts('1,3', 1, 60); | 124 | $products = Newsale::getNewProducts('1,3', 1, 60); |
123 | - var_dump($products); | 125 | + |
126 | + echo '<pre>'; | ||
127 | + print_r($focus);print_r($products);exit; | ||
124 | 128 | ||
125 | $this->_view->display('new', compact('focus', 'products')); | 129 | $this->_view->display('new', compact('focus', 'products')); |
126 | } | 130 | } |
-
Please register or login to post a comment