Guang.php
20.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<?php
use Action\AbstractAction;
/**
* 逛
*/
class GuangController extends AbstractAction
{
/**
* 逛首页
*/
public function indexAction()
{
$data = array(
'guangIndexPage' => true,
'guang' => array(
'slider' => array(
array(
'href' => '',
'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
),
array(
'href' => '',
'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/02934d7696b187d260341d31c084eb93cc.jpg'
)
),
'msgTypes' => array(
array(
'typeId' => 1,
'type' => '最新',
'navUrl' => '/'
),
array(
'typeId' => 2,
'type' => '话题',
'isActive' => true,
'navUrl' => '/'
),
array(
'typeId' => 3,
'type' => '搭配',
'navUrl' => '/'
),
array(
'typeId' => 4,
'type' => '潮人',
'navUrl' => '/'
),
array(
'typeId' => 5,
'type' => '潮物',
'navUrl' => '/'
),
array(
'typeId' => 6,
'type' => '小贴士',
'navUrl' => '/'
)
),
'msgs' => array(
array(
'id' => 1,
'classification' => '话题',
'isReco' => true,
'href' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'isSquareImg' => true,
'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类',
'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'pTime' => '2015-03-08 15:33',
'pView' => '225',
'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长',
'tags' => array(
array(
'href' => '',
'tag' => 'adidas OriginalsQ'
)
),
'like' => 0, //如果为0,不传
// 'liked' => false,
'comment' => 20
)
),
'exRecos' => array(
array(
'url' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能'
)
),
'hotTags' => array(
array(
'tagname' => 'LEE',
'url' => ''
)
),
'ads' => array(
array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
)
),
'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>'
)
);
$this->_view->display('index', $data);
}
/**
* 逛详情页
*/
public function detailAction()
{
$data = array(
'guangDetailPage' => true,
'detail' => array(
'id' => '1',
'header' => array(
'title' => '潮款马甲内搭学院风领结衬衣!休闲学院风走起',
'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png',
'name' => '潮流主编',
'authorUrl' => '',
'intro' => '日本设计界宗师',
'time' => '2015-03-09 08:26',
'click' => '1128',
'commentNum' => '4',
'isLike' => false,
'likeNum' => 84,
'isCollected' => true,
),
'content' => array(
array(
'pic' => 'http://img01.yohoboys.com/contentimg/2015/06/04/14/01245c8a33b89ea1efef161f7de82a8b53.jpg'
),
array(
'text' => 'LV的大秀想必是最不容错过的,这个全世界最有实力的品牌,当之无愧的时尚之王,今年会带来什么样的惊喜呢?作为设计总监的Kim Jones,从2011年就负责LV的男装设计,每一季都会有突破性的表现,这一季度,依然带来具有Kim Jones风格的春夏系列。本季的主题融入了旅行风格,打造出一系列轻松舒适的服饰。从T恤到棒球夹克再到西装,都充满了轻松随意感。同时还融入了各式的花纹和图案设计。能够见到有中国特色的仙鹤刺绣等图案,撞色格纹设计也非常亮眼。搭配上剪裁轮廓上的流线感,使整个系列给人感觉非常的轻松自如。虽然Kim Jones一直保持低调的习惯,但是在巴黎这个时装界重要地区,他呈现一季比较有活力的大秀,顶级真的是顶级,这可不是一些标榜独立设计师品牌们能够企及的。'
),
array(
'smallPic' => array(
'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg',
'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg'
)
),
array(
'relatedReco' => array(
'recos' => array(
array(
'withInfo' => array(
'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'tags' => array(
array(
'isNew' => true
),
array(
'isSale' => false
),
array(
'isLimit' => true
),
array(
'isYohood' => false
),
array(
'isReNew' => false
),
array(
'isYearEndPromotion' => true
),
array(
'isYearMidPromotion' => false
)
),
'isFew' => true, //单独的即将售罄标志,不显示不写
'url' => ''
)
),
array(
'withInfo' => array(
'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'CLOTtee 撞色连帽外套',
'isLike' => false,
'price' => 488,
'salePrice' => 139,
'tags' => array(
array(
'isNew' => true
),
array(
'isSale' => false
),
array(
'isLimit' => true
),
array(
'isYohood' => true
)
),
'url' => ''
)
)
)
/*'moreReco' => ''*/
)
)
),
'brands' => array(
array(
'thumb' => 'http://img10.static.yhbimg.com/brandLogo/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center',
'name' => '004',
'url' => ''
),
array(
'thumb' => 'http://img12.static.yhbimg.com/brandLogo/2011/06/26/14/02ef4f656cbf6c1ec349b30f07e3347840.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center',
'name' => 'MELISSA',
'url' => ''
),
array(
'thumb' => 'http://img10.static.yhbimg.com/brandLogo/2012/08/02/15/01e4740f9f77d0142902face2f3d151109.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center',
'name' => '2%',
'url' => ''
),
array(
'thumb' => 'http://img12.static.yhbimg.com/brandLogo/2014/08/28/13/028aa6e10aad8235c0f283e0b26f495a9b.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center',
'name' => 'migo',
'url' => ''
)
),
'userInfo' => array(
'likeNum' => 84,
'isCollected' => true,
),
'tag' => array(
array(
'name' => 'LEE',
'url' => 'www.baidu.com'
),
array(
'name' => 'Style',
'url' => ''
),
array(
'name' => '卫衣',
'url' => 'www.baidu.com'
),
array(
'name' => '春季新品',
'url' => 'www.baidu.com'
),
array(
'name' => 'LEE',
'url' => 'www.baidu.com'
),
array(
'name' => 'Style',
'url' => ''
),
array(
'name' => '卫衣',
'url' => 'www.baidu.com'
),
array(
'name' => '春季新品',
'url' => 'www.baidu.com'
)
),
'relatedPost' => array(
array(
'url' => 'www.baidu.com',
'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/27/17/015d433e79035f8e04aeb4f1329418f0e7.jpg?imageView/2/w/250/h/200',
'title' => 'Playboy Special'
),
array(
'url' => '',
'imgUrl' => 'http://img02.yohoboys.com/contentimg/2015/06/03/09/02f9e8208e295f6624ba9eea5f1cdac0fa.jpg',
'title' => 'Playboy Special'
),
array(
'url' => 'www.baidu.com',
'imgUrl' => 'http://img02.yohoboys.com/contentimg/2015/02/27/10/02b3967610350cff3068dada3435cbff38.jpg',
'title' => 'Playboy Special'
)
),
'commentInfo' => '初始内容,用于登陆页跳转回来后的内容不丢失',
'comment' => array(
'commentNum' => 4, //如果没有评论,数字为0,list和commentPager可以不传
'list' => array(
array(
'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png',
'name' => 'Nikil',
'content' => '睡一觉再更',
'time' => '7小时前'
)
)
)
)
);
$this->_view->display('detail', $data);
}
/**
* 编辑页
*/
public function editorAction()
{
$data = array(
'guangListPage' => true,
'guang' => array(
'editor' => array(
'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png',
'name' => '潮流主编',
'intro' => '日本设计界宗师',
'info' => '设计理念:时尚,线条流畅',
),
'msgs' => array(
array(
'id' => 1,
'classification' => '话题',
'isReco' => true,
'href' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'isSquareImg' => true,
'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类',
'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'pTime' => '2015-03-08 15:33',
'pView' => '225',
'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长',
'tags' => array(
array(
'href' => '',
'tag' => 'adidas OriginalsQ'
)
),
'like' => 0, //如果为0,不传
// 'liked' => false,
'comment' => 20
)
),
'exRecos' => array(
array(
'url' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能'
)
),
'hotTags' => array(
array(
'tagname' => 'LEE',
'url' => ''
)
),
'ads' => array(
array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
)
),
'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>'
)
);
$this->_view->display('editor', $data);
}
/**
* 列表
*/
public function listAction()
{
$data = array(
'guangListPage' => true,
'guang' => array(
'tag' => '户外',
'msgs' => array(
array(
'id' => 1,
'classification' => '话题',
'isReco' => true,
'href' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'isSquareImg' => true,
'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类',
'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'pTime' => '2015-03-08 15:33',
'pView' => '225',
'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长',
'tags' => array(
array(
'href' => '',
'tag' => 'adidas OriginalsQ'
)
),
'like' => 0, //如果为0,不传
// 'liked' => false,
'comment' => 20
)
),
'exRecos' => array(
array(
'url' => '',
'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能'
)
),
'hotTags' => array(
array(
'tagname' => 'LEE',
'url' => ''
)
),
'ads' => array(
array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
)
),
'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>'
)
);
$this->_view->display('list', $data);
}
}