Authored by 梁志锋

update

... ... @@ -13,9 +13,9 @@ var swiper;
var filter = require('../../plugin/filter');
var $goodsContainer = $('#goods-container'),
$ngc = $goodsContainer.children('.new-goods'),
$pgc = $goodsContainer.children('.price-goods'),
$dgc = $goodsContainer.children('.discount-goods');
$ngc = $($goodsContainer.children().get(0)),
$pgc = $($goodsContainer.children().get(1)),
$dgc = $($goodsContainer.children().get(2));
var winH = $(window).height();
... ...
... ... @@ -41,8 +41,6 @@
</div>
{{/ goodsContainer}}
{{> filter}}
</div>
... ...
... ... @@ -40,12 +40,18 @@
<div id="goods-container" class="goods-container">
{{# goodsContainer}}
<div class="new-goods container">
{{#if goods}}
{{# goods}}
{{> good}}
{{/ goods}}
{{^}}
<p class="no-result">未找到相关搜索结果</p>
{{/if}}
</div>
<div class="price-goods container hide"></div>
<div class="discount-goods container hide"></div>
{{/ goodsContainer}}
{{> filter}}
</div>
... ... @@ -90,7 +96,7 @@
{{/if}}
{{#if discount}}
<input id="page" type="hidden" value={{page}}>
<input id="discount" type="hidden" value={{discount}}>
{{/if}}
</div>
... ...
... ... @@ -58,6 +58,7 @@ class NewsaleController extends AbstractAction
$this->channelTrans($channel);
$data = array();
$data['discount'] = true;
$data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
$goodsList = \Product\NewsaleModel::getSaleProducts($channel, 60);
if (!empty($goodsList)) {
... ... @@ -72,7 +73,7 @@ class NewsaleController extends AbstractAction
'size' => 0,
'discount' => '0.1,0.9'
);
//var_dump($data);exit;
$this->_view->display('sale', $data);
}
... ...