Authored by ccbikai

Merge branch 'develop' into bugfix

Showing 31 changed files with 229 additions and 370 deletions
framework @ 75bbc3b0
1 -Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -9,7 +9,9 @@ use Plugin\Helpers; @@ -9,7 +9,9 @@ use Plugin\Helpers;
9 */ 9 */
10 class FloorProcess 10 class FloorProcess
11 { 11 {
  12 +
12 private static $guangUrl = 'http://guang.m.yohobuy.com'; 13 private static $guangUrl = 'http://guang.m.yohobuy.com';
  14 +
13 /** 15 /**
14 * 频道参数 16 * 频道参数
15 * 17 *
@@ -131,6 +133,7 @@ class FloorProcess @@ -131,6 +133,7 @@ class FloorProcess
131 133
132 /** 134 /**
133 * 女生品类 135 * 女生品类
  136 + * 推荐(1T-12F)
134 */ 137 */
135 private static function recommend_content_three($data, $type) 138 private static function recommend_content_three($data, $type)
136 { 139 {
@@ -138,7 +141,7 @@ class FloorProcess @@ -138,7 +141,7 @@ class FloorProcess
138 141
139 $build = array(); 142 $build = array();
140 if (!empty($data['big_image'][0])) { 143 if (!empty($data['big_image'][0])) {
141 - $build['img'] = Helpers::getImageUrl($data['big_image'][0]['src'], 640, 198); 144 + $build['img'] = Helpers::getImageUrl($data['big_image'][0]['src'], 640, 200);
142 $build['url'] = Helpers::getFilterUrl($data['big_image'][0]['url']); 145 $build['url'] = Helpers::getFilterUrl($data['big_image'][0]['url']);
143 $result['hotCategory']['banner'] = $build; 146 $result['hotCategory']['banner'] = $build;
144 } 147 }
@@ -150,7 +153,7 @@ class FloorProcess @@ -150,7 +153,7 @@ class FloorProcess
150 $build['textCn'] = $one['title']; 153 $build['textCn'] = $one['title'];
151 $result['hotCategory']['list'][] = $build; 154 $result['hotCategory']['list'][] = $build;
152 } 155 }
153 - 156 +
154 if (isset($data['title']['more_url'])) { 157 if (isset($data['title']['more_url'])) {
155 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']); 158 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
156 } 159 }
@@ -180,8 +183,8 @@ class FloorProcess @@ -180,8 +183,8 @@ class FloorProcess
180 $data['is_show_name'] = $data['title']['is_show']; 183 $data['is_show_name'] = $data['title']['is_show'];
181 $data['name'] = $data['title']['title']; 184 $data['name'] = $data['title']['title'];
182 unset($data['title']); 185 unset($data['title']);
183 -  
184 - if (isset($data['title']['more_url'])) { 186 +
  187 + if (isset($data['title']['more_url'])) {
185 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']); 188 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
186 } 189 }
187 190
@@ -226,12 +229,12 @@ class FloorProcess @@ -226,12 +229,12 @@ class FloorProcess
226 { 229 {
227 $result = array(); 230 $result = array();
228 231
229 - foreach($data as $key=>&$value){  
230 - if($key == 'title'){  
231 - $value['more_url'] = Helpers::url('', array('id' => 2, 'gender' => self::$channel[$type]), 'guang'); 232 + foreach ($data as $key => &$value) {
  233 + if ($key == 'title') {
  234 + $value['more_url'] = Helpers::url('', array('id' => 3, 'gender' => self::$channel[$type]), 'guang');
232 } 235 }
233 - if($key == 'article'){  
234 - foreach($value as &$one){ 236 + if ($key == 'article') {
  237 + foreach ($value as &$one) {
235 if (isset($one['url'])) { 238 if (isset($one['url'])) {
236 $one['url'] = Helpers::getFilterUrl($one['url']); 239 $one['url'] = Helpers::getFilterUrl($one['url']);
237 } 240 }
@@ -239,8 +242,8 @@ class FloorProcess @@ -239,8 +242,8 @@ class FloorProcess
239 unset($one['src']); 242 unset($one['src']);
240 } 243 }
241 } 244 }
242 - if($key == 'recommend_collocation'){  
243 - foreach($value as &$one){ 245 + if ($key == 'recommend_collocation') {
  246 + foreach ($value as &$one) {
244 if (isset($one['url'])) { 247 if (isset($one['url'])) {
245 $one['url'] = Helpers::getFilterUrl($one['url']); 248 $one['url'] = Helpers::getFilterUrl($one['url']);
246 } 249 }
@@ -264,11 +267,11 @@ class FloorProcess @@ -264,11 +267,11 @@ class FloorProcess
264 { 267 {
265 $result = array(); 268 $result = array();
266 269
267 - foreach($data as $key=>&$value){  
268 - if($key == 'title'){  
269 - $value['more_url'] = Helpers::url('', array('id' => 1, 'gender' => self::$channel[$type]), 'guang'); 270 + foreach ($data as $key => &$value) {
  271 + if ($key == 'title') {
  272 + $value['more_url'] = Helpers::url('', array('id' => 4, 'gender' => self::$channel[$type]), 'guang');
270 } 273 }
271 - if($key == 'list'){ 274 + if ($key == 'list') {
272 foreach ($value as &$one) { 275 foreach ($value as &$one) {
273 if (isset($one['url'])) { 276 if (isset($one['url'])) {
274 $one['url'] = Helpers::getFilterUrl($one['url']); 277 $one['url'] = Helpers::getFilterUrl($one['url']);
@@ -300,7 +303,7 @@ class FloorProcess @@ -300,7 +303,7 @@ class FloorProcess
300 $one['img'] = Helpers::getImageUrl($one['src'], 640, 403); 303 $one['img'] = Helpers::getImageUrl($one['src'], 640, 403);
301 unset($one['src']); 304 unset($one['src']);
302 } 305 }
303 - $data['banner']['list'] = $data['big_image']; 306 + $result['big_image']['list'] = $data['big_image'];
304 307
305 foreach ($data['list'] as $kk => &$one) { 308 foreach ($data['list'] as $kk => &$one) {
306 if ($kk == 0) { 309 if ($kk == 0) {
@@ -315,8 +318,8 @@ class FloorProcess @@ -315,8 +318,8 @@ class FloorProcess
315 318
316 unset($one['src']); 319 unset($one['src']);
317 } 320 }
318 -  
319 - if (isset($data['title']['more_url'])) { 321 +
  322 + if (isset($data['title']['more_url'])) {
320 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']); 323 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
321 } 324 }
322 325
@@ -337,7 +340,6 @@ class FloorProcess @@ -337,7 +340,6 @@ class FloorProcess
337 { 340 {
338 $result = array(); 341 $result = array();
339 342
340 - $data['banner'] = array();  
341 foreach ($data['big_image'] as &$one) { 343 foreach ($data['big_image'] as &$one) {
342 if (isset($one['url'])) { 344 if (isset($one['url'])) {
343 $one['url'] = Helpers::getFilterUrl($one['url']); 345 $one['url'] = Helpers::getFilterUrl($one['url']);
@@ -355,8 +357,8 @@ class FloorProcess @@ -355,8 +357,8 @@ class FloorProcess
355 $one['img'] = Helpers::getImageUrl($one['src'], 191, 191); 357 $one['img'] = Helpers::getImageUrl($one['src'], 191, 191);
356 unset($one['src']); 358 unset($one['src']);
357 } 359 }
358 -  
359 - if (isset($data['title']['more_url'])) { 360 +
  361 + if (isset($data['title']['more_url'])) {
360 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']); 362 $data['title']['more_url'] = Helpers::getFilterUrl($data['title']['more_url']);
361 } 363 }
362 $result['creativeLife'] = $data; 364 $result['creativeLife'] = $data;
@@ -56,7 +56,7 @@ $clear.bind('tap', function() { @@ -56,7 +56,7 @@ $clear.bind('tap', function() {
56 continue; 56 continue;
57 } 57 }
58 58
59 - html += '<li><a href="?query=' + history + '">' + history + '</li>'; 59 + html += '<li><a href="/?query=' + history + '">' + history + '</li>';
60 } 60 }
61 61
62 $history.html(html); 62 $history.html(html);
@@ -217,7 +217,7 @@ function search(opt) { @@ -217,7 +217,7 @@ function search(opt) {
217 lazyLoad($('.lazy')); 217 lazyLoad($('.lazy'));
218 218
219 filter.registerCbFn(search); 219 filter.registerCbFn(search);
220 -loading.initLoadingMask(); 220 +// loading.initLoadingMask();
221 221
222 //导航栏点击逻辑说明: 222 //导航栏点击逻辑说明:
223 //1.点击非active项时切换active状态 223 //1.点击非active项时切换active状态
@@ -323,4 +323,7 @@ $(window).scroll(function() { @@ -323,4 +323,7 @@ $(window).scroll(function() {
323 search(); 323 search();
324 } 324 }
325 } 325 }
326 -});  
  326 +});
  327 +
  328 +//初始请求最新第一页数据
  329 +search();
@@ -244,7 +244,7 @@ function search(opt) { @@ -244,7 +244,7 @@ function search(opt) {
244 lazyLoad($('.lazy')); 244 lazyLoad($('.lazy'));
245 245
246 filter.registerCbFn(search); 246 filter.registerCbFn(search);
247 -loading.initLoadingMask(); 247 +// loading.initLoadingMask();
248 248
249 //导航栏点击逻辑说明: 249 //导航栏点击逻辑说明:
250 //1.点击非active项时切换active状态 250 //1.点击非active项时切换active状态
@@ -337,4 +337,7 @@ $(window).scroll(function() { @@ -337,4 +337,7 @@ $(window).scroll(function() {
337 search(); 337 search();
338 } 338 }
339 } 339 }
340 -});  
  340 +});
  341 +
  342 +//初始请求最新第一页数据
  343 +search();
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="brand-page yoho-page"> 2 <div class="brand-page yoho-page">
3 -  
4 - <div class="newbrand-search">  
5 - <div class="search-box clearfix">  
6 - <a href="/index/search/index" >  
7 - <input type="text" class="search-input" placeholder="查找品牌">  
8 - <i class="search-icon iconfont">&#xe60f;</i>  
9 - </a>  
10 - </div>  
11 - </div>  
12 - 3 + <div class="newbrand-search">
  4 + <div class="search-box clearfix">
  5 + <a href="{{searchUrl}}" >
  6 + <input type="text" class="search-input" placeholder="查找品牌">
  7 + <i class="search-icon iconfont">&#xe60f;</i>
  8 + </a>
  9 + </div>
  10 + </div>
13 11
14 - {{# bannerTop}}  
15 - {{> home/banner_top}}  
16 - {{/ bannerTop}} 12 + {{# bannerTop}}
  13 + {{> home/banner_top}}
  14 + {{/ bannerTop}}
17 15
18 - {{# hotBrand}}  
19 - <div class="hot-brand"> 16 + {{# hotBrand}}
  17 + <div class="hot-brand">
20 <ul class="hot-brand-list clearfix"> 18 <ul class="hot-brand-list clearfix">
21 {{# list}} 19 {{# list}}
22 <li> 20 <li>
@@ -28,59 +26,60 @@ @@ -28,59 +26,60 @@
28 </li> 26 </li>
29 {{/ list}} 27 {{/ list}}
30 </ul> 28 </ul>
31 - </div>  
32 - {{/ hotBrand}} 29 + </div>
  30 + {{/ hotBrand}}
33 31
34 - {{# brandList}}  
35 - <div class="brand-list bar-{{@index}}">  
36 - <div class="title-bar">  
37 - <h2 style="position: static;">{{title}}</h2>  
38 - </div>  
39 - {{# list}}  
40 - <p>  
41 - <a href="{{url}}">{{name}}  
42 - {{# isHot}}  
43 - <i class="icon-hot">Hot</i>  
44 - {{/ isHot}}  
45 - {{# isNew}}  
46 - <i class="icon-new">New</i>  
47 - {{/ isNew}}  
48 - </a>  
49 - </p>  
50 - {{/ list}}  
51 - </div>  
52 - {{/ brandList}} 32 + {{# brandList}}
  33 + <div class="brand-list bar-{{@index}}">
  34 + <div class="title-bar">
  35 + <h2 style="position: static;">{{title}}</h2>
  36 + </div>
  37 + {{# list}}
  38 + <p>
  39 + <a href="{{url}}">{{name}}
  40 + {{# isHot}}
  41 + <i class="icon-hot">Hot</i>
  42 + {{/ isHot}}
  43 + {{# isNew}}
  44 + <i class="icon-new">New</i>
  45 + {{/ isNew}}
  46 + </a>
  47 + </p>
  48 + {{/ list}}
  49 + </div>
  50 + {{/ brandList}}
53 51
54 - <div id="right-bar" class="right-bar"> 52 + <div id="right-bar" class="right-bar">
55 <div class="con" id="con"> 53 <div class="con" id="con">
56 - <b>#</b>  
57 - <b>A</b>  
58 - <b>B</b>  
59 - <b>C</b>  
60 - <b>D</b>  
61 - <b>E</b>  
62 - <b>F</b>  
63 - <b>G</b>  
64 - <b>H</b>  
65 - <b>I</b>  
66 - <b>J</b>  
67 - <b>K</b>  
68 - <b>L</b>  
69 - <b>M</b>  
70 - <b>N</b>  
71 - <b>O</b>  
72 - <b>P</b>  
73 - <b>Q</b>  
74 - <b>R</b>  
75 - <b>S</b>  
76 - <b>T</b>  
77 - <b>U</b>  
78 - <b>V</b>  
79 - <b>W</b>  
80 - <b>X</b>  
81 - <b>Y</b>  
82 - <b>Z</b> 54 + <b>#</b>
  55 + <b>A</b>
  56 + <b>B</b>
  57 + <b>C</b>
  58 + <b>D</b>
  59 + <b>E</b>
  60 + <b>F</b>
  61 + <b>G</b>
  62 + <b>H</b>
  63 + <b>I</b>
  64 + <b>J</b>
  65 + <b>K</b>
  66 + <b>L</b>
  67 + <b>M</b>
  68 + <b>N</b>
  69 + <b>O</b>
  70 + <b>P</b>
  71 + <b>Q</b>
  72 + <b>R</b>
  73 + <b>S</b>
  74 + <b>T</b>
  75 + <b>U</b>
  76 + <b>V</b>
  77 + <b>W</b>
  78 + <b>X</b>
  79 + <b>Y</b>
  80 + <b>Z</b>
83 </div> 81 </div>
84 </div> 82 </div>
85 </div> 83 </div>
86 -{{> layout/footer}}  
  84 +{{> layout/footer}}
  85 +{{> layout/download_app}}
@@ -40,4 +40,5 @@ @@ -40,4 +40,5 @@
40 </div> 40 </div>
41 {{/ category}} 41 {{/ category}}
42 </div> 42 </div>
43 -{{> layout/footer}}  
  43 +{{> layout/footer}}
  44 +{{> layout/download_app}}
1 -{{>layout/header}}  
2 - 1 +{{> layout/header}}
3 <div class="index-page yoho-page"> 2 <div class="index-page yoho-page">
4 -  
5 - <div class="index-container">  
6 - <div class="index-header clearfix">  
7 - <div class="iconfont index-logo">&#xe60e;</div>  
8 - <form action="http://search.m.yohobuy.com" class="index-search">  
9 - <a href="javascript:void(0);" class="no-search">取消</a>  
10 - <div class="search-box">  
11 - <input type="text" name="query" placeholder="搜索">  
12 - <span class="iconfont clear-text">&#xe623;</span>  
13 - <span class="iconfont search-icon">&#xe60f;</span>  
14 - </div>  
15 - </form>  
16 - </div>  
17 -  
18 - <div class="index-channel">  
19 - <img class="img" src="{{background}}" alt="">  
20 - <div class="index-channel-list">  
21 - <a href="/boys" class="list-item">男生 <span class="lighter">BOYS</span> <span class="iconfont right-icon">&#xe614;</span></a>  
22 - <a href="/girls" class="list-item">女生 <span class="lighter">GIRLS</span> <span class="iconfont right-icon">&#xe614;</span></a>  
23 - <a href="/kids" class="list-item">潮童 <span class="lighter">KIDS</span> <span class="iconfont right-icon">&#xe614;</span></a>  
24 - <a href="/lifestyle" class="list-item">创意生活 <span class="lighter">LIFESTYLE</span> <span class="iconfont right-icon">&#xe614;</span></a>  
25 - </div>  
26 -  
27 - </div>  
28 -  
29 - </div> 3 + <div class="index-container">
  4 + <div class="index-header clearfix">
  5 + <div class="iconfont index-logo">&#xe60e;</div>
  6 + <form action="{{searchUrl}}" class="index-search">
  7 + <a href="javascript:void(0);" class="no-search">取消</a>
  8 + <div class="search-box">
  9 + <input type="hidden" name="from" value="search">
  10 + <input type="text" name="query" placeholder="搜索">
  11 + <span class="iconfont clear-text">&#xe623;</span>
  12 + <span class="iconfont search-icon">&#xe60f;</span>
  13 + </div>
  14 + </form>
  15 + </div>
  16 + <div class="index-channel">
  17 + <img class="img" src="{{background}}" alt="">
  18 + <div class="index-channel-list">
  19 + <a href="/boys" class="list-item">男生 <span class="lighter">BOYS</span> <span class="iconfont right-icon">&#xe614;</span></a>
  20 + <a href="/girls" class="list-item">女生 <span class="lighter">GIRLS</span> <span class="iconfont right-icon">&#xe614;</span></a>
  21 + <a href="/kids" class="list-item">潮童 <span class="lighter">KIDS</span> <span class="iconfont right-icon">&#xe614;</span></a>
  22 + <a href="/lifestyle" class="list-item">创意生活 <span class="lighter">LIFESTYLE</span> <span class="iconfont right-icon">&#xe614;</span></a>
  23 + </div>
  24 + </div>
  25 + </div>
30 </div> 26 </div>
31 -  
32 -{{>layout/footer}} 27 +{{> layout/footer}}
33 {{> layout/download_app}} 28 {{> layout/download_app}}
@@ -2,4 +2,5 @@ @@ -2,4 +2,5 @@
2 <div class="good-list-page yoho-page"> 2 <div class="good-list-page yoho-page">
3 {{> product/list}} 3 {{> product/list}}
4 </div> 4 </div>
5 -{{> layout/footer}}  
  5 +{{> layout/footer}}
  6 +{{> layout/download_app}}
@@ -83,4 +83,5 @@ @@ -83,4 +83,5 @@
83 {{/if}} 83 {{/if}}
84 84
85 </div> 85 </div>
86 -{{> layout/footer}}  
  86 +{{> layout/footer}}
  87 +{{> layout/download_app}}
@@ -94,4 +94,5 @@ @@ -94,4 +94,5 @@
94 {{/if}} 94 {{/if}}
95 95
96 </div> 96 </div>
97 -{{> layout/footer}}  
  97 +{{> layout/footer}}
  98 +{{> layout/download_app}}
1 -{{> layout/header}}  
2 -<div class="good-list-page yoho-page">  
3 - {{# goodList}}  
4 - {{# search}}  
5 - <div id="search-input" class="search-input">  
6 - <form action="/product/list/index" method="get">  
7 - <i class="search-icon iconfont">&#xe60f;</i>  
8 - <input type="text" value={{default}} name="query">  
9 - <i class="clear-input iconfont hide">&#xe61a;</i>  
10 - <button id="search" class="search" type="submit">搜索</button>  
11 - </form>  
12 - </div>  
13 - {{/ search}}  
14 -  
15 - {{# brandWay}}  
16 - <div class="brand-way">  
17 - <a href={{url}}>  
18 - <img class="brand-thumb" src={{thumb}}>  
19 - <span>{{name}}</span>  
20 - <span class="entry">  
21 - 进入品牌  
22 - <i class="iconfont">&#xe614;</i>  
23 - </span>  
24 - </a>  
25 - </div>  
26 - {{/ brandWay}}  
27 -  
28 - {{# brandHome}}  
29 - <div id="brand-header" class="brand-header" data-id={{id}}>  
30 - <img class="lazy" data-original={{banner}}>  
31 - <a class="btn-intro" href="javascript:void(0);">  
32 - 品牌介绍  
33 - </a>  
34 - <a class="btn-col" href="javascript:void(0);">  
35 - <span class="iconfont">&#xe622;</span>  
36 - 收藏  
37 - </a>  
38 - </div>  
39 - <div id="intro-box" class="brand-intro-box hide">  
40 - <div id="brand-intro" class="brand-intro">  
41 - <h2>品牌介绍</h2>  
42 - <div class="con">  
43 - {{{intro}}}  
44 - </div>  
45 - <p class="fo">  
46 - <span></span>  
47 - 100%品牌授权正品  
48 - </p>  
49 - <span class="iconfont close-intro">&#xe623;</span>  
50 - </div>  
51 - </div>  
52 - {{/ brandHome}}  
53 -  
54 - <ul id="list-nav" class="list-nav clearfix">  
55 - <li class="new active">  
56 - <a href="javascript:void(0);">  
57 - 最新  
58 - <span class="iconfont cur">&#xe616;</span>  
59 - </a>  
60 - </li>  
61 - <li class="price">  
62 - <a href="javascript:void(0);">  
63 - 价格  
64 - <span class="icon">  
65 - <i class="iconfont up">&#xe615;</i>  
66 - <i class="iconfont down cur">&#xe616;</i>  
67 - </span>  
68 - </a>  
69 - </li>  
70 - <li class="discount">  
71 - <a href="javascript:void(0);">  
72 - 折扣  
73 - <span class="icon">  
74 - <i class="iconfont up">&#xe615;</i>  
75 - <i class="iconfont down cur">&#xe616;</i>  
76 - </span>  
77 - </a>  
78 - </li>  
79 - <li class="filter">  
80 - <a href="javascript:void(0);">  
81 - 筛选  
82 - <span class="iconfont">&#xe613;</span>  
83 - </a>  
84 - </li>  
85 - </ul>  
86 - <div id="goods-container" class="goods-container">  
87 - <div class="new-goods container">  
88 - {{# new}}  
89 - {{> good}}  
90 - {{/ new}}  
91 - </div>  
92 - <div class="price-goods container hide"></div>  
93 - <div class="discount-goods container hide"></div>  
94 -  
95 - {{> filter}}  
96 - </div>  
97 -  
98 - {{#if brand}}  
99 - <input id="brand" type="hidden" value={{brand}}>  
100 - {{/if}}  
101 -  
102 - {{#if gender}}  
103 - <input id="gender" type="hidden" value={{gender}}>  
104 - {{/if}}  
105 -  
106 - {{#if sort}}  
107 - <input id="sort" type="hidden" value={{sort}}>  
108 - {{/if}}  
109 -  
110 - {{#if color}}  
111 - <input id="color" type="hidden" value={{color}}>  
112 - {{/if}}  
113 -  
114 - {{#if size}}  
115 - <input id="size" type="hidden" value={{size}}>  
116 - {{/if}}  
117 -  
118 - {{#if price}}  
119 - <input id="price" type="hidden" value={{price}}>  
120 - {{/if}}  
121 -  
122 - {{#if discount}}  
123 - <input id="discount" type="hidden" value={{discount}}>  
124 - {{/if}}  
125 - {{/ goodList}}  
126 -</div>  
127 -{{> layout/footer}}  
1 -{{# new}}  
2 - {{> good}}  
3 -{{/ new}}  
1 {{> layout/page_footer}} 1 {{> layout/page_footer}}
  2 +{{> layout/download_app}}
2 {{#if rlsEnv}} 3 {{#if rlsEnv}}
3 <script src="http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"></script> 4 <script src="http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"></script>
4 <script src="http://cdn.yoho.cn/myohobuy/{{version}}/index.js"></script> 5 <script src="http://cdn.yoho.cn/myohobuy/{{version}}/index.js"></script>
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 -<title>{{title}}YOHO!有货</title> 5 +<title>{{title}}Yoho!Buy有货</title>
6 <meta name="keywords" content="{{keywords}}Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"> 6 <meta name="keywords" content="{{keywords}}Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">
7 <meta name="description" content="{{description}}YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"> 7 <meta name="description" content="{{description}}YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。">
8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> 8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
@@ -122,6 +122,7 @@ @@ -122,6 +122,7 @@
122 {{#if newArrivalPage}} 122 {{#if newArrivalPage}}
123 <script> 123 <script>
124 seajs.use('js/product/newsale/newarrival'); 124 seajs.use('js/product/newsale/newarrival');
  125 + seajs.use('js/index/footer');
125 </script> 126 </script>
126 {{/if}} 127 {{/if}}
127 128
@@ -129,6 +130,7 @@ @@ -129,6 +130,7 @@
129 {{#if discountPage}} 130 {{#if discountPage}}
130 <script> 131 <script>
131 seajs.use('js/product/newsale/discount'); 132 seajs.use('js/product/newsale/discount');
  133 + seajs.use('js/index/footer');
132 </script> 134 </script>
133 {{/if}} 135 {{/if}}
134 136
@@ -136,6 +138,7 @@ @@ -136,6 +138,7 @@
136 {{#if goodListPage}} 138 {{#if goodListPage}}
137 <script> 139 <script>
138 seajs.use('js/product/list'); 140 seajs.use('js/product/list');
  141 + seajs.use('js/index/footer');
139 </script> 142 </script>
140 {{/if}} 143 {{/if}}
141 144
@@ -150,6 +153,7 @@ @@ -150,6 +153,7 @@
150 {{#if categoryPage}} 153 {{#if categoryPage}}
151 <script> 154 <script>
152 seajs.use('js/category/index'); 155 seajs.use('js/category/index');
  156 + seajs.use('js/index/footer');
153 </script> 157 </script>
154 {{/if}} 158 {{/if}}
155 159
@@ -157,6 +161,7 @@ @@ -157,6 +161,7 @@
157 {{#if brandPage}} 161 {{#if brandPage}}
158 <script> 162 <script>
159 seajs.use('js/category/brand'); 163 seajs.use('js/category/brand');
  164 + seajs.use('js/index/footer');
160 </script> 165 </script>
161 {{/if}} 166 {{/if}}
162 167
@@ -164,6 +169,7 @@ @@ -164,6 +169,7 @@
164 {{#if searchPage}} 169 {{#if searchPage}}
165 <script> 170 <script>
166 seajs.use('js/index/search'); 171 seajs.use('js/index/search');
  172 + seajs.use('js/index/footer');
167 </script> 173 </script>
168 {{/if}} 174 {{/if}}
169 175
@@ -26,10 +26,10 @@ class BoysController extends AbstractAction @@ -26,10 +26,10 @@ class BoysController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'boysHomePage' => true, 28 'boysHomePage' => true,
29 - 'showDownloadApp'=>true,  
30 'showFooterTab'=>true, 29 'showFooterTab'=>true,
31 'maybeLike' => true, 30 'maybeLike' => true,
32 - 'content' => Index\HomeModel::getBoysFloor() 31 + 'content' => Index\HomeModel::getBoysFloor(),
  32 + 'pageFooter' => true,
33 )); 33 ));
34 34
35 } 35 }
@@ -26,10 +26,10 @@ class GirlsController extends AbstractAction @@ -26,10 +26,10 @@ class GirlsController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'grilsHomePage' => true, 28 'grilsHomePage' => true,
29 - 'showDownloadApp'=>true,  
30 'showFooterTab'=>true, 29 'showFooterTab'=>true,
31 'maybeLike' => true, 30 'maybeLike' => true,
32 - 'content' => Index\HomeModel::getGirlsFloor() 31 + 'content' => Index\HomeModel::getGirlsFloor(),
  32 + 'pageFooter' => true,
33 )); 33 ));
34 } 34 }
35 35
1 <?php 1 <?php
2 2
3 use Action\AbstractAction; 3 use Action\AbstractAction;
  4 +use Plugin\Helpers;
4 5
5 /** 6 /**
6 * 频道选择 7 * 频道选择
@@ -20,7 +21,9 @@ class IndexController extends AbstractAction @@ -20,7 +21,9 @@ class IndexController extends AbstractAction
20 $this->_view->display('index', array( 21 $this->_view->display('index', array(
21 'background' => Index\HomeModel::getBgImage(), 22 'background' => Index\HomeModel::getBgImage(),
22 'channelPage' => true, 23 'channelPage' => true,
23 - 'showDownloadApp'=>true 24 + 'showDownloadApp'=>true,
  25 + 'searchUrl' => Helpers::url('', null, 'search'),
  26 + 'pageFooter' => true,
24 )); 27 ));
25 } 28 }
26 29
@@ -26,10 +26,10 @@ class KidsController extends AbstractAction @@ -26,10 +26,10 @@ class KidsController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'kidsHomePage' => true, 28 'kidsHomePage' => true,
29 - 'showDownloadApp'=>true,  
30 'showFooterTab'=>true, 29 'showFooterTab'=>true,
31 'maybeLike' => true, 30 'maybeLike' => true,
32 - 'content' => Index\HomeModel::getKidsFloor() 31 + 'content' => Index\HomeModel::getKidsFloor(),
  32 + 'pageFooter' => true,
33 )); 33 ));
34 } 34 }
35 35
@@ -26,10 +26,10 @@ class LifestyleController extends AbstractAction @@ -26,10 +26,10 @@ class LifestyleController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'lifestyleHomePage' => true, 28 'lifestyleHomePage' => true,
29 - 'showDownloadApp'=>true,  
30 'showFooterTab'=>true, 29 'showFooterTab'=>true,
31 'maybeLike' => true, 30 'maybeLike' => true,
32 - 'content' => Index\HomeModel::getLifestyleFloor() 31 + 'content' => Index\HomeModel::getLifestyleFloor(),
  32 + 'pageFooter' => true,
33 )); 33 ));
34 } 34 }
35 35
@@ -16,40 +16,10 @@ class SearchController extends AbstractAction @@ -16,40 +16,10 @@ class SearchController extends AbstractAction
16 */ 16 */
17 public function indexAction() 17 public function indexAction()
18 { 18 {
19 - $data = array(  
20 - array(  
21 - 'hot' => array(  
22 - array(  
23 - 'name' => '夹克',  
24 - 'url' => 'm.yohobuy.com'  
25 - ),  
26 - array(  
27 - 'name' => '休闲运动鞋',  
28 - 'url' => 'm.yohobuy.com'  
29 - ),  
30 - array(  
31 - 'name' => 'Into the Rainbow',  
32 - 'url' => 'm.yohobuy.com'  
33 - )  
34 - ),  
35 - 'history' => array(  
36 - array(  
37 - 'name' => 'what',  
38 - 'url' => 'm.yohobuy.com'  
39 - ),  
40 - array(  
41 - 'name' => 'the',  
42 - 'url' => 'm.yohobuy.com'  
43 - ),  
44 - array(  
45 - 'name' => 'fuck',  
46 - 'url' => 'm.yohobuy.com'  
47 - )  
48 - )  
49 - )  
50 - ); 19 + $this->_view->html('search');
51 $this->_view->display('index', array( 20 $this->_view->display('index', array(
52 - 'search' => $data, 21 + 'search' => array('url' => Helpers::url('', null, 'search')),
  22 + 'showDownloadApp' => true,
53 'searchPage' => true, 23 'searchPage' => true,
54 'pageFooter' => true 24 'pageFooter' => true
55 )); 25 ));
@@ -73,8 +43,8 @@ class SearchController extends AbstractAction @@ -73,8 +43,8 @@ class SearchController extends AbstractAction
73 'discount' => FILTER_DEFAULT, 43 'discount' => FILTER_DEFAULT,
74 'gender' => FILTER_DEFAULT, 44 'gender' => FILTER_DEFAULT,
75 'p_d' => FILTER_DEFAULT,), false); 45 'p_d' => FILTER_DEFAULT,), false);
76 -  
77 - $query = isset($condition['query']) ? strtolower(trim($condition['query'])) : null; 46 +
  47 + $query = empty($condition['query']) ? null : strtolower(trim($condition['query']));
78 if (isset($condition['discount'])) { 48 if (isset($condition['discount'])) {
79 $condition['p_d'] = rawurldecode($condition['discount']); 49 $condition['p_d'] = rawurldecode($condition['discount']);
80 unset($condition['discount']); 50 unset($condition['discount']);
@@ -120,16 +90,15 @@ class SearchController extends AbstractAction @@ -120,16 +90,15 @@ class SearchController extends AbstractAction
120 90
121 // 跳转到品牌商品列表页 91 // 跳转到品牌商品列表页
122 if ($domain !== null) { 92 if ($domain !== null) {
123 - $url = Helpers::url('', array(  
124 - 'from' => 'search',  
125 - 'query' => $query,  
126 - 'gender' => $condition['gender']  
127 - ), $domain); 93 + $url = Helpers::url('', array(
  94 + 'from' => 'search',
  95 + 'query' => $query,
  96 + 'gender' => $condition['gender']
  97 + ), $domain);
128 $this->go($url); 98 $this->go($url);
129 } 99 }
130 } 100 }
131 101
132 -  
133 /* 判断是不是品类, 是品类加导航标题(不显示搜索框) */ 102 /* 判断是不是品类, 是品类加导航标题(不显示搜索框) */
134 if ($haveQuery) { 103 if ($haveQuery) {
135 $classNames = Category\ClassModel::getClassNames(); 104 $classNames = Category\ClassModel::getClassNames();
@@ -178,25 +147,25 @@ class SearchController extends AbstractAction @@ -178,25 +147,25 @@ class SearchController extends AbstractAction
178 $data['goodList'] = $condition; 147 $data['goodList'] = $condition;
179 $data['query'] = $query; 148 $data['query'] = $query;
180 149
181 - // 查询数据  
182 - if (!isset($condition['query'])) {  
183 - $data['goodList'] += Product\ListModel::getClassData($condition);  
184 - } else {  
185 - $listData = SearchData::searchByCondition($condition);  
186 - // 处理返回的数据  
187 - if (!empty($listData['data']['brand'])) {  
188 - $brandData = $listData['data']['brand'];  
189 - $data['brandWay'] = array(  
190 - 'url' => 'http://' . $brandData['brand_domain'] . SUB_DOMAIN,  
191 - 'thumb' => Helpers::getImageUrl($brandData['brand_ico'], 75, 40),  
192 - 'name' => $brandData['brand_name']  
193 - );  
194 - // 设置品牌默认值  
195 - $data['goodList']['brand'] = $brandData['id'];  
196 - $data['goodList'] += ListProcess::getListData($listData['data']);  
197 - }  
198 - $listData = array();  
199 - } 150 +// // 查询数据
  151 +// if (!isset($condition['query'])) {
  152 +// $data['goodList'] += Product\ListModel::getClassData($condition);
  153 +// } else {
  154 +// $listData = SearchData::searchByCondition($condition);
  155 +// // 处理返回的数据
  156 +// if (!empty($listData['data']['brand'])) {
  157 +// $brandData = $listData['data']['brand'];
  158 +// $data['brandWay'] = array(
  159 +// 'url' => 'http://' . $brandData['brand_domain'] . SUB_DOMAIN,
  160 +// 'thumb' => Helpers::getImageUrl($brandData['brand_ico'], 75, 40),
  161 +// 'name' => $brandData['brand_name']
  162 +// );
  163 +// // 设置品牌默认值
  164 +// $data['goodList']['brand'] = $brandData['id'];
  165 +// $data['goodList'] += ListProcess::getListData($listData['data']);
  166 +// }
  167 +// $listData = array();
  168 +// }
200 169
201 $this->_view->display('list', $data); 170 $this->_view->display('list', $data);
202 } 171 }
@@ -55,6 +55,10 @@ class BrandModel @@ -55,6 +55,10 @@ class BrandModel
55 55
56 // 模板中的使用JS标识 56 // 模板中的使用JS标识
57 $result['brandPage'] = true; 57 $result['brandPage'] = true;
  58 + // 是否显示app下载浮层标识
  59 + $result['showDownloadApp'] = true;
  60 + // 搜索链接地址
  61 + $result['searchUrl'] = Helpers::url('/search.html', null, 'search');
58 62
59 /* 顶部的轮翻广告列表 */ 63 /* 顶部的轮翻广告列表 */
60 if (!empty($brand['brandTop'][0]['data'])) { 64 if (!empty($brand['brandTop'][0]['data'])) {
@@ -38,14 +38,8 @@ class ClassModel @@ -38,14 +38,8 @@ class ClassModel
38 } 38 }
39 39
40 do { 40 do {
41 - $num = 1;  
42 $data = ClassData::getClassesData(); 41 $data = ClassData::getClassesData();
43 -  
44 - if (!isset($data['code']) || $data['code'] !== 200) {  
45 - break;  
46 - }  
47 -  
48 - if (!isset($data['data'])) { 42 + if (empty($data['data'])) {
49 break; 43 break;
50 } 44 }
51 45
@@ -53,10 +47,7 @@ class ClassModel @@ -53,10 +47,7 @@ class ClassModel
53 $item = array(); 47 $item = array();
54 foreach ($data['data'] as $k => $v) { 48 foreach ($data['data'] as $k => $v) {
55 $oneClass = array('name' => $k, 'ca' => array()); 49 $oneClass = array('name' => $k, 'ca' => array());
56 - if ($num === 1) {  
57 - $oneClass['focus'] = true;  
58 - }  
59 - 50 +
60 foreach ($v as $val) { 51 foreach ($v as $val) {
61 $item = array(); 52 $item = array();
62 $item['name'] = $val['category_name']; 53 $item['name'] = $val['category_name'];
@@ -69,14 +60,12 @@ class ClassModel @@ -69,14 +60,12 @@ class ClassModel
69 'sort' => $value['relation_parameter']['sort'], 60 'sort' => $value['relation_parameter']['sort'],
70 'sort_name' => $value['category_name'] 61 'sort_name' => $value['category_name']
71 ), 'list'); 62 ), 'list');
72 -  
73 $item['sub'][] = $subitem; 63 $item['sub'][] = $subitem;
74 } 64 }
75 65
76 $oneClass['ca'][] = $item; 66 $oneClass['ca'][] = $item;
77 } 67 }
78 68
79 - $num++;  
80 $result[] = $oneClass; 69 $result[] = $oneClass;
81 } 70 }
82 71
@@ -138,7 +138,6 @@ class IndexModel @@ -138,7 +138,6 @@ class IndexModel
138 $build['type'] = $value['name']; 138 $build['type'] = $value['name'];
139 $build['focus'] = ($value['id'] == $type); 139 $build['focus'] = ($value['id'] == $type);
140 $data['navs'][] = $build; 140 $data['navs'][] = $build;
141 -  
142 $data['guang']['infos'][] = array( 141 $data['guang']['infos'][] = array(
143 'show' => $build['focus'], 142 'show' => $build['focus'],
144 'info' => array(), 143 'info' => array(),
@@ -155,6 +154,19 @@ class IndexModel @@ -155,6 +154,19 @@ class IndexModel
155 $data['guang']['swiper'][] = $build; 154 $data['guang']['swiper'][] = $build;
156 } 155 }
157 } 156 }
  157 + // 只有当$type=0时才有广告参数返回, 所以需要再调一次!!
  158 + else {
  159 + $temp = ListData::article('1,3', 0, 0, '', $page);
  160 + if (!empty($temp['data']['list']['adlist'])) {
  161 + foreach ($temp['data']['list']['adlist'] as $value) {
  162 + $build = array();
  163 + $build['url'] = Helpers::getFilterUrl($value['url']);
  164 + $build['img'] = Helpers::getImageUrl($value['src'], 830, 327);
  165 + $data['guang']['swiper'][] = $build;
  166 + }
  167 + }
  168 + $temp = array();
  169 + }
158 170
159 // 内容列表 171 // 内容列表
160 if (!empty($article['data']['list']['artList'])) { 172 if (!empty($article['data']['list']['artList'])) {
@@ -168,7 +168,7 @@ class HomeModel @@ -168,7 +168,7 @@ class HomeModel
168 // 调用接口获取楼层数据, 并封装成模板渲染需要的数据格式 168 // 调用接口获取楼层数据, 并封装成模板渲染需要的数据格式
169 $channelData = IndexData::getResourceData('2,3', self::CODE_FLOOR_GIRLS); 169 $channelData = IndexData::getResourceData('2,3', self::CODE_FLOOR_GIRLS);
170 if (isset($channelData['code']) && $channelData['code'] == 200) { 170 if (isset($channelData['code']) && $channelData['code'] == 200) {
171 - $result = FloorProcess::getContent($channelData['data']); 171 + $result = FloorProcess::getContent($channelData['data'], 2);
172 } 172 }
173 173
174 if (USE_CACHE) { 174 if (USE_CACHE) {
@@ -213,7 +213,7 @@ class NewsaleModel @@ -213,7 +213,7 @@ class NewsaleModel
213 213
214 if (isset($data['code']) && $data['code'] === 200) { 214 if (isset($data['code']) && $data['code'] === 200) {
215 foreach ($data['data']['product_list'] as $val) { 215 foreach ($data['data']['product_list'] as $val) {
216 - $result['goods'][] = Helpers::formatProduct($val); 216 + $result['goods'][] = Helpers::formatProduct($val, true, false, false);
217 } 217 }
218 } 218 }
219 219
@@ -10,21 +10,24 @@ class ClassController extends AbstractAction @@ -10,21 +10,24 @@ class ClassController extends AbstractAction
10 { 10 {
11 public function indexAction() 11 public function indexAction()
12 { 12 {
  13 + $channel = Helpers::getChannelByCookie();
13 $classes = ClassModel::getClassData(); 14 $classes = ClassModel::getClassData();
  15 + // 根据频道设置默认的焦点
  16 + if (!empty($classes)) {
  17 + $classes[$channel - 1]['focus'] = true;
  18 + }
  19 +
  20 + $this->setTitle('商品分类');
  21 + $this->setNavHeader('商品分类');
14 22
15 $data = array( 23 $data = array(
16 'categoryPage' => true, 24 'categoryPage' => true,
17 - 'pageHeader' => array (  
18 - 'navBack' => true,  
19 - 'navHome' => '/',  
20 - 'navTitle' => '商品分类'  
21 - ), 25 + 'showDownloadApp' => true,
22 'category' => array( 26 'category' => array(
23 - 'class' => $classes 27 + 'class' => $classes,
  28 + 'searchUrl' => Helpers::url('/search.html', null, 'search'),
24 ) 29 )
25 ); 30 );
26 -  
27 - $this->setTitle('商品分类');  
28 31
29 $this->_view->display('index', $data); 32 $this->_view->display('index', $data);
30 } 33 }
@@ -51,13 +51,14 @@ class IndexController extends AbstractAction @@ -51,13 +51,14 @@ class IndexController extends AbstractAction
51 $this->setTitle($name); 51 $this->setTitle($name);
52 $this->setNavHeader($name, true, SITE_MAIN); 52 $this->setNavHeader($name, true, SITE_MAIN);
53 53
54 - $goodList = Product\ListModel::getClassData($condition);  
55 - if (!empty($condition) && !empty($goodList)) {  
56 - $goodList = array_merge($goodList, $condition);  
57 - } 54 +// $goodList = Product\ListModel::getClassData($condition);
  55 +// if (!empty($condition) && !empty($goodList)) {
  56 +// $goodList = array_merge($goodList, $condition);
  57 +// }
58 $this->_view->display('index', array( 58 $this->_view->display('index', array(
59 'goodListPage' => true, 59 'goodListPage' => true,
60 - 'goodList' => $goodList, 60 + 'showDownloadApp' => true,
  61 + 'goodList' => $condition,
61 )); 62 ));
62 } 63 }
63 64
@@ -113,9 +114,10 @@ class IndexController extends AbstractAction @@ -113,9 +114,10 @@ class IndexController extends AbstractAction
113 } 114 }
114 115
115 $data['goodListPage'] = true; 116 $data['goodListPage'] = true;
  117 + $data['showDownloadApp'] = true;
116 // 从搜索页过来的,显示搜索框, 和进入品牌引导信息 118 // 从搜索页过来的,显示搜索框, 和进入品牌引导信息
117 if ($from === 'search') { 119 if ($from === 'search') {
118 - $data['goodList'] = Product\ListModel::getBrandData($condition, $title); 120 + $data['goodList'] = array();
119 $data['goodList']['brandWay'] = false; 121 $data['goodList']['brandWay'] = false;
120 $data['goodList']['search']['default'] = $query; 122 $data['goodList']['search']['default'] = $query;
121 $data['goodList']['search']['url'] = Helpers::url('', null, 'search'); 123 $data['goodList']['search']['url'] = Helpers::url('', null, 'search');
@@ -123,7 +125,7 @@ class IndexController extends AbstractAction @@ -123,7 +125,7 @@ class IndexController extends AbstractAction
123 // 品牌一览过来的展示品牌介绍和LOGO 125 // 品牌一览过来的展示品牌介绍和LOGO
124 else { 126 else {
125 $data['brandHome'] = Product\ListModel::getBrandIntro($brandIds[0], $uid, $title); 127 $data['brandHome'] = Product\ListModel::getBrandIntro($brandIds[0], $uid, $title);
126 - $data['goodList'] = Product\ListModel::getBrandData($condition, $title); 128 + $data['goodList'] = array();
127 } 129 }
128 $data['goodList'] += $condition; 130 $data['goodList'] += $condition;
129 131
@@ -26,12 +26,9 @@ class NewsaleController extends AbstractAction @@ -26,12 +26,9 @@ class NewsaleController extends AbstractAction
26 $data = array(); 26 $data = array();
27 $data['newArrivalPage'] = true; 27 $data['newArrivalPage'] = true;
28 $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); 28 $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
29 - $goodsList = \Product\NewsaleModel::getNewProducts($channel, 60);  
30 - if (!empty($goodsList)) {  
31 - $data += $goodsList;  
32 - }  
33 // 设置一些筛选的默认参数 29 // 设置一些筛选的默认参数
34 $data += array( 30 $data += array(
  31 + 'showDownloadApp'=>true,
35 'brand' => '0', 32 'brand' => '0',
36 'sort' => '0', 33 'sort' => '0',
37 'gender' => Helpers::getGenderByCookie(), 34 'gender' => Helpers::getGenderByCookie(),
@@ -59,12 +56,9 @@ class NewsaleController extends AbstractAction @@ -59,12 +56,9 @@ class NewsaleController extends AbstractAction
59 $data = array(); 56 $data = array();
60 $data['discountPage'] = true; 57 $data['discountPage'] = true;
61 $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); 58 $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
62 - $goodsList = \Product\NewsaleModel::getSaleProducts($channel, 60);  
63 - if (!empty($goodsList)) {  
64 - $data += $goodsList;  
65 - }  
66 // 设置一些筛选的默认参数 59 // 设置一些筛选的默认参数
67 $data += array( 60 $data += array(
  61 + 'showDownloadApp'=>true,
68 'brand' => '0', 62 'brand' => '0',
69 'sort' => '0', 63 'sort' => '0',
70 'gender' => Helpers::getGenderByCookie(), 64 'gender' => Helpers::getGenderByCookie(),
@@ -13,11 +13,11 @@ routes.error.route.controller = Error @@ -13,11 +13,11 @@ routes.error.route.controller = Error
13 routes.error.route.action = Index 13 routes.error.route.action = Index
14 14
15 ; 搜索页 15 ; 搜索页
16 -routes.reg.type = "rewrite"  
17 -routes.reg.match = "/search.html"  
18 -routes.reg.route.module = Index  
19 -routes.reg.route.controller = Search  
20 -routes.reg.route.action = Index 16 +routes.search.type = "rewrite"
  17 +routes.search.match = "/search.html"
  18 +routes.search.route.module = Index
  19 +routes.search.route.controller = Search
  20 +routes.search.route.action = Index
21 21
22 ; 注册页 22 ; 注册页
23 routes.reg.type = "rewrite" 23 routes.reg.type = "rewrite"