Authored by xuqi

new sale style

1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="new-sale-page product-page yoho-page"> 2 <div class="new-sale-page product-page yoho-page">
3 {{# newSale}} 3 {{# newSale}}
4 - {{# banner}} 4 + {{# saleBanner}}
5 <div class="banner-img" style="height: {{bannerHeight}}px;background:url({{img}}) no-repeat top center;"></div> 5 <div class="banner-img" style="height: {{bannerHeight}}px;background:url({{img}}) no-repeat top center;"></div>
6 - {{/ banner}} 6 + {{/ saleBanner}}
7 7
8 <div class="center-content clearfix"> 8 <div class="center-content clearfix">
9 - {{# title}} 9 + {{> layout/path-nav}}
  10 +
  11 + {{# saleTitle}}
10 <div class="header-title"> 12 <div class="header-title">
11 {{name}} 13 {{name}}
12 <p class="line-through"></p> 14 <p class="line-through"></p>
@@ -14,7 +16,7 @@ @@ -14,7 +16,7 @@
14 <span class="count">共{{count}}个结果</span> 16 <span class="count">共{{count}}个结果</span>
15 </p> 17 </p>
16 </div> 18 </div>
17 - {{/ title}} 19 + {{/ saleTitle}}
18 20
19 <div class="list-left pull-left"> 21 <div class="list-left pull-left">
20 {{> product/left-content}} 22 {{> product/left-content}}
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 position: relative; 3 position: relative;
4 width: 100%; 4 width: 100%;
5 height: 42px; 5 height: 42px;
6 - margin-top: 20px; 6 + margin: 20px 0;
7 text-align: center; 7 text-align: center;
8 font-size: 20px; 8 font-size: 20px;
9 9
@@ -960,6 +960,16 @@ class IndexController extends AbstractAction @@ -960,6 +960,16 @@ class IndexController extends AbstractAction
960 $data = array( 960 $data = array(
961 'productListPage' => true, 961 'productListPage' => true,
962 'newSale' => array( 962 'newSale' => array(
  963 + 'pathNav' => array(
  964 + array(
  965 + 'href' => 'new.yohobuy.com/girls',
  966 + 'name' => 'GRILS首页'
  967 + ),
  968 + array(
  969 + 'href' => '/?sort=1',
  970 + 'name' => '新品到着'
  971 + )
  972 + ),
963 'leftContent' => array( 973 'leftContent' => array(
964 array( 974 array(
965 'allSort' => array( 975 'allSort' => array(
@@ -1100,14 +1110,18 @@ class IndexController extends AbstractAction @@ -1100,14 +1110,18 @@ class IndexController extends AbstractAction
1100 ) 1110 )
1101 ) 1111 )
1102 ), 1112 ),
1103 - 'banner' => array(  
1104 - 'bannerHeight' => 350,  
1105 - 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'  
1106 - ),  
1107 - 'title' => array(  
1108 - 'name' => '全部商品',  
1109 - 'count' => 540  
1110 - ), 1113 +
  1114 + //SALE页面内容
  1115 + // 'saleBanner' => array(
  1116 + // 'bannerHeight' => 350,
  1117 + // 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'
  1118 + // ),
  1119 + // 'saleTitle' => array(
  1120 + // 'name' => '全部商品',
  1121 + // 'count' => 540
  1122 + // ),
  1123 +
  1124 + //NEW页面内容
1111 'newMain' => array( 1125 'newMain' => array(
1112 'banner' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/23/07/010a459d41b99a839cba9377532f1c19b2.jpg?imageView/3/w/970/h/200', 1126 'banner' => 'http://img11.static.yhbimg.com/yhb-img01/2015/11/23/07/010a459d41b99a839cba9377532f1c19b2.jpg?imageView/3/w/970/h/200',
1113 'date' => '12月16日', 1127 'date' => '12月16日',