Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
12 changed files
with
1142 additions
and
386 deletions
@@ -31,6 +31,7 @@ class LoginData | @@ -31,6 +31,7 @@ class LoginData | ||
31 | $param['area'] = $area; | 31 | $param['area'] = $area; |
32 | $param['profile'] = $profile; | 32 | $param['profile'] = $profile; |
33 | $param['password'] = $password; | 33 | $param['password'] = $password; |
34 | + $param['client_secret'] = Sign::getSign($param); | ||
34 | 35 | ||
35 | return Yohobuy::post(Yohobuy::API_URL, $param); | 36 | return Yohobuy::post(Yohobuy::API_URL, $param); |
36 | } | 37 | } |
@@ -46,6 +47,7 @@ class LoginData | @@ -46,6 +47,7 @@ class LoginData | ||
46 | $param = Yohobuy::param(); | 47 | $param = Yohobuy::param(); |
47 | $param['method'] = 'app.passport.profile'; | 48 | $param['method'] = 'app.passport.profile'; |
48 | $param['uid'] = $uid; | 49 | $param['uid'] = $uid; |
50 | + $param['client_secret'] = Sign::getSign($param); | ||
49 | 51 | ||
50 | return Yohobuy::get(Yohobuy::API_URL, $param); | 52 | return Yohobuy::get(Yohobuy::API_URL, $param); |
51 | } | 53 | } |
This diff could not be displayed because it is too large.
static/img/yohologo01.png
0 → 100644

5.24 KB
static/img/yohologo02.png
0 → 100644

6.02 KB
static/img/yohologo03.png
0 → 100644

