Authored by lore-w

sale页面列表页

1 -{{> layout/header}}  
2 -<div class="product-search-page product-page yoho-page center-content">  
3 - {{# search}}  
4 - {{> layout/path-nav}}  
5 -  
6 - {{> product/standard-content}}  
7 -  
8 - {{> product/latest-walk}}  
9 - {{/ search}}  
10 -</div>  
11 -{{> layout/footer}}  
  1 +{{> layout/header}}
  2 +<div class="new-sale-page product-page yoho-page">
  3 + {{# saleList}}
  4 + {{# saleBanner}}
  5 + <div class="banner-img" style="height: {{bannerHeight}}px;background:url({{img}}) no-repeat top center;"></div>
  6 + {{/ saleBanner}}
  7 +
  8 + <div class="center-content clearfix">
  9 + {{# saleTitle}}
  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 + {{/ saleTitle}}
  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 + {{/ saleList}}
  28 +</div>
  29 +{{> layout/footer}}
@@ -132,3 +132,20 @@ @@ -132,3 +132,20 @@
132 seajs.use('js/order/save'); 132 seajs.use('js/order/save');
133 </script> 133 </script>
134 {{/if}} 134 {{/if}}
  135 +
  136 +
  137 +{{!-- sale列表 --}}
  138 +{{#if saleListPage}}
  139 +<script>
  140 + seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
  141 +
  142 + product.init(4);
  143 + window.onresize = function () {
  144 + setTimeout(function () {
  145 + product.init(4);
  146 + }, 300);
  147 + };
  148 +
  149 + });
  150 +</script>
  151 +{{/if}}
@@ -14,4 +14,513 @@ class Sale1Controller extends AbstractAction @@ -14,4 +14,513 @@ class Sale1Controller extends AbstractAction
14 ); 14 );
15 $this->_view->display('index', $data); 15 $this->_view->display('index', $data);
16 } 16 }
  17 +
  18 + //列表页
  19 + public function saleListAction()
  20 + {
  21 + $data = array(
  22 + 'saleListPage' => true,
  23 + 'saleList' => array(
  24 + 'saleBanner' => array(
  25 + 'bannerHeight' => 350,
  26 + 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'
  27 + ),
  28 + 'saleTitle' => array(
  29 + 'name' => '全部商品',
  30 + 'count' => 540
  31 + ),
  32 + 'leftContent' => array(
  33 + array(
  34 + 'allSort' => array(
  35 + 'updateNum' => 145,
  36 + 'list' => array(
  37 + array(
  38 + 'name' => '裙装',
  39 + 'num' => '10',
  40 + 'childList' => array(
  41 + array(
  42 + 'name' => '全身裙装',
  43 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  44 + 'num' => '5'
  45 + ),
  46 + array(
  47 + 'name' => '全身裙装',
  48 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  49 + 'num' => '5'
  50 + ),
  51 + array(
  52 + 'name' => '全身裙装',
  53 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  54 + 'num' => '5'
  55 + ),
  56 + array(
  57 + 'name' => '全身裙装',
  58 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  59 + 'num' => '5'
  60 + )
  61 + )
  62 + ),
  63 + array(
  64 + 'name' => '裙装BBB',
  65 + 'num' => '10',
  66 + 'childList' => array(
  67 + array(
  68 + 'name' => '全身裙装',
  69 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  70 + 'num' => '5'
  71 + ),
  72 + array(
  73 + 'name' => '全身裙装',
  74 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  75 + 'num' => '5'
  76 + ),
  77 + array(
  78 + 'name' => '全身裙装',
  79 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  80 + 'num' => '5'
  81 + ),
  82 + array(
  83 + 'name' => '全身裙装',
  84 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  85 + 'num' => '5'
  86 + )
  87 + )
  88 + )
  89 + )
  90 + )
  91 + ),
  92 + array(
  93 + 'picLink' => array(
  94 + 'title' => 'AAAA',
  95 + 'list' => array(
  96 + array(
  97 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  98 + 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
  99 + ),
  100 + array(
  101 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  102 + 'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
  103 + )
  104 + )
  105 + )
  106 + ),
  107 + array(
  108 + 'advPic' => array(
  109 + 'advPicTitle' => false,
  110 + 'list' => array(
  111 + array(
  112 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  113 + 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
  114 + ),
  115 + array(
  116 + 'href' => 'http://adidas.yohobuy.com/?folder=1366',
  117 + 'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
  118 + )
  119 + )
  120 + )
  121 + ),
  122 + array(
  123 + 'newSales' => array(
  124 + 'updateNum' => 130,
  125 + 'list' => array(
  126 + array(
  127 + 'name' => '12月03日',
  128 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  129 + 'num' => '5'
  130 + ),
  131 + array(
  132 + 'name' => '12月03日',
  133 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  134 + 'num' => '5'
  135 + ),
  136 + array(
  137 + 'name' => '12月03日',
  138 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  139 + 'num' => '5'
  140 + ),
  141 + array(
  142 + 'name' => '12月03日',
  143 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  144 + 'num' => '5'
  145 + )
  146 + )
  147 + )
  148 + ),
  149 + array(
  150 + 'allDiscount' => array(
  151 + 'updateNum' => 130,
  152 + 'list' => array(
  153 + array(
  154 + 'name' => '1~3折',
  155 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  156 + 'num' => '5'
  157 + ),
  158 + array(
  159 + 'name' => '4~6折',
  160 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  161 + 'num' => '5'
  162 + ),
  163 + array(
  164 + 'name' => '7折',
  165 + 'href' => 'http://adidas.yohobuy.com/?gender=1,3',
  166 + 'num' => '5'
  167 + )
  168 + )
  169 + )
  170 + )
  171 + ),
  172 + 'filters' => array(
  173 + 'checkedConditions' => array(
  174 + 'conditions' => array(
  175 + array(
  176 + 'href' => '',
  177 + 'name' => '暗黑'
  178 + ),
  179 + array(
  180 + 'href' => '',
  181 + 'color' => '#f00'
  182 + ),
  183 + array(
  184 + 'href' => '',
  185 + 'name' => 'CLOT'
  186 + )
  187 + ),
  188 + 'clearUrl' => ''
  189 + ),
  190 + 'channel' => array(
  191 + array(
  192 + 'href' => '/?gender=1,3',
  193 + 'name' => 'BOYS'
  194 + ),
  195 + array(
  196 + 'href' => '/?gender=2,3',
  197 + 'name' => 'GIRLS'
  198 + ),
  199 + array(
  200 + 'href' => '',
  201 + 'name' => 'KIDS'
  202 + ),
  203 + array(
  204 + 'href' => '',
  205 + 'name' => 'LIFESTYLE'
  206 + )
  207 + ),
  208 + 'sort' => array(
  209 + array(
  210 + 'id' => '1',
  211 + 'name' => '上衣',
  212 + 'sub' => array(
  213 + array(
  214 + 'href' => '',
  215 + 'name' => 'T恤'
  216 + ),
  217 + array(
  218 + 'href' => '',
  219 + 'name' => '棉袄'
  220 + ),
  221 + array(
  222 + 'href' => '',
  223 + 'name' => '外套'
  224 + )
  225 + )
  226 + ),
  227 + array(
  228 + 'id' => '2',
  229 + 'name' => '裤子'
  230 + ),
  231 + array(
  232 + 'id' => '3',
  233 + 'name' => '连衣裙'
  234 + ),
  235 + array(
  236 + 'id' => '4',
  237 + 'name' => '鞋'
  238 + )
  239 + ),
  240 + 'brand' => array(
  241 + 'default' => array(
  242 + array(
  243 + 'href' => '',
  244 + 'name' => 'CLOT'
  245 + ),
  246 + array(
  247 + 'href' => '',
  248 + 'name' => 'ABLE JEANS'
  249 + ),
  250 + array(
  251 + 'href' => '',
  252 + 'name' => 'Eight Guys'
  253 + ),
  254 + array(
  255 + 'href' => '',
  256 + 'name' => 'FAIRWHALE JEANS'
  257 + ),
  258 + array(
  259 + 'href' => '',
  260 + 'name' => '鬼洗'
  261 + ),
  262 + array(
  263 + 'href' => '',
  264 + 'name' => '金银帝国Imperial Taels'
  265 + ),
  266 + array(
  267 + 'href' => '',
  268 + 'name' => 'F.L.Y.D'
  269 + ),
  270 + array(
  271 + 'href' => '',
  272 + 'name' => 'Tapenade特芙娜'
  273 + ),
  274 + array(
  275 + 'href' => '',
  276 + 'name' => 'Adidas Originals'
  277 + )
  278 + ),
  279 + 'brandIndex' => array(
  280 + array(
  281 + 'index' => 'all',
  282 + 'name' => '全部'
  283 + ),
  284 + array(
  285 + 'index' => '0-9',
  286 + 'name' => '0 ~ 9'
  287 + ),
  288 + array(
  289 + 'index' => 'a',
  290 + 'name' => 'A'
  291 + )
  292 + ),
  293 + 'brandsShow' => array(
  294 + array(
  295 + 'id' => '1',
  296 + 'href' => '',
  297 + 'index' => '0-9',
  298 + 'name' => '5cm',
  299 + 'key' => '5cm'
  300 + ),
  301 + array(
  302 + 'id' => '2',
  303 + 'href' => '',
  304 + 'index' => 'k',
  305 + 'name' => 'KTZ',
  306 + 'key' => 'ktz'
  307 + ),
  308 + array(
  309 + 'id' => '3',
  310 + 'href' => '',
  311 + 'index' => 't',
  312 + 'name' => 'Tapenade特芙娜',
  313 + 'key' => 'tapenade特芙娜'
  314 + ),
  315 + array(
  316 + 'id' => '4',
  317 + 'href' => '',
  318 + 'index' => 'j',
  319 + 'name' => '金银帝国Imperial Taels',
  320 + 'key' => '金银帝国imperial taels'
  321 + ),
  322 + array(
  323 + 'id' => '5',
  324 + 'href' => '',
  325 + 'index' => 'a',
  326 + 'name' => 'ABLE JEANS',
  327 + 'key' => 'able jeans'
  328 + )
  329 + )
  330 + ),
  331 + 'price' => array(
  332 + array(
  333 + 'href' => '',
  334 + 'name' => '0-239'
  335 + ),
  336 + array(
  337 + 'href' => '',
  338 + 'name' => '240-329'
  339 + )
  340 + ),
  341 + 'color' => array(
  342 + array(
  343 + 'href' => '',
  344 + 'name' => '黑色',
  345 + 'rgb' => '#000'
  346 + ),
  347 + array(
  348 + 'href' => '',
  349 + 'name' => '红色',
  350 + 'rgb' => '#f00'
  351 + )
  352 + ),
  353 + 'size' => array(
  354 + array(
  355 + 'href' => '',
  356 + 'name' => 'S'
  357 + ),
  358 + array(
  359 + 'href' => '',
  360 + 'name' => 'L'
  361 + )
  362 + ),
  363 + 'seniorChose' => array(
  364 + array(
  365 + 'attr' => 'style',
  366 + 'name' => '风格',
  367 + 'showMulti' => true,
  368 + 'sub' => array(
  369 + array(
  370 + 'id' => '1',
  371 + 'href' => '',
  372 + 'name' => '街头'
  373 + ),
  374 + array(
  375 + 'id' => '2',
  376 + 'href' => '',
  377 + 'name' => '简约'
  378 + )
  379 + )
  380 + ),
  381 + array(
  382 + 'attr' => 'weather',
  383 + 'name' => '适用季节',
  384 + 'sub' => array(
  385 + array(
  386 + 'id' => '1',
  387 + 'href' => '',
  388 + 'name' => '春天'
  389 + ),
  390 + array(
  391 + 'id' => '2',
  392 + 'href' => '',
  393 + 'name' => '夏天'
  394 + )
  395 + )
  396 + )
  397 + )
  398 + ),
  399 + 'opts' => array(
  400 + 'sortType' => array(
  401 + array(
  402 + 'href' => '',
  403 + 'name' => '默认'
  404 + ),
  405 + array(
  406 + 'active' => true,
  407 + 'href' => '',
  408 + 'name' => '最新',
  409 + 'hasSortOrient' => true,
  410 + 'desc' => true
  411 + ),
  412 + array(
  413 + 'href' => '',
  414 + 'name' => '价格',
  415 + 'hasSortOrient' => true
  416 + ),
  417 + array(
  418 + 'href' => '',
  419 + 'name' => '折扣',
  420 + 'hasSortOrient' => true
  421 + )
  422 + ),
  423 + 'checks' => array(
  424 + array(
  425 + 'name' => '新品',
  426 + 'checked' => true,
  427 + 'href' => ''
  428 + ),
  429 + array(
  430 + 'name' => '打折',
  431 + 'href' => ''
  432 + ),
  433 + array(
  434 + 'name' => '限量',
  435 + 'checked' => true,
  436 + 'href' => ''
  437 + )
  438 + ),
  439 + 'fivePerLine' => true,
  440 + 'sixPerLineHref' => '',
  441 + 'countPerPage' => '120',
  442 + 'pageCounts' => array(
  443 + array(
  444 + 'href' => '',
  445 + 'count' => 60
  446 + ),
  447 + array(
  448 + 'href' => '',
  449 + 'count' => 100
  450 + ),
  451 + array(
  452 + 'href' => '',
  453 + 'count' => 120
  454 + )
  455 + ),
  456 + 'curPage' => 1,
  457 + 'pageCount' => 30,
  458 + 'nextHref' => 'hello'
  459 + ),
  460 + 'goods' => array(
  461 + array(
  462 + 'tags' => array(
  463 + 'isNew' => true,
  464 + 'isYearEndPromotion' => true
  465 + ),
  466 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  467 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  468 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  469 + 'salePrice' => '899',
  470 + 'isFew' => true
  471 + ),
  472 + array(
  473 + 'tags' => array(
  474 + 'isNew' => true,
  475 + 'isReNew' => true
  476 + ),
  477 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  478 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  479 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  480 + 'salePrice' => '899',
  481 + 'showColBtn' => true
  482 + ),
  483 + array(
  484 + 'tags' => array(
  485 + 'isNew' => true,
  486 + 'isReNew' => true
  487 + ),
  488 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  489 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  490 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  491 + 'salePrice' => '899'
  492 + ),
  493 + array(
  494 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  495 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  496 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  497 + 'salePrice' => '899'
  498 + ),
  499 + array(
  500 + 'tags' => array(
  501 + 'isNew' => true,
  502 + 'isReNew' => true
  503 + ),
  504 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  505 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  506 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  507 + 'salePrice' => '899'
  508 + ),
  509 + array(
  510 + 'tags' => array(
  511 + 'isNew' => true,
  512 + 'isReNew' => true
  513 + ),
  514 + 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
  515 + 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
  516 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
  517 + 'salePrice' => '899'
  518 + )
  519 + ),
  520 + 'totalCount' => '2259',
  521 + 'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="iconfont">&gt;</span></a>'
  522 + )
  523 + );
  524 + $this->_view->display('sale-list', $data);
  525 + }
17 } 526 }