Authored by 毕凯

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -6,5 +6,6 @@ @@ -6,5 +6,6 @@
6 6
7 {{> sale/activity-entry}} 7 {{> sale/activity-entry}}
8 {{> sale/brand-sale}} 8 {{> sale/brand-sale}}
  9 + {{> sale/sale-box}}
9 </div> 10 </div>
10 {{> layout/footer}} 11 {{> layout/footer}}
  1 +<div class="home-page">
  2 + {{#sale-category}}
  3 + <div class="floor-header clearfix">
  4 + <h2 class="floor-title">{{title}}</h2>
  5 + </div>
  6 + <ul class="sale-nav">
  7 + {{#navItem}}
  8 + <li class="{{#vip}}green{{/vip}} {{#incompleteSize}}yellow{{/incompleteSize}} {{#newDiscount}}red{{/newDiscount}} {{#if @first}}active first{{/if}} {{#if @last}}last{{/if}}" data-url='{{url}}'>aa</li>
  9 + {{/navItem}}
  10 + </ul>
  11 + <div class="commodity-list">
  12 + <ul class="clearfix">
  13 + {{#each saleImage}}
  14 + <li class="commodity-item">
  15 + <a href="{{href}}" target= "_blank"><div class="commodity-img">
  16 + <img class="lazy" data-original="{{img}}"/></div>
  17 + <div class="commodity-content {{#if @last}}hide{{/if}}">
  18 + <p class="commodity-name">{{name}}</p>
  19 + <p class="commodity-price">
  20 + <span class="origin">¥{{originPrice}}</span>
  21 + <span>¥{{price}}</span>
  22 + {{#vip}}<span class="vip-tag">VIP</span><strong>更优惠</strong>{{/vip}}
  23 + </p>
  24 + </div>
  25 + </a>
  26 + </li>
  27 + {{/each}}
  28 + </ul>
  29 + </div>
  30 + {{/sale-category}}
  31 +</div>
  1 +/**
  2 + * sale页js打包入口文件
  3 + * @author: zhaobiao<bill.zhao@yoho.cn>
  4 + * @date: 2016/01/18
  5 + */
  6 +
  7 +require('./index');
@@ -5,9 +5,15 @@ @@ -5,9 +5,15 @@
5 */ 5 */
6 6
7 var $ = require('yoho.jquery'), 7 var $ = require('yoho.jquery'),
  8 + $navItem = $('.sale-nav li'),
8 lazyLoad = require('yoho.lazyload'); 9 lazyLoad = require('yoho.lazyload');
9 10
10 require('../common/slider'); 11 require('../common/slider');
11 12
12 lazyLoad($('img.lazy')); 13 lazyLoad($('img.lazy'));
13 $('.slide-container').slider(); 14 $('.slide-container').slider();
  15 +
  16 +$navItem.on('click', function() {
  17 + $(this).siblings('.active').removeClass('active');
  18 + $(this).addClass('active');
  19 +});
@@ -137,4 +137,198 @@ @@ -137,4 +137,198 @@
137 } 137 }
138 } 138 }
139 } 139 }
  140 +
  141 + .sale-nav li {
  142 + float: left;
  143 + width: 20%;
  144 + height: 40px;
  145 + line-height: 40px;
  146 + background-color: #e0e0e0;
  147 + text-align: center;
  148 + background-color: #f5f5f5;
  149 + color: #6d6d6d;
  150 + margin-bottom: 10px;
  151 + }
  152 + .sale-nav li.active {
  153 + color: #fff;
  154 + background-repeat: no-repeat;
  155 + background-size: 100% 100%;
  156 + }
  157 +
  158 + .sale-nav li.green.active {
  159 + color: #fff;
  160 + background-image: image-url('sale/navactive-green-middle.png');
  161 + background-repeat: no-repeat;
  162 + background-size: 100% 100%;
  163 + }
  164 +
  165 + .sale-nav li.green.first.active {
  166 + background-image: image-url('sale/navactive-green-first.png');
  167 + }
  168 +
  169 + .sale-nav li.green.last.active {
  170 + background-image: image-url('sale/navactive-green-last.png');
  171 + }
  172 +
  173 + .sale-nav li.yellow.active {
  174 + color: #fff;
  175 + background-image: image-url('sale/navactive-yellow-middle.png');
  176 + background-repeat: no-repeat;
  177 + background-size: 100% 100%;
  178 + }
  179 +
  180 + .sale-nav li.yellow.first.active {
  181 + background-image: image-url('sale/navactive-yellow-first.png');
  182 + }
  183 +
  184 + .sale-nav li.yellow.last.active {
  185 + background-image: image-url('sale/navactive-yellow-last.png');
  186 + }
  187 +
  188 + .sale-nav li.red.active {
  189 + color: #fff;
  190 + background-image: image-url('sale/navactive-red-middle.png');
  191 + background-repeat: no-repeat;
  192 + background-size: 100% 100%;
  193 + }
  194 +
  195 + .sale-nav li.red.first.active {
  196 + background-image: image-url('sale/navactive-red-first.png');
  197 + }
  198 +
  199 + .sale-nav li.red.last.active {
  200 + background-image: image-url('sale/navactive-red-last.png');
  201 + }
  202 +
  203 + @media screen and (min-width: 1150px) {
  204 + .floor-header {
  205 + margin:80px 0 40px
  206 + }
  207 +
  208 + .floor-header .header-navs li {
  209 + padding: 1px 15px
  210 + }
  211 + }
  212 +
  213 + .commodity-list ul {
  214 + width: 1004px
  215 + }
  216 +
  217 + .commodity-item {
  218 + float: left;
  219 + width: 241px;
  220 + margin: 0 10px 0 0
  221 + }
  222 + .commodity-img {
  223 + position: relative;
  224 + height: 323px;
  225 + text-align: center
  226 + }
  227 +
  228 + .commodity-img img {
  229 + width: 100%;
  230 + height: 100%;
  231 + vertical-align: middle
  232 + }
  233 +
  234 + .commodity-img .top-tag {
  235 + position: absolute;
  236 + width: 60px;
  237 + height: 60px;
  238 + top: 10px;
  239 + right: 10px;
  240 + line-height: 60px;
  241 + background: url('../assets/images/furniture/top-tag-bg.png?1450667948');
  242 + font-size: 20px;
  243 + color: #fff
  244 + }
  245 +
  246 + .commodity-img .few-tag {
  247 + position: absolute;
  248 + bottom: 0;
  249 + width: 100%;
  250 + height: 20px;
  251 + background: #ffac5b;
  252 + color: #fff;
  253 + line-height: 20px;
  254 + text-align: center;
  255 + font-size: 12px
  256 + }
  257 +
  258 + .commodity-content {
  259 + padding: 10px 0 0 0;
  260 + height: 69px;
  261 + overflow: hidden
  262 + }
  263 +
  264 + .commodity-content .commodity-name {
  265 + font-size: 12px;
  266 + color: #000;
  267 + line-height: 18px;
  268 + text-align: center
  269 + }
  270 +
  271 + .commodity-content .commodity-price {
  272 + position: relative;
  273 + margin: 3px 0 0 0;
  274 + text-align: center;
  275 + line-height: 20px;
  276 + color: #000
  277 + }
  278 +
  279 + .commodity-content .commodity-price span {
  280 + display: inline-block;
  281 + *display: inline;
  282 + *zoom: 1;
  283 + font-size: 12px;
  284 + padding: 0 15px;
  285 + }
  286 +
  287 + .commodity-content .commodity-price span.origin {
  288 + text-decoration: line-through;
  289 + }
  290 +
  291 + .commodity-content .commodity-price strong {
  292 + font-weight: normal;
  293 + color: #565656;
  294 + font-size: 13px;
  295 + }
  296 +
  297 + .commodity-content .commodity-price span.vip-tag {
  298 + background-image: image-url('sale/vip.png');
  299 + background-repeat: no-repeat;
  300 + background-size: 100% 90%;
  301 + color: #fff;
  302 + font-style: italic;
  303 + margin-right: 5px;
  304 + }
  305 +
  306 + .commodity-content .commodity-price .price-sale {
  307 + margin-left: 10px;
  308 + padding-left: 10px;
  309 + width: 36px;
  310 + height: 20px;
  311 + line-height: 20px;
  312 + background: url('../assets/images/furniture/sale-tag-bg.png?1450667948');
  313 + color: #fff
  314 + }
  315 +
  316 + @media screen and (min-width: 1150px) {
  317 + .commodity-list ul {
  318 + width:1160px
  319 + }
  320 +
  321 + .commodity-item {
  322 + width: 280px
  323 + }
  324 +
  325 + .commodity-img {
  326 + height: 374px
  327 + }
  328 +
  329 + .commodity-content {
  330 + padding: 14px 0 0 0;
  331 + height: 77px
  332 + }
  333 + }
140 } 334 }
@@ -17,10 +17,6 @@ class LoginController extends WebAction @@ -17,10 +17,6 @@ class LoginController extends WebAction
17 // 设置登录有效时间30分钟, 防机器刷 17 // 设置登录有效时间30分钟, 防机器刷
18 $this->setSession('_LOGIN_EXPIRE', time() + 1800); 18 $this->setSession('_LOGIN_EXPIRE', time() + 1800);
19 19
20 - // 清除客户端  
21 - $this->setCookie('_UID', '');  
22 - $this->setCookie('_TOKEN', '');  
23 -  
24 //登录后跳转页面 20 //登录后跳转页面
25 $refer = empty($_SERVER["HTTP_REFERER"]) ? '' : $_SERVER["HTTP_REFERER"]; 21 $refer = empty($_SERVER["HTTP_REFERER"]) ? '' : $_SERVER["HTTP_REFERER"];
26 if (!empty($refer)) { 22 if (!empty($refer)) {
@@ -152,47 +152,269 @@ class Sale1Controller extends WebAction @@ -152,47 +152,269 @@ class Sale1Controller extends WebAction
152 'title' => '2015春夏海量大促!' 152 'title' => '2015春夏海量大促!'
153 ) 153 )
154 ) 154 )
155 - )  
156 - );  
157 - $this->setWebNavHeader();  
158 - $this->_view->display('index', $data);  
159 - } 155 + ),
  156 + 'sale-category' => array(
  157 + array(
  158 + 'title' => 'VIP会员专享 ',
  159 + 'vip' => true,
  160 + 'navItem' => array(
  161 + array(
  162 + 'name' => '12',
  163 + 'url' => 'xxx'
  164 + ),
  165 + array(
  166 + 'name' => '12',
  167 + 'url' => 'xxx'
  168 + ),
  169 + array(
  170 + 'name' => '12',
  171 + 'url' => 'xxx'
  172 + ),
  173 + array(
  174 + 'name' => '12',
  175 + 'url' => 'xxx'
  176 + ),
  177 + array(
  178 + 'name' => '12',
  179 + 'url' => 'xxx'
  180 + ),
  181 + ),
  182 + 'saleImage'=> array(
  183 + array(
  184 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  185 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  186 + 'name' => '短发上课就犯困啦圣诞节',
  187 + 'price' => '888',
  188 + 'originPrice' => '1000'
  189 + ),
  190 + array(
  191 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  192 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  193 + 'name' => '短发上课就犯困啦圣诞节',
  194 + 'price' => '888',
  195 + 'originPrice' => '1000'
  196 + ),
  197 + array(
  198 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  199 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  200 + 'name' => '短发上课就犯困啦圣诞节',
  201 + 'price' => '888',
  202 + 'originPrice' => '1000'
  203 + ),
  204 + array(
  205 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  206 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  207 + 'price' => '888',
  208 + 'name' => '短发上课就犯困啦圣诞节',
  209 + 'originPrice' => '1000'
  210 + ),
  211 + array(
  212 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  213 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  214 + 'name' => 'test',
  215 + 'price' => '888',
  216 + 'originPrice' => '1000'
  217 + ),
  218 + array(
  219 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  220 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  221 + 'name' => 'test',
  222 + 'price' => '888',
  223 + 'originPrice' => '1000'
  224 + ),
  225 + array(
  226 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  227 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  228 + 'name' => 'test',
  229 + 'price' => '888',
  230 + 'originPrice' => '1000'
  231 + ),
  232 + array(
  233 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  234 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  235 + 'name' => 'test',
  236 + 'price' => '888',
  237 + 'originPrice' => '1000'
  238 + )
160 239
161 - //列表页  
162 - public function saleListAction()  
163 - {  
164 - $data = array(  
165 - 'saleListPage' => true,  
166 - 'saleList' => array(  
167 - 'saleBanner' => array(  
168 - 'bannerHeight' => 350,  
169 - 'list' => array( 240 + )
  241 + ),
  242 + array(
  243 + 'title' => '断码区域',
  244 + 'incompleteSize' => true,
  245 + 'navItem' => array(
  246 + array(
  247 + 'name' => '12',
  248 + ),
  249 + array(
  250 + 'name' => '12',
  251 + ),
  252 + array(
  253 + 'name' => '12',
  254 + ),
  255 + array(
  256 + 'name' => '12',
  257 + ),
  258 + array(
  259 + 'name' => '12',
  260 + ),
  261 + ),
  262 + 'saleImage'=> array(
  263 + array(
  264 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  265 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  266 + 'name' => 'test',
  267 + 'price' => '888',
  268 + 'originPrice' => '1000'
  269 + ),
170 array( 270 array(
171 - 'bannerHeight' => 350,  
172 - 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg' 271 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  272 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  273 + 'name' => 'test',
  274 + 'price' => '888',
  275 + 'originPrice' => '1000'
173 ), 276 ),
174 array( 277 array(
175 - 'bannerHeight' => 350,  
176 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/06/05/02062366574a01418596caa38a773f6beb.jpg?imageView/1/w/1150/h/450' 278 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  279 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  280 + 'name' => 'test',
  281 + 'price' => '888',
  282 + 'originPrice' => '1000'
177 ), 283 ),
178 array( 284 array(
179 - 'bannerHeight' => 350,  
180 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/01/06/05/013341a0632177cc3425c3c6082845be57.jpg?imageView/1/w/1150/h/450' 285 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  286 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  287 + 'name' => 'test',
  288 + 'price' => '888',
  289 + 'originPrice' => '1000'
181 ), 290 ),
182 array( 291 array(
183 - 'bannerHeight' => 350,  
184 - 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg' 292 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  293 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  294 + 'name' => 'test',
  295 + 'price' => '888',
  296 + 'originPrice' => '1000'
185 ), 297 ),
186 array( 298 array(
187 - 'bannerHeight' => 350,  
188 - 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/06/05/02062366574a01418596caa38a773f6beb.jpg?imageView/1/w/1150/h/450' 299 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  300 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  301 + 'name' => 'test',
  302 + 'price' => '888',
  303 + 'originPrice' => '1000'
189 ), 304 ),
190 array( 305 array(
191 - 'bannerHeight' => 350,  
192 - 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/01/06/05/013341a0632177cc3425c3c6082845be57.jpg?imageView/1/w/1150/h/450' 306 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  307 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  308 + 'name' => 'test',
  309 + 'price' => '888',
  310 + 'originPrice' => '1000'
  311 + ),
  312 + array(
  313 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  314 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  315 + 'name' => 'test',
  316 + 'price' => '888',
  317 + 'originPrice' => '1000'
193 ) 318 )
  319 +
194 ) 320 )
195 ), 321 ),
  322 + array(
  323 + 'title' => '最新降价',
  324 + 'newDiscount' => true,
  325 + 'navItem' => array(
  326 + array(
  327 + 'name' => '12',
  328 + ),
  329 + array(
  330 + 'name' => '12',
  331 + ),
  332 + array(
  333 + 'name' => '12',
  334 + ),
  335 + array(
  336 + 'name' => '12',
  337 + ),
  338 + array(
  339 + 'name' => '12',
  340 + ),
  341 + ),
  342 + 'saleImage'=> array(
  343 + array(
  344 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  345 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  346 + 'name' => 'test',
  347 + 'price' => '888',
  348 + 'originPrice' => '1000'
  349 + ),
  350 + array(
  351 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  352 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  353 + 'name' => 'test',
  354 + 'price' => '888',
  355 + 'originPrice' => '1000'
  356 + ),
  357 + array(
  358 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  359 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  360 + 'name' => 'test',
  361 + 'price' => '888',
  362 + 'originPrice' => '1000'
  363 + ),
  364 + array(
  365 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  366 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  367 + 'name' => 'test',
  368 + 'price' => '888',
  369 + 'originPrice' => '1000'
  370 + ),
  371 + array(
  372 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  373 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  374 + 'name' => 'test',
  375 + 'price' => '888',
  376 + 'originPrice' => '1000'
  377 + ),
  378 + array(
  379 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  380 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  381 + 'name' => 'test',
  382 + 'price' => '888',
  383 + 'originPrice' => '1000'
  384 + ),
  385 + array(
  386 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  387 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  388 + 'name' => 'test',
  389 + 'price' => '888',
  390 + 'originPrice' => '1000'
  391 + ),
  392 + array(
  393 + 'href' => 'http://www.yohobuy.com/product/pro_327765_421995/TUCTUC36205TaoZhuang.html?channel=kids',
  394 + 'img' => "http://img13.static.yhbimg.com/goodsimg/2015/11/05/09/02eb88e527a57d0e26e13f2eb9cc35ad0e.jpg?imageMogr2/thumbnail/280x373/extent/280x373/background/d2hpdGU=/position/center/quality/90",
  395 + 'name' => 'test',
  396 + 'price' => '888',
  397 + 'originPrice' => '1000'
  398 + )
  399 +
  400 + )
  401 + )
  402 + )
  403 + );
  404 + $this->setWebNavHeader();
  405 + $this->_view->display('index', $data);
  406 + }
  407 +
  408 + //列表页
  409 + public function saleListAction()
  410 + {
  411 + $data = array(
  412 + 'saleListPage' => true,
  413 + 'saleList' => array(
  414 + 'saleBanner' => array(
  415 + 'bannerHeight' => 350,
  416 + 'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'
  417 + ),
196 'saleTitle' => array( 418 'saleTitle' => array(
197 'name' => '全部商品', 419 'name' => '全部商品',
198 'count' => 540 420 'count' => 540