Authored by xuqi

product rework

@@ -233,260 +233,340 @@ @@ -233,260 +233,340 @@
233 ] 233 ]
234 } 234 }
235 235
236 -## 搜索页  
237 - 236 +## 搜索、列表、NEW/SALE共用
  237 +### 左侧导航相关
  238 +
238 { 239 {
239 - search: {  
240 - //路径导航  
241 - pathNav: [...],  
242 -  
243 - //筛选相关  
244 - filters: {  
245 - checkedConditions: {  
246 - clearUrl: '', //清空筛选链接  
247 - conditions: [  
248 - //正常情况下文字显示 240 + leftContent: [
  241 + {
  242 + allSort: {
  243 + //全部品类
  244 + updateNum: 2, //更新总数
  245 + list: [
  246 + {
  247 + name: 'AA', //一级分类
  248 + num: 12 //一级分类更新数目
  249 + childList: [
  250 + {
  251 + name: 'AAA', //二级分类
  252 + href: '##', //二级分类跳转链接
  253 + num: 12 //二级分类更新数目
  254 + }
  255 + ]
  256 + }
  257 + ]
  258 + }
  259 + },
  260 + {
  261 + picLink: {
  262 + //图片导航
  263 + title: 'AA', //图片导航标题
  264 + list: [
249 { 265 {
250 href: '', 266 href: '',
251 - name: '暗黑'  
252 - },  
253 - //特殊情况下颜色显示 267 + src: '' // 图片地址
  268 + }
  269 + ]
  270 + }
  271 + },
  272 + {
  273 + newSales: {
  274 + //一周新品上架
  275 + updateNum: 123,
  276 + list: [
254 { 277 {
  278 + name: 'AAA',
255 href: '', 279 href: '',
256 - 'color': '#f00'  
257 - },  
258 - ... 280 + num: 12,
  281 + }
259 ] 282 ]
260 - },  
261 - //-- 筛选项数据Start(需要显示就传,不显示不传) --  
262 - channel: [ 283 + }
  284 + },
  285 + {
  286 + allDiscount: {
  287 + //全部折扣
  288 + updateNum: 111,
  289 + list: [
  290 + {
  291 + name: 'VVV',
  292 + href: '##',
  293 + num: 11
  294 + }
  295 + ]
  296 + }
  297 + }
  298 + ]
  299 + }
  300 +
  301 +### 标准页面内容
  302 +
  303 + {
  304 + //筛选相关
  305 + filters: {
  306 + checkedConditions: {
  307 + clearUrl: '', //清空筛选链接
  308 + conditions: [
  309 + //正常情况下文字显示
263 { 310 {
264 href: '', 311 href: '',
265 - name: 'Boys' 312 + name: '暗黑'
266 }, 313 },
267 - ...  
268 - ],  
269 - sort: [ 314 + //特殊情况下颜色显示
270 { 315 {
271 - name: '上衣',  
272 - sub: [  
273 - {  
274 - href: '',  
275 - name: 'T恤'  
276 - },  
277 - ...  
278 - ] 316 + href: '',
  317 + 'color': '#f00'
279 }, 318 },
280 ... 319 ...
281 - ],  
282 - brand: {  
283 - default: [  
284 - {  
285 - href: '',  
286 - name: ''  
287 - },  
288 - ...  
289 - ],  
290 - //索引:index为索引键值(字母转化为小写)  
291 - brandIndex: [  
292 - {  
293 - index: 'all',  
294 - name: '全部'  
295 - },  
296 - {  
297 - index: '0-9',  
298 - name: '0 ~ 9'  
299 - },  
300 - {  
301 - index: 'a',  
302 - name: 'A'  
303 - },  
304 - ...  
305 - ],  
306 - brandShow: [  
307 - {  
308 - id: 1,  
309 - href: '',  
310 - index:'0-9', //与brandIndex中索引一致  
311 - name: '5cm',  
312 - key: '5cm' //key为品牌关键字,用于搜索和索引,保持小写  
313 - },  
314 - {  
315 - id: 2,  
316 - href: '',  
317 - index: 'k',  
318 - name: 'KTZ',  
319 - key: 'ktz'  
320 - },  
321 - ...  
322 - ],  
323 - price: [  
324 - {  
325 - href: '',  
326 - name: '0-239'  
327 - },  
328 - ...  
329 - ],  
330 - color: [  
331 - {  
332 - href: '',  
333 - name: '黑色',  
334 - rgb: '#000' //此处若为彩色和银色,需要传图片路径字符串:url('path/to/img')  
335 - },  
336 - ...  
337 - ],  
338 - size: [ 320 + ]
  321 + },
  322 + //-- 筛选项数据Start(需要显示就传,不显示不传) --
  323 + channel: [
  324 + {
  325 + href: '',
  326 + name: 'Boys'
  327 + },
  328 + ...
  329 + ],
  330 + sort: [
  331 + {
  332 + name: '上衣',
  333 + sub: [
339 { 334 {
340 href: '', 335 href: '',
341 - name: ''  
342 - },  
343 - ...  
344 - ],  
345 - seniorChose: [  
346 - {  
347 - attr: 'style', //查找的键值  
348 - name: '风格',  
349 - showMulti: true, //是否显示多选按钮  
350 - sub: [  
351 - {  
352 - id: '',  
353 - href: '',  
354 - name: ''  
355 - },  
356 - ...  
357 - ] 336 + name: 'T恤'
358 }, 337 },
359 ... 338 ...
360 ] 339 ]
361 - }  
362 - },  
363 -  
364 - //操作Banner相关  
365 - opts: {  
366 - sortType: [ 340 + },
  341 + ...
  342 + ],
  343 + brand: {
  344 + default: [
367 { 345 {
368 href: '', 346 href: '',
369 - name: '默认' 347 + name: ''
370 }, 348 },
  349 + ...
  350 + ],
  351 + //索引:index为索引键值(字母转化为小写)
  352 + brandIndex: [
371 { 353 {
372 - active: true, //当前选中  
373 - href: '',  
374 - name: '最新',  
375 - hasSortOrient: true, //是否有正逆序  
376 - desc: true //逆序排序(默认不传为正序) 354 + index: 'all',
  355 + name: '全部'
377 }, 356 },
378 { 357 {
  358 + index: '0-9',
  359 + name: '0 ~ 9'
  360 + },
  361 + {
  362 + index: 'a',
  363 + name: 'A'
  364 + },
  365 + ...
  366 + ],
  367 + brandShow: [
  368 + {
  369 + id: 1,
379 href: '', 370 href: '',
380 - name: '价格',  
381 - hasSortOrient: true 371 + index:'0-9', //与brandIndex中索引一致
  372 + name: '5cm',
  373 + key: '5cm' //key为品牌关键字,用于搜索和索引,保持小写
382 }, 374 },
383 { 375 {
  376 + id: 2,
384 href: '', 377 href: '',
385 - name: '折扣',  
386 - hasSortOrient: true  
387 - } 378 + index: 'k',
  379 + name: 'KTZ',
  380 + key: 'ktz'
  381 + },
  382 + ...
388 ], 383 ],
389 - checks: [ 384 + price: [
390 { 385 {
391 - name: '新品',  
392 - checked: true,  
393 - href: '' 386 + href: '',
  387 + name: '0-239'
394 }, 388 },
  389 + ...
  390 + ],
  391 + color: [
395 { 392 {
396 - name: '打折',  
397 - href: '' 393 + href: '',
  394 + name: '黑色',
  395 + rgb: '#000' //此处若为彩色和银色,需要传图片路径字符串:url('path/to/img')
398 }, 396 },
399 - {  
400 - name: '限量',  
401 - href: ''  
402 - } 397 + ...
403 ], 398 ],
404 - fivePerLine: true,  
405 - sixPerLineHref: '',  
406 - //or  
407 - sixPerLine: true,  
408 - fivePerLineHref: '',  
409 -  
410 - countPerPage => 120,  
411 - pageCounts => [ 399 + size: [
412 { 400 {
413 href: '', 401 href: '',
414 - count: 60 402 + name: ''
415 }, 403 },
416 ... 404 ...
417 ], 405 ],
418 -  
419 -  
420 - curPage: 1,  
421 - pageCount: 30,  
422 - preHref: '', //若当前为第一页,不传此参数  
423 - nexHref: '' //若当前为最后一页,不传此参数  
424 - },  
425 - // 商品导航列表  
426 - allSort: {  
427 - //全部品类  
428 - updateNum: 2, //更新总数  
429 - list: [ 406 + seniorChose: [
430 { 407 {
431 - name: 'AA', //一级分类  
432 - num: 12 //一级分类更新数目  
433 - childList: [ 408 + attr: 'style', //查找的键值
  409 + name: '风格',
  410 + showMulti: true, //是否显示多选按钮
  411 + sub: [
434 { 412 {
435 - name: 'AAA', //二级分类  
436 - href: '##', //二级分类跳转链接  
437 - num: 12 //二级分类更新数目  
438 - } 413 + id: '',
  414 + href: '',
  415 + name: ''
  416 + },
  417 + ...
439 ] 418 ]
440 - } 419 + },
  420 + ...
441 ] 421 ]
  422 + }
  423 + },
  424 +
  425 + //操作Banner相关
  426 + opts: {
  427 + sortType: [
  428 + {
  429 + href: '',
  430 + name: '默认'
  431 + },
  432 + {
  433 + active: true, //当前选中
  434 + href: '',
  435 + name: '最新',
  436 + hasSortOrient: true, //是否有正逆序
  437 + desc: true //逆序排序(默认不传为正序)
  438 + },
  439 + {
  440 + href: '',
  441 + name: '价格',
  442 + hasSortOrient: true
  443 + },
  444 + {
  445 + href: '',
  446 + name: '折扣',
  447 + hasSortOrient: true
  448 + }
  449 + ],
  450 + checks: [
  451 + {
  452 + name: '新品',
  453 + checked: true,
  454 + href: ''
  455 + },
  456 + {
  457 + name: '打折',
  458 + href: ''
  459 + },
  460 + {
  461 + name: '限量',
  462 + href: ''
  463 + }
  464 + ],
  465 + fivePerLine: true,
  466 + sixPerLineHref: '',
  467 + //or
  468 + sixPerLine: true,
  469 + fivePerLineHref: '',
  470 +
  471 + countPerPage => 120,
  472 + pageCounts => [
  473 + {
  474 + href: '',
  475 + count: 60
  476 + },
  477 + ...
  478 + ],
  479 +
  480 +
  481 + curPage: 1,
  482 + pageCount: 30,
  483 + preHref: '', //若当前为第一页,不传此参数
  484 + nexHref: '' //若当前为最后一页,不传此参数
  485 + },
  486 +
  487 + goods: [
  488 + {
  489 + ...//good
  490 + }
  491 + ],
  492 +
  493 + totalCount: 333, //共多少件商品
  494 + pager: '', //右下角分页HTML
  495 +
  496 + //最近浏览<搜索无此内容>
  497 + latestWalk: [
  498 + {
  499 + href: '',
  500 + img: '',
  501 + salePrice: '',
  502 + marketPrice: ''
442 }, 503 },
443 - advNav: {  
444 - //图片导航  
445 - advNavTitle: 'AA', 图片导航标题  
446 - list: [  
447 - {  
448 - href: '',  
449 - src: '' // 图片地址  
450 - }  
451 - ] 504 + ...
  505 + ]
  506 + }
  507 +
  508 +### 搜索页
  509 +
  510 + {
  511 + search: {
  512 + //路径导航
  513 + pathNav: [...],
  514 +
  515 + ..//标准页面内容,见上
  516 + }
  517 + }
  518 +
  519 +### 商品列表页
  520 +
  521 + {
  522 + list: {
  523 + //若为品牌首页则需要
  524 + brandBanner: {
  525 + bannerHeight: 100, //banner高度
  526 + banner: '',
  527 + bannerHome: '',
  528 + bannerIntro: '', //品牌介绍页
  529 + coled: true //品牌是否收藏
452 }, 530 },
453 - advPic: {  
454 - //图片banner  
455 - advPicTitle: 'AA', 图片banner标题  
456 - list: [ 531 + pathNav: [],
  532 + brandAbout: '', //品牌介绍页传HTML文本,非品牌介绍页则不传
  533 + leftContent: [], //...
  534 +
  535 + //品牌入口
  536 + shopEntry: {
  537 + home: '',
  538 + logo: '',
  539 + shopName: '',
  540 + sort: [
457 { 541 {
458 href: '', 542 href: '',
459 - src: '' // 图片地址  
460 - } 543 + name: '上衣'
  544 + },
  545 + ...
461 ] 546 ]
462 }, 547 },
463 - newSales: {  
464 - //一周新品上架  
465 - updateNum: 123,  
466 - list: [  
467 - {  
468 - name: 'AAA',  
469 - href: '',  
470 - num: 12,  
471 - }  
472 - ] 548 +
  549 + ...,//标准页面内容,见上
  550 + }
  551 + }
  552 +
  553 +### new/sale
  554 +
  555 + {
  556 + newSale: {
  557 + banner: {
  558 + bannerHeight: 222,
  559 + img: ''
473 }, 560 },
474 - allDiscount: {  
475 - //全部折扣  
476 - updateNum: 111,  
477 - list: [  
478 - {  
479 - name: 'VVV',  
480 - href: '##',  
481 - num: 11  
482 - }  
483 - ]  
484 - }  
485 - //商品列表  
486 - goods: [  
487 - //商品信息  
488 - ...  
489 - ] 561 +
  562 + title: {
  563 + name: '全部商品',
  564 + count: 2555
  565 + },
  566 +
  567 + leftContent: [],
  568 +
  569 + ..//标准页面内容,见上
490 } 570 }
491 } 571 }
492 572
1 {{> layout/header}} 1 {{> layout/header}}
2 -<div class="product-list-page yoho-page"> 2 +<div class="product-list-page product-page yoho-page">
3 {{# list}} 3 {{# list}}
4 {{# brandBanner}} 4 {{# brandBanner}}
5 <div class="brand-banner"> 5 <div class="brand-banner">
@@ -31,73 +31,7 @@ @@ -31,73 +31,7 @@
31 </div> 31 </div>
32 {{^}} 32 {{^}}
33 <div class="list-left pull-left"> 33 <div class="list-left pull-left">
34 - {{# allDiscount}}  
35 - <div class="sort-container">  
36 - <ul class="sort-child-list new-sale">  
37 - <li><a href="{{href}}">全部折扣</a><span>{{updateNum}}</span></li>  
38 - {{#each list}}  
39 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
40 - {{/each}}  
41 - </ul>  
42 - </div>  
43 - {{/ allDiscount}}  
44 -  
45 - {{# newSales}}  
46 - <div class="sort-container">  
47 - <h2>一周新品上架<span>{{updateNum}}</span></h2>  
48 - <ul class="sort-child-list new-sale">  
49 - {{#each list}}  
50 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
51 - {{/each}}  
52 - </ul>  
53 - </div>  
54 - {{/ newSales}}  
55 -  
56 - {{# allSort}}  
57 - <div class="sort-container">  
58 - <h2>全部品类<span>{{updateNum}}</span></h2>  
59 - <ul>  
60 - {{#each list}}  
61 - <li class="product-list-nav">  
62 - <h3>  
63 - <span class="icon-triangle"></span>  
64 - {{name}}<span>{{num}}</span>  
65 - </h3>  
66 - <ul class="sort-child-list">  
67 - {{#each childList}}  
68 - <li>  
69 - <a href="{{href}}">{{name}}</a>  
70 - <span>{{num}}</span>  
71 - </li>  
72 - {{/each}}  
73 - </ul>  
74 - </li>  
75 - {{/each}}  
76 - </ul>  
77 - </div>  
78 - {{/ allSort}}  
79 -  
80 - {{# advNav}}  
81 - {{# advNavTitle}}  
82 - <h2 class="nav-pic-title">{{.}}</h2>  
83 - {{/advNavTitle}}  
84 - <ul class="pic-nav">  
85 - {{#each list}}  
86 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
87 - {{/each}}  
88 - </ul>  
89 - {{/advNav}}  
90 -  
91 - {{#advPic}}  
92 - {{# advPicTitle}}  
93 - <h2 class="nav-pic-title">{{.}}</h2>  
94 - {{/ advPicTitle}}  
95 - <ul class="pic-nav">  
96 - {{#each list}}  
97 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
98 - {{/each}}  
99 - </ul>  
100 - {{/advPic}} 34 + {{> product/left-content}}
101 </div> 35 </div>
102 <div class="list-right pull-right"> 36 <div class="list-right pull-right">
103 {{# shopEntry}} 37 {{# shopEntry}}
@@ -126,24 +60,8 @@ @@ -126,24 +60,8 @@
126 </div> 60 </div>
127 {{/ shopEntry}} 61 {{/ shopEntry}}
128 62
129 - {{# filters}}  
130 - {{> product/filter-box}}  
131 - {{/ filters}}  
132 -  
133 - {{# opts}}  
134 - {{> product/sort-pager}}  
135 - {{/ opts}} 63 + {{> product/standard-content}}
136 64
137 - <div class="goods-container clearfix">  
138 - {{#each goods}}  
139 - {{> product/good}}  
140 - {{/each}}  
141 - <div class="good-item-wrapper">  
142 - <div class="good-info-main"></div>  
143 - <div class="good-select-color"></div>  
144 - </div>  
145 - </div>  
146 - {{> product/pager}}  
147 {{> product/latest-walk}} 65 {{> product/latest-walk}}
148 </div> 66 </div>
149 {{/ brandAbout}} 67 {{/ brandAbout}}
  1 +{{> layout/header}}
  2 +<div class="new-sale-page product-page yoho-page">
  3 + {{# newSale}}
  4 + {{# banner}}
  5 + <div class="banner-img" style="height: {{bannerHeight}}px;background:url({{img}}) no-repeat top center;"></div>
  6 + {{/ banner}}
  7 +
  8 + <div class="center-content clearfix">
  9 + {{# title}}
  10 + <div class="header-title">
  11 + {{name}}
  12 + <p class="line-through"></p>
  13 + <p class="count-wrap">
  14 + <span class="count">共{{count}}个结果</span>
  15 + </p>
  16 + </div>
  17 + {{/ title}}
  18 +
  19 + <div class="list-left pull-left">
  20 + {{> product/left-content}}
  21 + </div>
  22 +
  23 + <div class="list-right pull-right">
  24 + {{> product/standard-content}}
  25 + </div>
  26 + </div>
  27 + {{/ newSale}}
  28 +</div>
  29 +{{> layout/footer}}
1 {{> layout/header}} 1 {{> layout/header}}
2 -<div class="product-search-page yoho-page center-content"> 2 +<div class="product-search-page product-page yoho-page center-content">
3 {{# search}} 3 {{# search}}
4 {{> layout/path-nav}} 4 {{> layout/path-nav}}
5 5
6 - {{# filters}}  
7 - {{> product/filter-box}}  
8 - {{/ filters}} 6 + {{> product/standard-content}}
9 7
10 - {{# opts}}  
11 - {{> product/sort-pager}}  
12 - {{/ opts}}  
13 -  
14 - <div class="goods-container clearfix">  
15 - {{#each goods}}  
16 - {{> product/good}}  
17 - {{/each}}  
18 - <div class="good-item-wrapper">  
19 - <div class="good-info-main"></div>  
20 - <div class="good-select-color"></div>  
21 - </div>  
22 - </div>  
23 -  
24 - {{> product/pager}} 8 + {{> product/latest-walk}}
25 {{/ search}} 9 {{/ search}}
26 </div> 10 </div>
27 {{> layout/footer}} 11 {{> layout/footer}}
  1 +{{# leftContent}}
  2 +
  3 + {{!-- 全部折扣 --}}
  4 + {{# allDiscount}}
  5 + <div class="sort-container">
  6 + <ul class="sort-child-list new-sale">
  7 + <li>
  8 + <a href="{{href}}">全部折扣</a>
  9 + <span>{{updateNum}}</span>
  10 + </li>
  11 + {{#each list}}
  12 + <li>
  13 + <a href="{{href}}">{{name}}</a>
  14 + <span>{{num}}</span>
  15 + </li>
  16 + {{/each}}
  17 + </ul>
  18 + </div>
  19 + {{/ allDiscount}}
  20 +
  21 + {{!-- 新品上架 --}}
  22 + {{# newSales}}
  23 + <div class="sort-container">
  24 + <h2>
  25 + 一周新品上架
  26 + <span>{{updateNum}}</span>
  27 + </h2>
  28 + <ul class="sort-child-list new-sale">
  29 + {{#each list}}
  30 + <li>
  31 + <a href="{{href}}">{{name}}</a>
  32 + <span>{{num}}</span>
  33 + </li>
  34 + {{/each}}
  35 + </ul>
  36 + </div>
  37 + {{/ newSales}}
  38 +
  39 + {{!-- 全部品类--}}
  40 + {{# allSort}}
  41 + <div class="sort-container">
  42 + <h2>
  43 + 全部品类
  44 + <span>{{updateNum}}</span>
  45 + </h2>
  46 + <ul>
  47 + {{#each list}}
  48 + <li class="product-list-nav">
  49 + <h3>
  50 + <span class="icon-triangle"></span>
  51 + {{name}}
  52 + <span>{{num}}</span>
  53 + </h3>
  54 + <ul class="sort-child-list">
  55 + {{#each childList}}
  56 + <li>
  57 + <a href="{{href}}">{{name}}</a>
  58 + <span>{{num}}</span>
  59 + </li>
  60 + {{/each}}
  61 + </ul>
  62 + </li>
  63 + {{/each}}
  64 + </ul>
  65 + </div>
  66 + {{/ allSort}}
  67 +
  68 + {{!-- 图片链接 --}}
  69 + {{# picLink}}
  70 + {{#if title}}
  71 + <h2 class="nav-pic-title">{{title}}</h2>
  72 + {{/if}}
  73 + <ul class="pic-nav">
  74 + {{#each list}}
  75 + <li>
  76 + <a href="{{href}}">
  77 + <img src="{{src}}">
  78 + </a>
  79 + </li>
  80 + {{/each}}
  81 + </ul>
  82 + {{/ picLink}}
  83 +{{/ leftContent}}
1 -<div class="product-pager clearfix">  
2 - <span class="total">{{opts.curPage}} - {{opts.pageCount}} / 共{{totalCount}}件商品</span>  
3 -  
4 - <div class="pager">  
5 - {{{pager}}}  
6 - </div>  
7 -</div>  
1 -<div class="sort-pager">  
2 - {{# sortType}}  
3 - <a class="sort-type{{#if active}} active{{/if}}" href="{{href}}">  
4 - {{name}}  
5 - {{#if hasSortOrient}}  
6 - {{#if active}}  
7 - {{#if desc}}  
8 - <span class="active-icon iconfont">&#xe603;</span> 1 +{{!-- 搜索页、列表页、NEW/SALE页标准内容--}}
  2 +{{# filters}}
  3 + {{> product/filter-box}}
  4 +{{/ filters}}
  5 +
  6 +{{# opts}}
  7 + <div class="sort-pager">
  8 + {{# sortType}}
  9 + <a class="sort-type{{#if active}} active{{/if}}" href="{{href}}">
  10 + {{name}}
  11 + {{#if hasSortOrient}}
  12 + {{#if active}}
  13 + {{#if desc}}
  14 + <span class="active-icon iconfont">&#xe603;</span>
  15 + {{^}}
  16 + <span class="active-icon iconfont">&#xe604;</span>
  17 + {{/if}}
9 {{^}} 18 {{^}}
10 - <span class="active-icon iconfont">&#xe604;</span> 19 + <span class="iconfont">&#xe614;</span>
11 {{/if}} 20 {{/if}}
12 {{^}} 21 {{^}}
13 - <span class="iconfont">&#xe614;</span> 22 + <span class="iconfont">&#xe604;</span>
  23 + {{/if}}
  24 + </a>
  25 + {{/ sortType}}
  26 +
  27 + {{# checks}}
  28 + <a class="checks{{#if checked}} checked{{/if}}" href="{{href}}">
  29 + {{#if checked}}
  30 + <span class="iconfont">&#xe612;</span>
  31 + {{^}}
  32 + <span class="iconfont">&#xe613;</span>
  33 + {{/if}}
  34 + {{name}}
  35 + </a>
  36 + {{/ checks}}
  37 +
  38 + <div class="pager-wrap">
  39 + <div class="page-count">
  40 + <span id="count-per-page">
  41 + {{countPerPage}}
  42 + <i class="iconfont">&#xe604;</i>
  43 + </span>
  44 + 每页
  45 + <ul>
  46 + {{# pageCounts}}
  47 + <li>
  48 + <a href="{{href}}">{{count}}</a>
  49 + </li>
  50 + {{/ pageCounts}}
  51 + </ul>
  52 + </div>
  53 +
  54 + <p class="pager">
  55 + {{#if preHref}}
  56 + <a href="{{preHref}}">
  57 + <span class="iconfont">&#xe615;</span>
  58 + </a>
  59 + {{^}}
  60 + <span class="dis-icon iconfont">&#xe615;</span>
14 {{/if}} 61 {{/if}}
15 - {{^}}  
16 - <span class="iconfont">&#xe604;</span>  
17 - {{/if}}  
18 - </a>  
19 - {{/ sortType}}  
20 62
21 - {{# checks}}  
22 - <a class="checks{{#if checked}} checked{{/if}}" href="{{href}}">  
23 - {{#if checked}}  
24 - <span class="iconfont">&#xe612;</span>  
25 - {{^}}  
26 - <span class="iconfont">&#xe613;</span>  
27 - {{/if}}  
28 - {{name}}  
29 - </a>  
30 - {{/ checks}} 63 + <span>
  64 + <i>{{curPage}}</i>/{{pageCount}}
  65 + </span>
31 66
32 - <div class="pager-wrap">  
33 - <div class="page-count">  
34 - <span id="count-per-page">  
35 - {{countPerPage}}  
36 - <i class="iconfont">&#xe604;</i>  
37 - </span>  
38 - 每页  
39 - <ul>  
40 - {{# pageCounts}}  
41 - <li>  
42 - <a href="{{href}}">{{count}}</a>  
43 - </li>  
44 - {{/ pageCounts}}  
45 - </ul> 67 + {{#if nextHref}}
  68 + <a href="{{nextHref}}">
  69 + <span class="iconfont">&#xe601;</span>
  70 + </a>
  71 + {{^}}
  72 + <span class="dis-icon iconfont">&#xe601;</span>
  73 + {{/if}}
  74 + </p>
46 </div> 75 </div>
  76 + </div>
  77 +{{/ opts}}
47 78
48 - <p class="pager">  
49 - {{#if preHref}}  
50 - <a href="{{preHref}}">  
51 - <span class="iconfont">&#xe615;</span>  
52 - </a>  
53 - {{^}}  
54 - <span class="dis-icon iconfont">&#xe615;</span>  
55 - {{/if}} 79 +<div class="goods-container clearfix">
  80 + {{#each goods}}
  81 + {{> product/good}}
  82 + {{/each}}
  83 + <div class="good-item-wrapper">
  84 + <div class="good-info-main"></div>
  85 + <div class="good-select-color"></div>
  86 + </div>
  87 +</div>
56 88
57 - <span>  
58 - <i>{{curPage}}</i>/{{pageCount}}  
59 - </span> 89 +<div class="product-pager clearfix">
  90 + <span class="total">{{opts.curPage}} - {{opts.pageCount}} / {{totalCount}}件商品</span>
60 91
61 - {{#if nextHref}}  
62 - <a href="{{nextHref}}">  
63 - <span class="iconfont">&#xe601;</span>  
64 - </a>  
65 - {{^}}  
66 - <span class="dis-icon iconfont">&#xe601;</span>  
67 - {{/if}}  
68 - </p> 92 + <div class="pager">
  93 + {{{pager}}}
69 </div> 94 </div>
70 </div> 95 </div>
1 -@import "search", "list", "filter-box", "sort-pager", "good", "latest-walk"; 1 +@import "search", "list", "new-sale", "filter-box", "sort-pager", "good", "latest-walk", "left-content";
2 2
3 -.product-pager {  
4 - padding: 20px 0;  
5 - font-size: 12px;  
6 - color: #6a6a6a;  
7 - border-top: 2px solid #eaeceb; 3 +.product-page {
  4 + .product-pager {
  5 + padding: 20px 0;
  6 + font-size: 12px;
  7 + color: #6a6a6a;
  8 + border-top: 2px solid #eaeceb;
8 9
9 - .pager {  
10 - float: right; 10 + .pager {
  11 + float: right;
  12 + }
  13 + }
  14 +
  15 + .list-left {
  16 + width: 160px;
  17 + }
  18 +
  19 + .list-right {
  20 + width: 970px;
  21 + }
  22 +}
  23 +
  24 +.product-list-page,
  25 +.new-sale-page {
  26 + .goods-container {
  27 + height: auto;
  28 + padding-top: 25px;
  29 + position: relative;
  30 + width: 970px + 10px;//每列增加右边距
  31 +
  32 + .good-info {
  33 + width: 235px;
  34 + }
11 } 35 }
12 } 36 }
  1 +.product-page {
  2 + .sort-container {
  3 + width: 100%;
  4 + font-size: 12px;
  5 + border-bottom: 1px solid #ebebeb;
  6 + padding-bottom: 10px;
  7 + margin-bottom: 10px;
  8 +
  9 + h2 {
  10 + height: 28px;
  11 + line-height: 28px;
  12 + color: #222;
  13 + font-weight: bold;
  14 + position: relative;
  15 +
  16 + span {
  17 + color: #bbb;
  18 + padding-left: 5px;
  19 + }
  20 + }
  21 +
  22 + .product-list-nav {
  23 + h3 {
  24 + height: 28px;
  25 + line-height: 28px;
  26 + color: #222;
  27 + font-weight: bold;
  28 + position: relative;
  29 + text-indent: 10px;
  30 + cursor: pointer;
  31 +
  32 + span {
  33 + color: #bbb;
  34 + padding-left: 5px;
  35 +
  36 + &.icon-triangle {
  37 + display: inline-block;
  38 + padding-left: 0;
  39 + width: 0;
  40 + height: 0;
  41 + border-top: 6px solid #fff;
  42 + border-left: 6px solid #000;
  43 + border-bottom: 6px solid #fff;
  44 + position: absolute;
  45 + top: 50%;
  46 + margin-top: -6px;
  47 + left: 0;
  48 + @include transition(transform .3s)
  49 + }
  50 + }
  51 + }
  52 +
  53 + &.active {
  54 + h3 {
  55 + span {
  56 + &.icon-triangle {
  57 + @include rotate(90deg)
  58 + }
  59 + }
  60 + }
  61 + /*ul.sort-child-list {
  62 + display: block;
  63 + }*/
  64 + }
  65 + }
  66 +
  67 + ul.sort-child-list {
  68 + display: none;
  69 +
  70 + &.new-sale {
  71 + display: block;
  72 + }
  73 + li {
  74 + color: #bbb;
  75 +
  76 + span {
  77 + padding-left: 5px;
  78 + }
  79 + }
  80 + a {
  81 + color: #666;
  82 + padding-left: 10px;
  83 + height: 22px;
  84 + line-height: 22px;
  85 + }
  86 + }
  87 + }
  88 +
  89 + .nav-pic-title {
  90 + height: 35px;
  91 + line-height: 35px;
  92 + color: #000;
  93 + font-weight: bold;
  94 + border-bottom: 1px solid #ebebeb;
  95 + font-size: 12px;
  96 + }
  97 +
  98 + .pic-nav {
  99 + display: block;
  100 +
  101 + li, img {
  102 + display: block;
  103 + width: 100%;
  104 + overflow: hidden;
  105 + }
  106 + }
  107 +}
1 .product-list-page { 1 .product-list-page {
2 - .list-left {  
3 - width: 160px;  
4 -  
5 - .sort-container {  
6 - width: 100%;  
7 - font-size: 12px;  
8 - border-bottom: 1px solid #ebebeb;  
9 - padding-bottom: 10px;  
10 - margin-bottom: 10px;  
11 -  
12 - h2 {  
13 - height: 28px;  
14 - line-height: 28px;  
15 - color: #222;  
16 - font-weight: bold;  
17 - position: relative;  
18 -  
19 - span {  
20 - color: #bbb;  
21 - padding-left: 5px;  
22 - }  
23 - }  
24 -  
25 - .product-list-nav {  
26 - h3 {  
27 - height: 28px;  
28 - line-height: 28px;  
29 - color: #222;  
30 - font-weight: bold;  
31 - position: relative;  
32 - text-indent: 10px;  
33 - cursor: pointer;  
34 -  
35 - span {  
36 - color: #bbb;  
37 - padding-left: 5px;  
38 -  
39 - &.icon-triangle {  
40 - display: inline-block;  
41 - padding-left: 0;  
42 - width: 0;  
43 - height: 0;  
44 - border-top: 6px solid #fff;  
45 - border-left: 6px solid #000;  
46 - border-bottom: 6px solid #fff;  
47 - position: absolute;  
48 - top: 50%;  
49 - margin-top: -6px;  
50 - left: 0;  
51 - @include transition(transform .3s)  
52 - }  
53 - }  
54 - }  
55 -  
56 - &.active {  
57 - h3 {  
58 - span {  
59 - &.icon-triangle {  
60 - @include rotate(90deg)  
61 - }  
62 - }  
63 - }  
64 - /*ul.sort-child-list {  
65 - display: block;  
66 - }*/  
67 - }  
68 - }  
69 -  
70 - ul.sort-child-list {  
71 - display: none;  
72 -  
73 - &.new-sale {  
74 - display: block;  
75 - }  
76 - li {  
77 - color: #bbb;  
78 -  
79 - span {  
80 - padding-left: 5px;  
81 - }  
82 - }  
83 - a {  
84 - color: #666;  
85 - padding-left: 10px;  
86 - height: 22px;  
87 - line-height: 22px;  
88 - }  
89 - }  
90 - }  
91 -  
92 - .nav-pic-title {  
93 - height: 35px;  
94 - line-height: 35px;  
95 - color: #000;  
96 - font-weight: bold;  
97 - border-bottom: 1px solid #ebebeb;  
98 - font-size: 12px;  
99 - }  
100 -  
101 - .pic-nav {  
102 - display: block;  
103 -  
104 - li, img {  
105 - display: block;  
106 - width: 100%;  
107 - overflow: hidden;  
108 - }  
109 - }  
110 - }  
111 -  
112 - .list-right {  
113 - width: 970px;  
114 - }  
115 -  
116 .brand-banner { 2 .brand-banner {
117 position: relative; 3 position: relative;
118 4
@@ -199,16 +85,4 @@ @@ -199,16 +85,4 @@
199 } 85 }
200 } 86 }
201 } 87 }
202 -  
203 - .goods-container {  
204 - height: auto;  
205 - padding: 25px 0 0 0;  
206 - position: relative;  
207 - width: 970px + 10px;//每列增加右边距  
208 -  
209 - .good-info {  
210 - width: 235px;  
211 -  
212 - }  
213 - }  
214 } 88 }
  1 +.new-sale-page {
  2 + .header-title {
  3 + position: relative;
  4 + width: 100%;
  5 + height: 42px;
  6 + margin-top: 20px;
  7 + text-align: center;
  8 + font-size: 20px;
  9 +
  10 + .count-wrap {
  11 + position: relative;
  12 + }
  13 +
  14 + .count {
  15 + background: #fff;
  16 + padding: 0 5px;
  17 + color: #999;
  18 + font-size: 12px;
  19 + margin-top: 6px;
  20 + }
  21 +
  22 + .line-through {
  23 + position: absolute;
  24 + bottom: 9px;
  25 + left: 0;
  26 + right: 0;
  27 + height: 1px;
  28 + border-top: 1px dotted #999;
  29 + }
  30 + }
  31 +}
@@ -767,56 +767,139 @@ class IndexController extends AbstractAction @@ -767,56 +767,139 @@ class IndexController extends AbstractAction
767 'salePrice' => '899' 767 'salePrice' => '899'
768 ) 768 )
769 ), 769 ),
770 - 'allSort' => array(  
771 - 'updateNum' => 145,  
772 - 'list' => array(  
773 - array(  
774 - 'name' => '裙装',  
775 - 'num' => '10',  
776 - 'childList' => array( 770 + 'leftContent' => array(
  771 + array(
  772 + 'allSort' => array(
  773 + 'updateNum' => 145,
  774 + 'list' => array(
  775 + array(
  776 + 'name' => '裙装',
  777 + 'num' => '10',
  778 + 'childList' => array(
  779 + array(
  780 + 'name' => '全身裙装',
  781 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  782 + 'num' => '5'
  783 + ),
  784 + array(
  785 + 'name' => '全身裙装',
  786 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  787 + 'num' => '5'
  788 + ),
  789 + array(
  790 + 'name' => '全身裙装',
  791 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  792 + 'num' => '5'
  793 + ),
  794 + array(
  795 + 'name' => '全身裙装',
  796 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  797 + 'num' => '5'
  798 + )
  799 + )
  800 + ),
  801 + array(
  802 + 'name' => '裙装BBB',
  803 + 'num' => '10',
  804 + 'childList' => array(
  805 + array(
  806 + 'name' => '全身裙装',
  807 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  808 + 'num' => '5'
  809 + ),
  810 + array(
  811 + 'name' => '全身裙装',
  812 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  813 + 'num' => '5'
  814 + ),
  815 + array(
  816 + 'name' => '全身裙装',
  817 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  818 + 'num' => '5'
  819 + ),
  820 + array(
  821 + 'name' => '全身裙装',
  822 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  823 + 'num' => '5'
  824 + )
  825 + )
  826 + )
  827 + )
  828 + )
  829 + ),
  830 + array(
  831 + 'picLink' => array(
  832 + 'title' => 'AAAA',
  833 + 'list' => array(
  834 + array(
  835 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  836 + 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
  837 + ),
777 array( 838 array(
778 - 'name' => '全身裙装', 839 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  840 + 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
  841 + )
  842 + )
  843 + )
  844 + ),
  845 + array(
  846 + 'advPic' => array(
  847 + 'advPicTitle' => false,
  848 + 'list' => array(
  849 + array(
  850 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  851 + 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
  852 + ),
  853 + array(
  854 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  855 + 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
  856 + )
  857 + )
  858 + )
  859 + ),
  860 + array(
  861 + 'newSales' => array(
  862 + 'updateNum' => 130,
  863 + 'list' => array(
  864 + array(
  865 + 'name' => '12月03日',
779 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 866 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
780 'num' => '5' 867 'num' => '5'
781 ), 868 ),
782 array( 869 array(
783 - 'name' => '全身裙装', 870 + 'name' => '12月03日',
784 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 871 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
785 'num' => '5' 872 'num' => '5'
786 ), 873 ),
787 array( 874 array(
788 - 'name' => '全身裙装', 875 + 'name' => '12月03日',
789 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 876 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
790 'num' => '5' 877 'num' => '5'
791 ), 878 ),
792 array( 879 array(
793 - 'name' => '全身裙装', 880 + 'name' => '12月03日',
794 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 881 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
795 'num' => '5' 882 'num' => '5'
796 ) 883 )
797 ) 884 )
798 - ),  
799 - array(  
800 - 'name' => '裙装BBB',  
801 - 'num' => '10',  
802 - 'childList' => array(  
803 - array(  
804 - 'name' => '全身裙装',  
805 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
806 - 'num' => '5'  
807 - ), 885 + )
  886 + ),
  887 + array(
  888 + 'allDiscount' => array(
  889 + 'updateNum' => 130,
  890 + 'list' => array(
808 array( 891 array(
809 - 'name' => '全身裙装', 892 + 'name' => '1~3折',
810 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 893 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
811 'num' => '5' 894 'num' => '5'
812 ), 895 ),
813 array( 896 array(
814 - 'name' => '全身裙装', 897 + 'name' => '4~6折',
815 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 898 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
816 'num' => '5' 899 'num' => '5'
817 ), 900 ),
818 array( 901 array(
819 - 'name' => '全身裙装', 902 + 'name' => '7折',
820 'href' => 'http://adidas.yohobuy.com/?gender=1,3', 903 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
821 'num' => '5' 904 'num' => '5'
822 ) 905 )
@@ -824,77 +907,6 @@ class IndexController extends AbstractAction @@ -824,77 +907,6 @@ class IndexController extends AbstractAction
824 ) 907 )
825 ) 908 )
826 ), 909 ),
827 - 'advNav' => array(  
828 - 'advNavTitle' => 'AAAA',  
829 - 'list' => array(  
830 - array(  
831 - 'href' => 'http://adidas.yohobuy.com/?folder=1366',  
832 - 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'  
833 - ),  
834 - array(  
835 - 'href' => 'http://adidas.yohobuy.com/?folder=1366',  
836 - 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'  
837 - )  
838 - )  
839 - ),  
840 - 'advPic' => array(  
841 - 'advPicTitle' => false,  
842 - 'list' => array(  
843 - array(  
844 - 'href' => 'http://adidas.yohobuy.com/?folder=1366',  
845 - 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'  
846 - ),  
847 - array(  
848 - 'href' => 'http://adidas.yohobuy.com/?folder=1366',  
849 - 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'  
850 - )  
851 - )  
852 - ),  
853 - 'newSales' => array(  
854 - 'updateNum' => 130,  
855 - 'list' => array(  
856 - array(  
857 - 'name' => '12月03日',  
858 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
859 - 'num' => '5'  
860 - ),  
861 - array(  
862 - 'name' => '12月03日',  
863 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
864 - 'num' => '5'  
865 - ),  
866 - array(  
867 - 'name' => '12月03日',  
868 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
869 - 'num' => '5'  
870 - ),  
871 - array(  
872 - 'name' => '12月03日',  
873 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
874 - 'num' => '5'  
875 - )  
876 - )  
877 - ),  
878 - 'allDiscount' => array(  
879 - 'updateNum' => 130,  
880 - 'list' => array(  
881 - array(  
882 - 'name' => '1~3折',  
883 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
884 - 'num' => '5'  
885 - ),  
886 - array(  
887 - 'name' => '4~6折',  
888 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
889 - 'num' => '5'  
890 - ),  
891 - array(  
892 - 'name' => '7折',  
893 - 'href' => 'http://adidas.yohobuy.com/?gender=1,3',  
894 - 'num' => '5'  
895 - )  
896 - )  
897 - ),  
898 'totalCount' => '2259', 910 'totalCount' => '2259',
899 'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="iconfont">&gt;</span></a>', 911 'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="iconfont">&gt;</span></a>',
900 'latestWalk' => array( 912 'latestWalk' => array(
@@ -935,12 +947,382 @@ class IndexController extends AbstractAction @@ -935,12 +947,382 @@ class IndexController extends AbstractAction
935 'salePrice' => '209' 947 'salePrice' => '209'
936 ) 948 )
937 ) 949 )
938 -  
939 ) 950 )
940 ); 951 );
941 $this->_view->display('list', $data); 952 $this->_view->display('list', $data);
942 } 953 }
943 954
  955 + /**
  956 + * new sale
  957 + */
  958 + public function newSaleAction()
  959 + {
  960 + $data = array(
  961 + 'newSale' => array(
  962 + 'banner' => array(
  963 + 'bannerHeight' => 350,
  964 + 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'
  965 + ),
  966 + 'title' => array(
  967 + 'name' => '全部商品',
  968 + 'count' => 540
  969 + )
  970 + ),
  971 + 'filters' => array(
  972 + 'checkedConditions' => array(
  973 + 'conditions' => array(
  974 + array(
  975 + 'href' => '',
  976 + 'name' => '暗黑'
  977 + ),
  978 + array(
  979 + 'href' => '',
  980 + 'color' => '#f00'
  981 + ),
  982 + array(
  983 + 'href' => '',
  984 + 'name' => 'CLOT'
  985 + )
  986 + ),
  987 + 'clearUrl' => ''
  988 + ),
  989 + 'channel' => array(
  990 + array(
  991 + 'href' => '/?gender=1,3',
  992 + 'name' => 'BOYS'
  993 + ),
  994 + array(
  995 + 'href' => '/?gender=2,3',
  996 + 'name' => 'GIRLS'
  997 + ),
  998 + array(
  999 + 'href' => '',
  1000 + 'name' => 'KIDS'
  1001 + ),
  1002 + array(
  1003 + 'href' => '',
  1004 + 'name' => 'LIFESTYLE'
  1005 + )
  1006 + ),
  1007 + 'sort' => array(
  1008 + array(
  1009 + 'id' => '1',
  1010 + 'name' => '上衣',
  1011 + 'sub' => array(
  1012 + array(
  1013 + 'href' => '',
  1014 + 'name' => 'T恤'
  1015 + ),
  1016 + array(
  1017 + 'href' => '',
  1018 + 'name' => '棉袄'
  1019 + ),
  1020 + array(
  1021 + 'href' => '',
  1022 + 'name' => '外套'
  1023 + )
  1024 + )
  1025 + ),
  1026 + array(
  1027 + 'id' => '2',
  1028 + 'name' => '裤子'
  1029 + ),
  1030 + array(
  1031 + 'id' => '3',
  1032 + 'name' => '连衣裙'
  1033 + ),
  1034 + array(
  1035 + 'id' => '4',
  1036 + 'name' => '鞋'
  1037 + )
  1038 + ),
  1039 + 'brand' => array(
  1040 + 'default' => array(
  1041 + array(
  1042 + 'href' => '',
  1043 + 'name' => 'CLOT'
  1044 + ),
  1045 + array(
  1046 + 'href' => '',
  1047 + 'name' => 'ABLE JEANS'
  1048 + ),
  1049 + array(
  1050 + 'href' => '',
  1051 + 'name' => 'Eight Guys'
  1052 + ),
  1053 + array(
  1054 + 'href' => '',
  1055 + 'name' => 'FAIRWHALE JEANS'
  1056 + ),
  1057 + array(
  1058 + 'href' => '',
  1059 + 'name' => '鬼洗'
  1060 + ),
  1061 + array(
  1062 + 'href' => '',
  1063 + 'name' => '金银帝国Imperial Taels'
  1064 + ),
  1065 + array(
  1066 + 'href' => '',
  1067 + 'name' => 'F.L.Y.D'
  1068 + ),
  1069 + array(
  1070 + 'href' => '',
  1071 + 'name' => 'Tapenade特芙娜'
  1072 + ),
  1073 + array(
  1074 + 'href' => '',
  1075 + 'name' => 'Adidas Originals'
  1076 + )
  1077 + ),
  1078 + 'brandIndex' => array(
  1079 + array(
  1080 + 'index' => 'all',
  1081 + 'name' => '全部'
  1082 + ),
  1083 + array(
  1084 + 'index' => '0-9',
  1085 + 'name' => '0 ~ 9'
  1086 + ),
  1087 + array(
  1088 + 'index' => 'a',
  1089 + 'name' => 'A'
  1090 + )
  1091 + ),
  1092 + 'brandsShow' => array(
  1093 + array(
  1094 + 'id' => '1',
  1095 + 'href' => '',
  1096 + 'index' => '0-9',
  1097 + 'name' => '5cm',
  1098 + 'key' => '5cm'
  1099 + ),
  1100 + array(
  1101 + 'id' => '2',
  1102 + 'href' => '',
  1103 + 'index' => 'k',
  1104 + 'name' => 'KTZ',
  1105 + 'key' => 'ktz'
  1106 + ),
  1107 + array(
  1108 + 'id' => '3',
  1109 + 'href' => '',
  1110 + 'index' => 't',
  1111 + 'name' => 'Tapenade特芙娜',
  1112 + 'key' => 'tapenade特芙娜'
  1113 + ),
  1114 + array(
  1115 + 'id' => '4',
  1116 + 'href' => '',
  1117 + 'index' => 'j',
  1118 + 'name' => '金银帝国Imperial Taels',
  1119 + 'key' => '金银帝国imperial taels'
  1120 + ),
  1121 + array(
  1122 + 'id' => '5',
  1123 + 'href' => '',
  1124 + 'index' => 'a',
  1125 + 'name' => 'ABLE JEANS',
  1126 + 'key' => 'able jeans'
  1127 + )
  1128 + )
  1129 + ),
  1130 + 'price' => array(
  1131 + array(
  1132 + 'href' => '',
  1133 + 'name' => '0-239'
  1134 + ),
  1135 + array(
  1136 + 'href' => '',
  1137 + 'name' => '240-329'
  1138 + )
  1139 + ),
  1140 + 'color' => array(
  1141 + array(
  1142 + 'href' => '',
  1143 + 'name' => '黑色',
  1144 + 'rgb' => '#000'
  1145 + ),
  1146 + array(
  1147 + 'href' => '',
  1148 + 'name' => '红色',
  1149 + 'rgb' => '#f00'
  1150 + )
  1151 + ),
  1152 + 'size' => array(
  1153 + array(
  1154 + 'href' => '',
  1155 + 'name' => 'S'
  1156 + ),
  1157 + array(
  1158 + 'href' => '',
  1159 + 'name' => 'L'
  1160 + )
  1161 + ),
  1162 + 'seniorChose' => array(
  1163 + array(
  1164 + 'attr' => 'style',
  1165 + 'name' => '风格',
  1166 + 'showMulti' => true,
  1167 + 'sub' => array(
  1168 + array(
  1169 + 'id' => '1',
  1170 + 'href' => '',
  1171 + 'name' => '街头'
  1172 + ),
  1173 + array(
  1174 + 'id' => '2',
  1175 + 'href' => '',
  1176 + 'name' => '简约'
  1177 + )
  1178 + )
  1179 + ),
  1180 + array(
  1181 + 'attr' => 'weather',
  1182 + 'name' => '适用季节',
  1183 + 'sub' => array(
  1184 + array(
  1185 + 'id' => '1',
  1186 + 'href' => '',
  1187 + 'name' => '春天'
  1188 + ),
  1189 + array(
  1190 + 'id' => '2',
  1191 + 'href' => '',
  1192 + 'name' => '夏天'
  1193 + )
  1194 + )
  1195 + )
  1196 + )
  1197 + ),
  1198 + 'opts' => array(
  1199 + 'sortType' => array(
  1200 + array(
  1201 + 'href' => '',
  1202 + 'name' => '默认'
  1203 + ),
  1204 + array(
  1205 + 'active' => true,
  1206 + 'href' => '',
  1207 + 'name' => '最新',
  1208 + 'hasSortOrient' => true,
  1209 + 'desc' => true
  1210 + ),
  1211 + array(
  1212 + 'href' => '',
  1213 + 'name' => '价格',
  1214 + 'hasSortOrient' => true
  1215 + ),
  1216 + array(
  1217 + 'href' => '',
  1218 + 'name' => '折扣',
  1219 + 'hasSortOrient' => true
  1220 + )
  1221 + ),
  1222 + 'checks' => array(
  1223 + array(
  1224 + 'name' => '新品',
  1225 + 'checked' => true,
  1226 + 'href' => ''
  1227 + ),
  1228 + array(
  1229 + 'name' => '打折',
  1230 + 'href' => ''
  1231 + ),
  1232 + array(
  1233 + 'name' => '限量',
  1234 + 'checked' => true,
  1235 + 'href' => ''
  1236 + )
  1237 + ),
  1238 + 'fivePerLine' => true,
  1239 + 'sixPerLineHref' => '',
  1240 + 'countPerPage' => '120',
  1241 + 'pageCounts' => array(
  1242 + array(
  1243 + 'href' => '',
  1244 + 'count' => 60
  1245 + ),
  1246 + array(
  1247 + 'href' => '',
  1248 + 'count' => 100
  1249 + ),
  1250 + array(
  1251 + 'href' => '',
  1252 + 'count' => 120
  1253 + )
  1254 + ),
  1255 + 'curPage' => 1,
  1256 + 'pageCount' => 30,
  1257 + 'nextHref' => 'hello'
  1258 + ),
  1259 + 'goods' => array(
  1260 + array(
  1261 + 'tags' => array(
  1262 + 'isNew' => true,
  1263 + 'isYearEndPromotion' => true
  1264 + ),
  1265 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1266 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1267 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1268 + 'salePrice' => '899',
  1269 + 'isFew' => true
  1270 + ),
  1271 + array(
  1272 + 'tags' => array(
  1273 + 'isNew' => true,
  1274 + 'isReNew' => true
  1275 + ),
  1276 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1277 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1278 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1279 + 'salePrice' => '899',
  1280 + 'showColBtn' => true
  1281 + ),
  1282 + array(
  1283 + 'tags' => array(
  1284 + 'isNew' => true,
  1285 + 'isReNew' => true
  1286 + ),
  1287 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1288 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1289 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1290 + 'salePrice' => '899'
  1291 + ),
  1292 + array(
  1293 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1294 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1295 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1296 + 'salePrice' => '899'
  1297 + ),
  1298 + array(
  1299 + 'tags' => array(
  1300 + 'isNew' => true,
  1301 + 'isReNew' => true
  1302 + ),
  1303 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1304 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1305 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1306 + 'salePrice' => '899'
  1307 + ),
  1308 + array(
  1309 + 'tags' => array(
  1310 + 'isNew' => true,
  1311 + 'isReNew' => true
  1312 + ),
  1313 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  1314 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  1315 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  1316 + 'salePrice' => '899'
  1317 + )
  1318 + ),
  1319 + 'totalCount' => '2259',
  1320 + 'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="iconfont">&gt;</span></a>'
  1321 + );
  1322 +
  1323 + $this->_view->display('new-sale', $data);
  1324 + }
  1325 +
944 /* 1326 /*
945 * 获取商品颜色 1327 * 获取商品颜色
946 */ 1328 */