3.41 KB
1 | +{{> layout/header}} | ||
2 | + <div class="mobile-wrap boys-wrap"> | ||
3 | + | ||
4 | + {{# headerDownload}} | ||
5 | + {{> common/header_download}} | ||
6 | + {{/ headerDownload}} | ||
7 | + | ||
8 | + {{! 首页header}} | ||
9 | + {{# homeHeader}} | ||
10 | + {{> common/home_header}} | ||
11 | + {{/ homeHeader}} | ||
12 | + | ||
13 | + {{> common/content}} | ||
14 | + | ||
15 | + | ||
16 | + {{! 商品列表}} | ||
17 | + {{# twoColumnGoods}} | ||
18 | + {{> common/two_column_goods}} | ||
19 | + {{/ twoColumnGoods}} | ||
20 | + | ||
21 | + {{! 底部banner}} | ||
22 | + {{# bannerBottom}} | ||
23 | + {{> common/banner_bottom}} | ||
24 | + {{/ bannerBottom}} | ||
25 | + | ||
26 | + <div class="overlay"></div> | ||
27 | + </div> | ||
28 | + | ||
29 | +{{> layout/footer}} |
1 | +{{> layout/header}} | ||
2 | + <div class="mobile-wrap lifestyle-wrap"> | ||
3 | + {{! 首页header}} | ||
4 | + {{# homeHeader}} | ||
5 | + {{> common/home_header}} | ||
6 | + {{/ homeHeader}} | ||
7 | + | ||
8 | + {{> common/content}} | ||
9 | + | ||
10 | + {{! 商品列表}} | ||
11 | + {{# twoColumnGoods}} | ||
12 | + {{> common/two_column_goods}} | ||
13 | + {{/ twoColumnGoods}} | ||
14 | + | ||
15 | + {{! 底部banner}} | ||
16 | + {{# bannerBottom}} | ||
17 | + {{> common/banner_bottom}} | ||
18 | + {{/ bannerBottom}} | ||
19 | + <div class="overlay"></div> | ||
20 | + </div> | ||
21 | + | ||
22 | +{{> layout/footer}} |
@@ -10,9 +10,6 @@ class BoysController extends AbstractAction | @@ -10,9 +10,6 @@ class BoysController extends AbstractAction | ||
10 | 10 | ||
11 | public function indexAction() | 11 | public function indexAction() |
12 | { | 12 | { |
13 | - // 显示侧边栏 | ||
14 | - $this->setNavSide(); | ||
15 | - | ||
16 | // 频道数据 | 13 | // 频道数据 |
17 | $channelData = Index::getUserChannelData(0, '1,3', '201504091403001'); | 14 | $channelData = Index::getUserChannelData(0, '1,3', '201504091403001'); |
18 | 15 | ||
@@ -20,6 +17,573 @@ class BoysController extends AbstractAction | @@ -20,6 +17,573 @@ class BoysController extends AbstractAction | ||
20 | print_r($channelData); | 17 | print_r($channelData); |
21 | 18 | ||
22 | $this->_view->assign('title', 'YOHO!有货'); | 19 | $this->_view->assign('title', 'YOHO!有货'); |
23 | - $this->_view->display('boys', compact('channelData')); | 20 | + $this->_view->display('index', compact('channelData')); |
21 | + | ||
22 | + $data = array( | ||
23 | + 'headerDownload' => array( | ||
24 | + 'img' => "http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480", | ||
25 | + 'url' => 'http://www.baidu.com' | ||
26 | + ), | ||
27 | + 'homeHeader' => array( | ||
28 | + 'searchUrl' => '' | ||
29 | + ), | ||
30 | + 'sideNav' => array( | ||
31 | + array( | ||
32 | + 'textCn' => '男生', | ||
33 | + 'textEn' => 'BOYS', | ||
34 | + 'styleClass' => 'boys', | ||
35 | + 'url' => '' | ||
36 | + ), | ||
37 | + array( | ||
38 | + 'textCn' => '女生', | ||
39 | + 'textEn' => 'GIRLS', | ||
40 | + 'styleClass' => 'girls', | ||
41 | + 'url' => '' | ||
42 | + ), | ||
43 | + array( | ||
44 | + 'textCn' => '潮童', | ||
45 | + 'textEn' => 'KIDS', | ||
46 | + 'styleClass' => 'kids', | ||
47 | + 'url' => '' | ||
48 | + ), | ||
49 | + array( | ||
50 | + 'textCn' => '创意生活', | ||
51 | + 'textEn' => 'LIFE STYLE', | ||
52 | + 'styleClass' => 'life', | ||
53 | + 'url' => '' | ||
54 | + ), | ||
55 | + | ||
56 | + array( | ||
57 | + 'textCn' => '逛', | ||
58 | + 'textEn' => 'TRENDFINDER', | ||
59 | + 'styleClass' => 'guang', | ||
60 | + 'subNav' => array( | ||
61 | + 'list' => array( | ||
62 | + array( | ||
63 | + 'textCn' => '逛', | ||
64 | + 'textEn' => 'TrendFinder', | ||
65 | + 'back' => true | ||
66 | + ), | ||
67 | + array( | ||
68 | + 'textCn' => '查看全部', | ||
69 | + 'url' => '' | ||
70 | + ), | ||
71 | + array( | ||
72 | + 'textCn' => '只看男生', | ||
73 | + 'textEn' => 'Boys', | ||
74 | + 'url' => '', | ||
75 | + 'isSelect' => true | ||
76 | + ), | ||
77 | + array( | ||
78 | + 'textCn' => '只看女生', | ||
79 | + 'textEn' => 'Girls', | ||
80 | + 'url' => '' | ||
81 | + ) | ||
82 | + ) | ||
83 | + | ||
84 | + ) | ||
85 | + ) | ||
86 | + ), | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | +'content' => array( | ||
91 | + 'bannerTop' => array( | ||
92 | + 'list' => array( | ||
93 | + array( | ||
94 | + 'url' => '', | ||
95 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
96 | + ), | ||
97 | + array( | ||
98 | + 'url' => '', | ||
99 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
100 | + ), | ||
101 | + array( | ||
102 | + 'url' => '', | ||
103 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
104 | + ) | ||
105 | + ) | ||
106 | + ), | ||
107 | + 'iconsEnter' => array( | ||
108 | + 'list' => array( | ||
109 | + array( | ||
110 | + 'url' => '', | ||
111 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
112 | + 'text' => '新品到着' | ||
113 | + ), | ||
114 | + array( | ||
115 | + 'url' => '', | ||
116 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
117 | + 'text' => '全球优选' | ||
118 | + ), | ||
119 | + array( | ||
120 | + 'url' => '', | ||
121 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
122 | + 'text' => '明星潮牌' | ||
123 | + ), | ||
124 | + array( | ||
125 | + 'url' => '', | ||
126 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
127 | + 'text' => '全部品类' | ||
128 | + ), | ||
129 | + array( | ||
130 | + 'url' => '', | ||
131 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
132 | + 'text' => '逛' | ||
133 | + ), | ||
134 | + array( | ||
135 | + 'url' => '', | ||
136 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
137 | + 'text' => '搭配指南' | ||
138 | + ), | ||
139 | + array( | ||
140 | + 'url' => '', | ||
141 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
142 | + 'text' => '潮品推荐' | ||
143 | + ), | ||
144 | + array( | ||
145 | + 'url' => '', | ||
146 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
147 | + 'text' => '折扣精选' | ||
148 | + ) | ||
149 | + ) | ||
150 | + ), | ||
151 | + 'hotCategory' => array( | ||
152 | + 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
153 | + 'url' => 'http://www.baidu.com', | ||
154 | + 'list' => array( | ||
155 | + array( | ||
156 | + 'textCn' => '打底衫', | ||
157 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
158 | + 'url' => '' | ||
159 | + ), | ||
160 | + array( | ||
161 | + 'textCn' => '打底衫', | ||
162 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
163 | + 'url' => '' | ||
164 | + ), | ||
165 | + array( | ||
166 | + 'textCn' => '打底衫', | ||
167 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
168 | + 'url' => '' | ||
169 | + ), | ||
170 | + array( | ||
171 | + 'textCn' => '打底衫', | ||
172 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
173 | + 'url' => '' | ||
174 | + ), | ||
175 | + array( | ||
176 | + 'textCn' => '打底衫', | ||
177 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
178 | + 'url' => '' | ||
179 | + ), | ||
180 | + array( | ||
181 | + 'textCn' => '打底衫', | ||
182 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
183 | + 'url' => '' | ||
184 | + ), | ||
185 | + array( | ||
186 | + 'textCn' => '打底衫', | ||
187 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
188 | + 'url' => '' | ||
189 | + ), | ||
190 | + array( | ||
191 | + 'textCn' => '打底衫', | ||
192 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
193 | + 'url' => '' | ||
194 | + ), | ||
195 | + array( | ||
196 | + 'textCn' => '打底衫', | ||
197 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
198 | + 'url' => '' | ||
199 | + ) | ||
200 | + ) | ||
201 | + ), | ||
202 | + 'hotBrandsScroll' => array( | ||
203 | + 'name' => '热门品牌', | ||
204 | + 'list' => array( | ||
205 | + array( | ||
206 | + 'textCn' => 'Moussy', | ||
207 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
208 | + 'url' => '' | ||
209 | + ), | ||
210 | + array( | ||
211 | + 'textCn' => 'Moussy', | ||
212 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
213 | + 'url' => '' | ||
214 | + ), | ||
215 | + array( | ||
216 | + 'textCn' => 'Moussy', | ||
217 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
218 | + 'url' => '' | ||
219 | + ), | ||
220 | + array( | ||
221 | + 'textCn' => 'Moussy', | ||
222 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
223 | + 'url' => '' | ||
224 | + ), | ||
225 | + array( | ||
226 | + 'textCn' => 'Moussy', | ||
227 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
228 | + 'url' => '' | ||
229 | + ), | ||
230 | + array( | ||
231 | + 'textCn' => 'Moussy', | ||
232 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
233 | + 'url' => '' | ||
234 | + ), | ||
235 | + array( | ||
236 | + 'textCn' => 'Moussy', | ||
237 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
238 | + 'url' => '' | ||
239 | + ), | ||
240 | + array( | ||
241 | + 'textCn' => 'Moussy', | ||
242 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
243 | + 'url' => '' | ||
244 | + ), | ||
245 | + array( | ||
246 | + 'textCn' => 'Moussy', | ||
247 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
248 | + 'url' => '' | ||
249 | + ) | ||
250 | + ) | ||
251 | + ), | ||
252 | + 'hotBrands' => array( | ||
253 | + 'name' => '热门品牌', | ||
254 | + 'more' => 'www.baidu.com', | ||
255 | + 'brands' => array( | ||
256 | + array( | ||
257 | + 'name' => 'Front Row Shop', | ||
258 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
259 | + 'url' => '' | ||
260 | + ), | ||
261 | + array( | ||
262 | + 'name' => 'dress lab', | ||
263 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
264 | + 'url' => '' | ||
265 | + ), | ||
266 | + array( | ||
267 | + 'name' => 'DEVIL NUT', | ||
268 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
269 | + 'url' => '' | ||
270 | + ), | ||
271 | + array( | ||
272 | + 'name' => 'casselini', | ||
273 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
274 | + 'url' => '' | ||
275 | + ), | ||
276 | + array( | ||
277 | + 'name' => 'haso', | ||
278 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
279 | + 'url' => '' | ||
280 | + ), | ||
281 | + array( | ||
282 | + 'name' => 'EVISU', | ||
283 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
284 | + 'url' => '' | ||
285 | + ) | ||
286 | + ) | ||
287 | + ), | ||
288 | + 'trendColloaction' => array( | ||
289 | + 'name' => '潮人 ▪ 搭配', | ||
290 | + 'more' => '', | ||
291 | + 'leftspan' => array( | ||
292 | + 'url' => '', | ||
293 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
294 | + ), | ||
295 | + 'rightspan' => array( | ||
296 | + 'url' => '', | ||
297 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
298 | + ), | ||
299 | + 'recommendlist' => array( | ||
300 | + array( | ||
301 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
302 | + 'url' => '' | ||
303 | + ), | ||
304 | + array( | ||
305 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
306 | + 'url' => '' | ||
307 | + ), | ||
308 | + array( | ||
309 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
310 | + 'url' => '' | ||
311 | + ), | ||
312 | + array( | ||
313 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
314 | + 'url' => '' | ||
315 | + ), | ||
316 | + array( | ||
317 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
318 | + 'url' => '' | ||
319 | + ) | ||
320 | + ) | ||
321 | + ), | ||
322 | + 'trendTopics' => array( | ||
323 | + 'name' => '潮品 ▪ 话题', | ||
324 | + 'more' => '', | ||
325 | + 'list' => array( | ||
326 | + array( | ||
327 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
328 | + 'url' => '', | ||
329 | + 'title' => '现代裁剪', | ||
330 | + 'time' => '2月13日 12:34' | ||
331 | + ), | ||
332 | + array( | ||
333 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
334 | + 'url' => '', | ||
335 | + 'title' => '现代裁剪', | ||
336 | + 'time' => '2月13日 12:34' | ||
337 | + ), | ||
338 | + array( | ||
339 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
340 | + 'url' => '', | ||
341 | + 'title' => '现代裁剪', | ||
342 | + 'time' => '2月13日 12:34' | ||
343 | + ) | ||
344 | + ) | ||
345 | + ), | ||
346 | + 'goodsCategory' => array( | ||
347 | + 'name' => '经典裤装', | ||
348 | + 'more' => '', | ||
349 | + 'banner' => array( | ||
350 | + 'list' => array( | ||
351 | + array( | ||
352 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
353 | + 'url' => '' | ||
354 | + ) | ||
355 | + ) | ||
356 | + ), | ||
357 | + 'list' => array( | ||
358 | + array( | ||
359 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
360 | + 'url' => '', | ||
361 | + 'textCn' => '手表' | ||
362 | + ), | ||
363 | + array( | ||
364 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
365 | + 'url' => '', | ||
366 | + 'textCn' => '烛台' | ||
367 | + ), | ||
368 | + array( | ||
369 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
370 | + 'url' => '', | ||
371 | + 'textCn' => '围巾' | ||
372 | + ), | ||
373 | + array( | ||
374 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
375 | + 'url' => '', | ||
376 | + 'textCn' => '盘子' | ||
377 | + ), | ||
378 | + array( | ||
379 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
380 | + 'url' => '', | ||
381 | + 'textCn' => '耳机' | ||
382 | + ) | ||
383 | + ) | ||
384 | + ), | ||
385 | + 'goodsCategory' => array( | ||
386 | + 'name' => '时尚鞋履', | ||
387 | + 'more' => '', | ||
388 | + 'banner' => array( | ||
389 | + 'list' => array( | ||
390 | + array( | ||
391 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
392 | + 'url' => '' | ||
393 | + ) | ||
394 | + ) | ||
395 | + ), | ||
396 | + 'list' => array( | ||
397 | + array( | ||
398 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
399 | + 'url' => '', | ||
400 | + 'textCn' => '手表' | ||
401 | + ), | ||
402 | + array( | ||
403 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
404 | + 'url' => '', | ||
405 | + 'textCn' => '烛台' | ||
406 | + ), | ||
407 | + array( | ||
408 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
409 | + 'url' => '', | ||
410 | + 'textCn' => '围巾' | ||
411 | + ), | ||
412 | + array( | ||
413 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
414 | + 'url' => '', | ||
415 | + 'textCn' => '盘子' | ||
416 | + ), | ||
417 | + array( | ||
418 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
419 | + 'url' => '', | ||
420 | + 'textCn' => '耳机' | ||
421 | + ) | ||
422 | + ) | ||
423 | + ), | ||
424 | + 'goodsCategory' => array( | ||
425 | + 'name' => '潮人配饰', | ||
426 | + 'more' => '', | ||
427 | + 'banner' => array( | ||
428 | + 'list' => array( | ||
429 | + array( | ||
430 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
431 | + 'url' => '' | ||
432 | + ) | ||
433 | + ) | ||
434 | + ), | ||
435 | + 'list' => array( | ||
436 | + array( | ||
437 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
438 | + 'url' => '', | ||
439 | + 'textCn' => '手表' | ||
440 | + ), | ||
441 | + array( | ||
442 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
443 | + 'url' => '', | ||
444 | + 'textCn' => '烛台' | ||
445 | + ), | ||
446 | + array( | ||
447 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
448 | + 'url' => '', | ||
449 | + 'textCn' => '围巾' | ||
450 | + ), | ||
451 | + array( | ||
452 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
453 | + 'url' => '', | ||
454 | + 'textCn' => '盘子' | ||
455 | + ), | ||
456 | + array( | ||
457 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
458 | + 'url' => '', | ||
459 | + 'textCn' => '耳机' | ||
460 | + ) | ||
461 | + ) | ||
462 | + ), | ||
463 | + | ||
464 | +'bannerCenter' => array( | ||
465 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
466 | + 'url' => '' | ||
467 | + ), | ||
468 | + | ||
469 | + 'creativeLife' => array( | ||
470 | + 'name' => '创意生活', | ||
471 | + 'more' => '', | ||
472 | + 'url' => '', | ||
473 | + 'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640', | ||
474 | + 'classify' => array( | ||
475 | + array( | ||
476 | + 'url' => '', | ||
477 | + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
478 | + 'name' => '手表' | ||
479 | + ), array( | ||
480 | + 'url' => '', | ||
481 | + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
482 | + 'name' => '烛台' | ||
483 | + ), array( | ||
484 | + 'url' => '', | ||
485 | + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
486 | + 'name' => '围巾' | ||
487 | + ), array( | ||
488 | + 'url' => '', | ||
489 | + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
490 | + 'name' => '盘子' | ||
491 | + ), array( | ||
492 | + 'url' => '', | ||
493 | + 'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
494 | + 'name' => '耳机' | ||
495 | + ), array( | ||
496 | + 'url' => '', | ||
497 | + 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
498 | + 'name' => '生活' | ||
499 | + ) | ||
500 | + ) | ||
501 | + ), | ||
502 | + | ||
503 | + | ||
504 | +'plusStar' => array( | ||
505 | + 'name' => 'PLUS 全球优选', | ||
506 | + 'url' => '', | ||
507 | + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
508 | + | ||
509 | + ), | ||
510 | + | ||
511 | + 'bannerCenter' => array( | ||
512 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
513 | + 'url' => '' | ||
514 | + ), | ||
515 | + | ||
516 | + 'plusStar' => array( | ||
517 | + 'name' => 'STAR 明星潮牌', | ||
518 | + 'url' => '', | ||
519 | + 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640' | ||
520 | + | ||
521 | + ), | ||
522 | + 'bannerCenter' => array( | ||
523 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
524 | + 'url' => '' | ||
525 | + ), | ||
526 | + | ||
527 | +'maybeLike' => array( | ||
528 | + 'goods' => array( | ||
529 | + array( | ||
530 | + 'id' => 1, | ||
531 | + 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
532 | + 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣', | ||
533 | + 'isLike' => false, | ||
534 | + 'price' => 1268, | ||
535 | + 'salePrice' => 589, | ||
536 | + 'isSale' => true, | ||
537 | + 'isFew' => true, | ||
538 | + 'isNew' => false, | ||
539 | + 'url' => '' | ||
540 | + ), array( | ||
541 | + 'id' => 2, | ||
542 | + 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
543 | + 'name' => 'CLOTtee 撞色连帽外套', | ||
544 | + 'isLike' => false, | ||
545 | + 'price' => 488, | ||
546 | + 'salePrice' => 139, | ||
547 | + 'isSale' => true, | ||
548 | + 'isFew' => true, | ||
549 | + 'isNew' => false, | ||
550 | + 'url' => '' | ||
551 | + ), array( | ||
552 | + 'id' => 3, | ||
553 | + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
554 | + 'name' => 'HALFGIRL 插肩棒球服短裙套装', | ||
555 | + 'isLike' => true, | ||
556 | + 'price' => 478, | ||
557 | + 'salePrice' => 208, | ||
558 | + 'isSale' => true, | ||
559 | + 'isFew' => true, | ||
560 | + 'isNew' => false, | ||
561 | + 'url' => '' | ||
562 | + ), array( | ||
563 | + 'id' => 4, | ||
564 | + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
565 | + 'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣', | ||
566 | + 'isLike' => false, | ||
567 | + 'salePrice' => 148, | ||
568 | + 'isSale' => false, | ||
569 | + 'isFew' => false, | ||
570 | + 'isNew' => true, | ||
571 | + 'url' => '' | ||
572 | + ) | ||
573 | + ) | ||
574 | +), | ||
575 | + | ||
576 | +'bannerBottom' => array( | ||
577 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg', | ||
578 | + 'url' => '' | ||
579 | + ) | ||
580 | + | ||
581 | + | ||
582 | + ), | ||
583 | +); | ||
584 | + | ||
585 | + | ||
586 | + $this->_view->assign('title', '首页'); | ||
587 | + $this->_view->display('index', $data); | ||
24 | } | 588 | } |
25 | } | 589 | } |
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use Action\AbstractAction; | 3 | use Action\AbstractAction; |
4 | -use LibModels\Wap\Home\IndexData as Index; | ||
5 | - | 4 | +use LibModels\Wap\Home\IndexData; |
5 | +use Plugin\Helpers; | ||
6 | /** | 6 | /** |
7 | * 女生首页 | 7 | * 女生首页 |
8 | */ | 8 | */ |
@@ -11,387 +11,521 @@ class GirlsController extends AbstractAction | @@ -11,387 +11,521 @@ class GirlsController extends AbstractAction | ||
11 | 11 | ||
12 | public function indexAction() | 12 | public function indexAction() |
13 | { | 13 | { |
14 | - // 显示侧边栏 | ||
15 | - $this->setNavSide(); | ||
16 | - | ||
17 | - $data = array( | ||
18 | - 'headerDownload' => array( | ||
19 | - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
20 | - 'url' => 'http://www.baidu.com' | ||
21 | - ), | ||
22 | - 'homeHeader' => array( | ||
23 | - 'bgColor' => '#FF88AE', | ||
24 | - 'searchUrl' => '' | ||
25 | - ), | ||
26 | - 'searchUrl' => '', | ||
27 | - 'sideNav' => array( | ||
28 | - array( | ||
29 | - 'textCn' => '男生', | ||
30 | - 'textEn' => 'Boys', | ||
31 | - 'icon' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
32 | - 'url' => '' | ||
33 | - ), | ||
34 | - array( | ||
35 | - 'textCn' => '女生', | ||
36 | - 'textEn' => 'GIRLS', | ||
37 | - 'icon' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
38 | - 'url' => '' | ||
39 | - ), | ||
40 | - array( | ||
41 | - 'textCn' => '潮童', | ||
42 | - 'textEn' => 'KIDS', | ||
43 | - 'icon' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
44 | - 'url' => '' | ||
45 | - ), | ||
46 | - array( | ||
47 | - 'textCn' => '创意生活', | ||
48 | - 'textEn' => 'LIFE STYLE', | ||
49 | - 'icon' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
50 | - 'url' => '' | ||
51 | - ), | ||
52 | - array( | ||
53 | - 'textCn' => '逛', | ||
54 | - 'textEn' => 'TRENDFINDER', | ||
55 | - 'icon' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
56 | - 'subNav' => array( | ||
57 | - 'list' => array( | ||
58 | - array( | ||
59 | - 'textCn' => '逛', | ||
60 | - 'textEn' => 'TrendFinder', | ||
61 | - 'back' => true, | ||
62 | - 'bgColor' => '#fd307f' | ||
63 | - ), | ||
64 | - array( | ||
65 | - 'textCn' => '查看全部', | ||
66 | - 'url' => '' | ||
67 | - ), | ||
68 | - array( | ||
69 | - 'textCn' => '只看男生', | ||
70 | - 'textEn' => 'Boys', | ||
71 | - 'url' => '' | ||
72 | - ), | ||
73 | - array( | ||
74 | - 'textCn' => '只看女生', | ||
75 | - 'textEn' => 'Girls', | ||
76 | - 'url' => '', | ||
77 | - 'isSelect' => true | ||
78 | - ) | ||
79 | - ) | ||
80 | - ) | ||
81 | - ) | ||
82 | - ), | ||
83 | - 'content' => array( | ||
84 | - 'bannerTop' => array( | ||
85 | - 'list' => array( | ||
86 | - array( | ||
87 | - 'url' => '', | ||
88 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
89 | - ), | ||
90 | - array( | ||
91 | - 'url' => '', | ||
92 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
93 | - ), | ||
94 | - array( | ||
95 | - 'url' => '', | ||
96 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
97 | - ) | ||
98 | - ) | ||
99 | - ), | ||
100 | - 'iconsEnter' => array( | ||
101 | - 'list' => array( | ||
102 | - array( | ||
103 | - 'url' => '', | ||
104 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
105 | - 'text' => '新品到着' | ||
106 | - ), | ||
107 | - array( | ||
108 | - 'url' => '', | ||
109 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
110 | - 'text' => '全球优选' | ||
111 | - ), | ||
112 | - array( | ||
113 | - 'url' => '', | ||
114 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
115 | - 'text' => '明星潮牌' | ||
116 | - ), | ||
117 | - array( | ||
118 | - 'url' => '', | ||
119 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
120 | - 'text' => '全部品类' | ||
121 | - ), | ||
122 | - array( | ||
123 | - 'url' => '', | ||
124 | - 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
125 | - 'text' => '逛' | ||
126 | - ), | ||
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 | - ) | ||
143 | - ), | ||
144 | - 'hotCategory' => array( | ||
145 | - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
146 | - 'url' => 'http://www.baidu.com', | ||
147 | - 'list' => array( | ||
148 | - array( | ||
149 | - 'textCn' => '打底衫', | ||
150 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
151 | - 'url' => '' | ||
152 | - ), | ||
153 | - array( | ||
154 | - 'textCn' => '打底衫', | ||
155 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
156 | - 'url' => '' | ||
157 | - ), | ||
158 | - array( | ||
159 | - 'textCn' => '打底衫', | ||
160 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
161 | - 'url' => '' | ||
162 | - ), | ||
163 | - array( | ||
164 | - 'textCn' => '打底衫', | ||
165 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
166 | - 'url' => '' | ||
167 | - ), | ||
168 | - array( | ||
169 | - 'textCn' => '打底衫', | ||
170 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
171 | - 'url' => '' | ||
172 | - ), | ||
173 | - array( | ||
174 | - 'textCn' => '打底衫', | ||
175 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
176 | - 'url' => '' | ||
177 | - ), | ||
178 | - array( | ||
179 | - 'textCn' => '打底衫', | ||
180 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
181 | - 'url' => '' | ||
182 | - ), | ||
183 | - array( | ||
184 | - 'textCn' => '打底衫', | ||
185 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
186 | - 'url' => '' | ||
187 | - ), | ||
188 | - array( | ||
189 | - 'textCn' => '打底衫', | ||
190 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
191 | - 'url' => '' | ||
192 | - ) | ||
193 | - ) | ||
194 | - ), | ||
195 | - 'hotBrandsScroll' => array( | ||
196 | - 'name' => '热门品牌', | ||
197 | - 'list' => array( | ||
198 | - array( | ||
199 | - 'textCn' => 'Moussy', | ||
200 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
201 | - 'url' => '' | ||
202 | - ), | ||
203 | - array( | ||
204 | - 'textCn' => 'Moussy', | ||
205 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
206 | - 'url' => '' | ||
207 | - ), | ||
208 | - array( | ||
209 | - 'textCn' => 'Moussy', | ||
210 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
211 | - 'url' => '' | ||
212 | - ), | ||
213 | - array( | ||
214 | - 'textCn' => 'Moussy', | ||
215 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
216 | - 'url' => '' | ||
217 | - ), | ||
218 | - array( | ||
219 | - 'textCn' => 'Moussy', | ||
220 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
221 | - 'url' => '' | ||
222 | - ), | ||
223 | - array( | ||
224 | - 'textCn' => 'Moussy', | ||
225 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
226 | - 'url' => '' | ||
227 | - ), | ||
228 | - array( | ||
229 | - 'textCn' => 'Moussy', | ||
230 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
231 | - 'url' => '' | ||
232 | - ), | ||
233 | - array( | ||
234 | - 'textCn' => 'Moussy', | ||
235 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
236 | - 'url' => '' | ||
237 | - ), | ||
238 | - array( | ||
239 | - 'textCn' => 'Moussy', | ||
240 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
241 | - 'url' => '' | ||
242 | - ) | ||
243 | - ) | ||
244 | - ), | ||
245 | - 'hotBrands' => array( | ||
246 | - 'name' => '热门品牌', | ||
247 | - 'more' => 'www.baidu.com', | ||
248 | - 'brands' => array( | ||
249 | - array( | ||
250 | - 'name' => 'Front Row Shop', | ||
251 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
252 | - 'url' => '' | ||
253 | - ), | ||
254 | - array( | ||
255 | - 'name' => 'dress lab', | ||
256 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
257 | - 'url' => '' | ||
258 | - ), | ||
259 | - array( | ||
260 | - 'name' => 'DEVIL NUT', | ||
261 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
262 | - 'url' => '' | ||
263 | - ), | ||
264 | - array( | ||
265 | - 'name' => 'casselini', | ||
266 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
267 | - 'url' => '' | ||
268 | - ), | ||
269 | - array( | ||
270 | - 'name' => 'haso', | ||
271 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
272 | - 'url' => '' | ||
273 | - ), | ||
274 | - array( | ||
275 | - 'name' => 'EVISU', | ||
276 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
277 | - 'url' => '' | ||
278 | - ) | ||
279 | - ) | ||
280 | - ), | ||
281 | - 'trendColloaction' => array( | ||
282 | - 'name' => '潮人 ▪ 搭配', | ||
283 | - 'more' => '', | ||
284 | - 'leftspan' => array( | ||
285 | - 'url' => '', | ||
286 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
287 | - ), | ||
288 | - 'rightspan' => array( | ||
289 | - 'url' => '', | ||
290 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
291 | - ), | ||
292 | - 'recommendlist' => array( | ||
293 | - array( | ||
294 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
295 | - 'url' => '' | ||
296 | - ), | ||
297 | - array( | ||
298 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
299 | - 'url' => '' | ||
300 | - ), | ||
301 | - array( | ||
302 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
303 | - 'url' => '' | ||
304 | - ), | ||
305 | - array( | ||
306 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
307 | - 'url' => '' | ||
308 | - ), | ||
309 | - array( | ||
310 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
311 | - 'url' => '' | ||
312 | - ) | ||
313 | - ) | ||
314 | - ), | ||
315 | - 'trendTopics' => array( | ||
316 | - 'name' => '潮品 ▪ 话题', | ||
317 | - 'more' => '', | ||
318 | - 'list' => array( | ||
319 | - array( | ||
320 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
321 | - 'url' => '', | ||
322 | - 'title' => '现代裁剪', | ||
323 | - 'time' => '2月13日 12:34' | ||
324 | - ), | ||
325 | - array( | ||
326 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
327 | - 'url' => '', | ||
328 | - 'title' => '现代裁剪', | ||
329 | - 'time' => '2月13日 12:34' | ||
330 | - ), | ||
331 | - array( | ||
332 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
333 | - 'url' => '', | ||
334 | - 'title' => '现代裁剪', | ||
335 | - 'time' => '2月13日 12:34' | ||
336 | - ) | ||
337 | - ) | ||
338 | - ), | ||
339 | - 'goodsCategory' => array( | ||
340 | - 'name' => '经典裤装', | ||
341 | - 'more' => '', | ||
342 | - 'banner' => array( | ||
343 | - 'list' => array( | ||
344 | - array( | ||
345 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
346 | - 'url' => '' | ||
347 | - ) | ||
348 | - ) | ||
349 | - ), | ||
350 | - 'list' => array( | ||
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 | - array( | ||
367 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
368 | - 'url' => '', | ||
369 | - 'textCn' => '盘子' | ||
370 | - ), | ||
371 | - array( | ||
372 | - 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
373 | - 'url' => '', | ||
374 | - 'textCn' => '耳机' | ||
375 | - ) | ||
376 | - ) | ||
377 | - ) | ||
378 | - )); | 14 | + $data = array( |
15 | + 'headerDownload' => $this->getHeaderDownload(), | ||
16 | + 'homeHeader' => array( | ||
17 | + 'bgColor' => '#FF88AE', | ||
18 | + 'searchUrl' => '' | ||
19 | + ), | ||
20 | + 'searchUrl' => '', | ||
21 | + 'sideNav' => array(), | ||
22 | + 'content' => array() | ||
23 | + ); | ||
24 | + | ||
25 | + $sideDatas = IndexData::getHomeChannels(); | ||
26 | + if($sideDatas['code'] == 200) | ||
27 | + { | ||
28 | + $data['sideNav'] = $sideDatas['data']; | ||
29 | + } | ||
30 | + | ||
31 | + // 频道数据 | ||
32 | + $channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002'); | ||
33 | + $channels = array(); | ||
34 | + if($channelData['code'] == 200) | ||
35 | + { | ||
36 | + $content = array(); | ||
37 | + $bannerTop = array(); | ||
38 | + $iconsEnter = array(); | ||
39 | + $singleImage = array(); | ||
40 | + $hotCategory = array(); | ||
41 | + $hotBrandsScroll = array(); | ||
42 | + $trendColloaction = array(); | ||
43 | + $trendTopics = array(); | ||
44 | + $goodsCategory = array(); | ||
45 | + $recommend_content_two = array(); | ||
46 | + $small_pic = array(); | ||
379 | 47 | ||
380 | - // 频道数据 | ||
381 | - $channelData = Index::getUserChannelData(0, '2,3', '201504091403002'); | 48 | + foreach ($channelData['data']['list'] as $key => $val) { |
49 | + switch ($val['template_name']) { | ||
50 | + case 'focus': // 焦点图 | ||
51 | + $oneFocus = array(); | ||
52 | + foreach ($val['data'] as &$one) { | ||
53 | + $one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1); | ||
54 | + } | ||
55 | + $oneFocus['list'] = $val['data']; | ||
56 | + $bannerTop[] = $oneFocus; | ||
57 | + break; | ||
58 | + case 'app_icon_list': // 图标列表 | ||
59 | + $oneIcon = array(); | ||
60 | + foreach ($val['data'] as &$one) { | ||
61 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
62 | + } | ||
63 | + $oneIcon['list'] = $val['data']; | ||
64 | + $iconsEnter[] = $oneIcon; | ||
65 | + break; | ||
66 | + case 'single_image': // 单图片 | ||
67 | + $oneImage = array(); | ||
68 | + foreach ($val['data'] as &$one) { | ||
69 | + $one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1); | ||
70 | + } | ||
71 | + $oneImage['list'] = $val['data']; | ||
72 | + $singleImage[] = $oneImage; | ||
73 | + break; | ||
74 | + case 'recommend_content_five': // 带标题的12个小图推荐 | ||
75 | + $oneHot = array(); | ||
76 | + foreach ($val['data']['list'] as &$one) { | ||
77 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
78 | + } | ||
79 | + $oneHot = $val['data']; | ||
80 | + $hotCategory[] = $oneHot; | ||
81 | + break; | ||
82 | + case 'app_hot_brands': // 推荐品牌 | ||
83 | + $oneHotBrand = array(); | ||
84 | + foreach ($val['data']['list'] as &$one) { | ||
85 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
86 | + } | ||
87 | + $oneHotBrand = $val['data']; | ||
88 | + $hotBrandsScroll[] = $oneHotBrand; | ||
89 | + break; | ||
90 | + case 'trendsetter_collocation': // 潮人·搭配 | ||
91 | + $oneTrendSetter = array(); | ||
92 | + foreach ($val['data']['article'] as &$one) { | ||
93 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
94 | + } | ||
95 | + foreach ($val['data']['recommend_collocation'] as &$one) { | ||
96 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
97 | + } | ||
98 | + $oneTrendSetter = $val['data']; | ||
99 | + $trendColloaction[] = $oneTrendSetter; | ||
100 | + break; | ||
101 | + case 'trendgoods_topic': // 潮品·话题 | ||
102 | + $oneTopic = array(); | ||
103 | + foreach ($val['data']['list'] as &$one) { | ||
104 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
105 | + } | ||
106 | + $oneTopic = $val['data']; | ||
107 | + $trendTopics[] = $oneTopic; | ||
108 | + break; | ||
109 | + case 'recommend_content_one': // 一张大图一个大的推荐和4个小图推荐 | ||
110 | + $oneGoodCategory = array(); | ||
111 | + foreach ($val['data']['big_image'] as &$one) { | ||
112 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
113 | + } | ||
114 | + foreach ($val['data']['list'] as &$one) { | ||
115 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
116 | + } | ||
117 | + $oneGoodCategory = $val['data']; | ||
118 | + $goodsCategory[] = $oneGoodCategory; | ||
119 | + break; | ||
120 | + case 'recommend_content_two': // 一张大图和6个小图推荐 | ||
121 | + $oneRecoContTwo = array(); | ||
122 | + foreach ($val['data']['big_image'] as &$one) { | ||
123 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
124 | + } | ||
125 | + foreach ($val['data']['list'] as &$one) { | ||
126 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
127 | + } | ||
128 | + $oneRecoContTwo = $val['data']; | ||
129 | + $recommend_content_two[] = $oneRecoContTwo; | ||
130 | + break; | ||
131 | + case 'small_pic': // 小图片 | ||
132 | + $oneSmallPic = array(); | ||
133 | + foreach ($val['data'] as &$one) { | ||
134 | + $one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1); | ||
135 | + } | ||
136 | + $oneSmallPic = $val['data']; | ||
137 | + $small_pic[] = $oneSmallPic; | ||
138 | + break; | ||
139 | + default: | ||
140 | + break; | ||
141 | + } | ||
382 | 142 | ||
383 | - echo '<pre>'; | ||
384 | - print_r($channelData); | 143 | + $content[$key] = array( |
144 | + 'bannerTop' => $bannerTop, | ||
145 | + 'iconsEnter' => $iconsEnter, | ||
146 | + 'hotCategory' => $hotCategory, | ||
147 | + 'hotBrandsScroll' => $hotBrandsScroll, | ||
148 | + 'trendColloaction' => $trendColloaction, | ||
149 | + 'trendTopics' => $trendTopics, | ||
150 | + 'goodsCategory' => $goodsCategory | ||
151 | + ); | ||
152 | + } | ||
153 | + | ||
154 | + $data['content'] = $content; | ||
155 | + } | ||
156 | + | ||
157 | + $this->_view->assign('title', 'YOHO!有货'); | ||
158 | + $this->_view->display('index', $data); | ||
159 | + | ||
160 | + // 显示侧边栏 | ||
161 | + $this->setNavSide(); | ||
162 | + | ||
163 | + $data = array( | ||
164 | + 'headerDownload' => array( | ||
165 | + 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
166 | + 'url' => 'http://www.baidu.com' | ||
167 | + ), | ||
168 | + 'homeHeader' => array( | ||
169 | + 'bgColor' => '#FF88AE', | ||
170 | + 'searchUrl' => '' | ||
171 | + ), | ||
172 | + 'sideNav' => array( | ||
173 | + array( | ||
174 | + 'textCn' => '男生', | ||
175 | + 'textEn' => 'Boys', | ||
176 | + 'styleClass' => 'boys', | ||
177 | + 'url' => '' | ||
178 | + ), | ||
179 | + array( | ||
180 | + 'textCn' => '女生', | ||
181 | + 'textEn' => 'GIRLS', | ||
182 | + 'styleClass' => 'girls', | ||
183 | + 'url' => '' | ||
184 | + ), | ||
185 | + array( | ||
186 | + 'textCn' => '潮童', | ||
187 | + 'textEn' => 'KIDS', | ||
188 | + 'styleClass' => 'kids', | ||
189 | + 'url' => '' | ||
190 | + ), | ||
191 | + array( | ||
192 | + 'textCn' => '创意生活', | ||
193 | + 'textEn' => 'LIFE STYLE', | ||
194 | + 'styleClass' => 'life', | ||
195 | + 'url' => '' | ||
196 | + ), | ||
197 | + array( | ||
198 | + 'textCn' => '逛', | ||
199 | + 'textEn' => 'TRENDFINDER', | ||
200 | + 'styleClass' => 'guang', | ||
201 | + 'subNav' => array( | ||
202 | + 'list' => array( | ||
203 | + array( | ||
204 | + 'textCn' => '逛', | ||
205 | + 'textEn' => 'TrendFinder', | ||
206 | + 'back' => true, | ||
207 | + 'bgColor' => '#fd307f' | ||
208 | + ), | ||
209 | + array( | ||
210 | + 'textCn' => '查看全部', | ||
211 | + 'url' => '' | ||
212 | + ), | ||
213 | + array( | ||
214 | + 'textCn' => '只看男生', | ||
215 | + 'textEn' => 'Boys', | ||
216 | + 'url' => '' | ||
217 | + ), | ||
218 | + array( | ||
219 | + 'textCn' => '只看女生', | ||
220 | + 'textEn' => 'Girls', | ||
221 | + 'url' => '', | ||
222 | + 'isSelect' => true | ||
223 | + ) | ||
224 | + ) | ||
225 | + ) | ||
226 | + ) | ||
227 | + ), | ||
228 | + 'content' => array( | ||
229 | + 'bannerTop' => array( | ||
230 | + 'list' => array( | ||
231 | + array( | ||
232 | + 'url' => '', | ||
233 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
234 | + ), | ||
235 | + array( | ||
236 | + 'url' => '', | ||
237 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
238 | + ), | ||
239 | + array( | ||
240 | + 'url' => '', | ||
241 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg' | ||
242 | + ) | ||
243 | + ) | ||
244 | + ), | ||
245 | + 'iconsEnter' => array( | ||
246 | + 'list' => array( | ||
247 | + array( | ||
248 | + 'url' => '', | ||
249 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
250 | + 'text' => '新品到着' | ||
251 | + ), | ||
252 | + array( | ||
253 | + 'url' => '', | ||
254 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
255 | + 'text' => '全球优选' | ||
256 | + ), | ||
257 | + array( | ||
258 | + 'url' => '', | ||
259 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
260 | + 'text' => '明星潮牌' | ||
261 | + ), | ||
262 | + array( | ||
263 | + 'url' => '', | ||
264 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
265 | + 'text' => '全部品类' | ||
266 | + ), | ||
267 | + array( | ||
268 | + 'url' => '', | ||
269 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
270 | + 'text' => '逛' | ||
271 | + ), | ||
272 | + array( | ||
273 | + 'url' => '', | ||
274 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
275 | + 'text' => '搭配指南' | ||
276 | + ), | ||
277 | + array( | ||
278 | + 'url' => '', | ||
279 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
280 | + 'text' => '潮品推荐' | ||
281 | + ), | ||
282 | + array( | ||
283 | + 'url' => '', | ||
284 | + 'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg', | ||
285 | + 'text' => '折扣精选' | ||
286 | + ) | ||
287 | + ) | ||
288 | + ), | ||
289 | + 'hotCategory' => array( | ||
290 | + 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480', | ||
291 | + 'url' => 'http://www.baidu.com', | ||
292 | + 'list' => array( | ||
293 | + array( | ||
294 | + 'textCn' => '打底衫', | ||
295 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
296 | + 'url' => '' | ||
297 | + ), | ||
298 | + array( | ||
299 | + 'textCn' => '打底衫', | ||
300 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
301 | + 'url' => '' | ||
302 | + ), | ||
303 | + array( | ||
304 | + 'textCn' => '打底衫', | ||
305 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
306 | + 'url' => '' | ||
307 | + ), | ||
308 | + array( | ||
309 | + 'textCn' => '打底衫', | ||
310 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
311 | + 'url' => '' | ||
312 | + ), | ||
313 | + array( | ||
314 | + 'textCn' => '打底衫', | ||
315 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
316 | + 'url' => '' | ||
317 | + ), | ||
318 | + array( | ||
319 | + 'textCn' => '打底衫', | ||
320 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
321 | + 'url' => '' | ||
322 | + ), | ||
323 | + array( | ||
324 | + 'textCn' => '打底衫', | ||
325 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
326 | + 'url' => '' | ||
327 | + ), | ||
328 | + array( | ||
329 | + 'textCn' => '打底衫', | ||
330 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
331 | + 'url' => '' | ||
332 | + ), | ||
333 | + array( | ||
334 | + 'textCn' => '打底衫', | ||
335 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
336 | + 'url' => '' | ||
337 | + ) | ||
338 | + ) | ||
339 | + ), | ||
340 | + 'hotBrandsScroll' => array( | ||
341 | + 'name' => '热门品牌', | ||
342 | + 'list' => array( | ||
343 | + array( | ||
344 | + 'textCn' => 'Moussy', | ||
345 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
346 | + 'url' => '' | ||
347 | + ), | ||
348 | + array( | ||
349 | + 'textCn' => 'Moussy', | ||
350 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
351 | + 'url' => '' | ||
352 | + ), | ||
353 | + array( | ||
354 | + 'textCn' => 'Moussy', | ||
355 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
356 | + 'url' => '' | ||
357 | + ), | ||
358 | + array( | ||
359 | + 'textCn' => 'Moussy', | ||
360 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
361 | + 'url' => '' | ||
362 | + ), | ||
363 | + array( | ||
364 | + 'textCn' => 'Moussy', | ||
365 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
366 | + 'url' => '' | ||
367 | + ), | ||
368 | + array( | ||
369 | + 'textCn' => 'Moussy', | ||
370 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
371 | + 'url' => '' | ||
372 | + ), | ||
373 | + array( | ||
374 | + 'textCn' => 'Moussy', | ||
375 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
376 | + 'url' => '' | ||
377 | + ), | ||
378 | + array( | ||
379 | + 'textCn' => 'Moussy', | ||
380 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
381 | + 'url' => '' | ||
382 | + ), | ||
383 | + array( | ||
384 | + 'textCn' => 'Moussy', | ||
385 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
386 | + 'url' => '' | ||
387 | + ) | ||
388 | + ) | ||
389 | + ), | ||
390 | + 'hotBrands' => array( | ||
391 | + 'name' => '热门品牌', | ||
392 | + 'more' => 'www.baidu.com', | ||
393 | + 'brands' => array( | ||
394 | + array( | ||
395 | + 'name' => 'Front Row Shop', | ||
396 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
397 | + 'url' => '' | ||
398 | + ), | ||
399 | + array( | ||
400 | + 'name' => 'dress lab', | ||
401 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
402 | + 'url' => '' | ||
403 | + ), | ||
404 | + array( | ||
405 | + 'name' => 'DEVIL NUT', | ||
406 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
407 | + 'url' => '' | ||
408 | + ), | ||
409 | + array( | ||
410 | + 'name' => 'casselini', | ||
411 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
412 | + 'url' => '' | ||
413 | + ), | ||
414 | + array( | ||
415 | + 'name' => 'haso', | ||
416 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
417 | + 'url' => '' | ||
418 | + ), | ||
419 | + array( | ||
420 | + 'name' => 'EVISU', | ||
421 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
422 | + 'url' => '' | ||
423 | + ) | ||
424 | + ) | ||
425 | + ), | ||
426 | + 'trendColloaction' => array( | ||
427 | + 'name' => '潮人 ▪ 搭配', | ||
428 | + 'more' => '', | ||
429 | + 'leftspan' => array( | ||
430 | + 'url' => '', | ||
431 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
432 | + ), | ||
433 | + 'rightspan' => array( | ||
434 | + 'url' => '', | ||
435 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg' | ||
436 | + ), | ||
437 | + 'recommendlist' => array( | ||
438 | + array( | ||
439 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
440 | + 'url' => '' | ||
441 | + ), | ||
442 | + array( | ||
443 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
444 | + 'url' => '' | ||
445 | + ), | ||
446 | + array( | ||
447 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
448 | + 'url' => '' | ||
449 | + ), | ||
450 | + array( | ||
451 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
452 | + 'url' => '' | ||
453 | + ), | ||
454 | + array( | ||
455 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
456 | + 'url' => '' | ||
457 | + ) | ||
458 | + ) | ||
459 | + ), | ||
460 | + 'trendTopics' => array( | ||
461 | + 'name' => '潮品 ▪ 话题', | ||
462 | + 'more' => '', | ||
463 | + 'list' => array( | ||
464 | + array( | ||
465 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
466 | + 'url' => '', | ||
467 | + 'title' => '现代裁剪', | ||
468 | + 'time' => '2月13日 12:34' | ||
469 | + ), | ||
470 | + array( | ||
471 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
472 | + 'url' => '', | ||
473 | + 'title' => '现代裁剪', | ||
474 | + 'time' => '2月13日 12:34' | ||
475 | + ), | ||
476 | + array( | ||
477 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
478 | + 'url' => '', | ||
479 | + 'title' => '现代裁剪', | ||
480 | + 'time' => '2月13日 12:34' | ||
481 | + ) | ||
482 | + ) | ||
483 | + ), | ||
484 | + 'goodsCategory' => array( | ||
485 | + 'name' => '经典裤装', | ||
486 | + 'more' => '', | ||
487 | + 'banner' => array( | ||
488 | + 'list' => array( | ||
489 | + array( | ||
490 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
491 | + 'url' => '' | ||
492 | + ) | ||
493 | + ) | ||
494 | + ), | ||
495 | + 'list' => array( | ||
496 | + array( | ||
497 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
498 | + 'url' => '', | ||
499 | + 'textCn' => '手表' | ||
500 | + ), | ||
501 | + array( | ||
502 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
503 | + 'url' => '', | ||
504 | + 'textCn' => '烛台' | ||
505 | + ), | ||
506 | + array( | ||
507 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
508 | + 'url' => '', | ||
509 | + 'textCn' => '围巾' | ||
510 | + ), | ||
511 | + array( | ||
512 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
513 | + 'url' => '', | ||
514 | + 'textCn' => '盘子' | ||
515 | + ), | ||
516 | + array( | ||
517 | + 'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg', | ||
518 | + 'url' => '', | ||
519 | + 'textCn' => '耳机' | ||
520 | + ) | ||
521 | + ) | ||
522 | + ) | ||
523 | + )); | ||
385 | 524 | ||
386 | - $this->_view->assign('title', 'YOHO!有货'); | ||
387 | - $this->_view->display('index', $data); | 525 | + |
388 | 526 | ||
389 | - // // 频道数据 | ||
390 | - // $channelData = Index::getUserChannelData(0, '2,3', '201504091403002'); | ||
391 | - // echo '<pre>'; | ||
392 | - // print_r($channelData); | ||
393 | - // $this->_view->assign('title', 'YOHO!有货'); | ||
394 | - // $this->_view->display('girls', compact('channelData')); | 527 | + $this->_view->assign('title', 'YOHO!有货'); |
528 | + $this->_view->display('index', $data); | ||
395 | } | 529 | } |
396 | 530 | ||
397 | } | 531 | } |
@@ -198,7 +198,7 @@ class BackController extends AbstractAction | @@ -198,7 +198,7 @@ class BackController extends AbstractAction | ||
198 | $result = BackData::validateMobileCode($phoneNum, $code, $areaCode); | 198 | $result = BackData::validateMobileCode($phoneNum, $code, $areaCode); |
199 | if($result['code'] === 200) | 199 | if($result['code'] === 200) |
200 | { | 200 | { |
201 | - $result['data'] = '/passport/back/password?phoneNum='.$phoneNum.'&token='.$result['token'].'&areaCode='.$areaCode; | 201 | + $result['data'] = '/passport/back/password?phoneNum='.$phoneNum.'&token='.$result['data']['token'].'&areaCode='.$areaCode; |
202 | } | 202 | } |
203 | 203 | ||
204 | $this->echoJson($result); | 204 | $this->echoJson($result); |
@@ -44,7 +44,7 @@ class LoginController extends AbstractAction | @@ -44,7 +44,7 @@ class LoginController extends AbstractAction | ||
44 | $data['backUrl'] = '/'; | 44 | $data['backUrl'] = '/'; |
45 | $data['headerText'] = '登录'; | 45 | $data['headerText'] = '登录'; |
46 | $data['isPassportPage'] = true; | 46 | $data['isPassportPage'] = true; |
47 | - $data['countryCode'] = '+86'; | 47 | + $data['areaCode'] = '+86'; |
48 | 48 | ||
49 | // 获取地区数据列表 | 49 | // 获取地区数据列表 |
50 | $area = RegData::getAreasData(); | 50 | $area = RegData::getAreasData(); |
-
Please register or login to post a comment