...
|
...
|
@@ -2,7 +2,6 @@ |
|
|
|
|
|
use Action\AbstractAction;
|
|
|
use LibModels\Wap\Product\NewsaleData;
|
|
|
use Product\NewsaleModel;
|
|
|
use Plugin\Helpers;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -22,13 +21,12 @@ class NewsaleController extends AbstractAction |
|
|
$this->setNavHeader('新品到着');
|
|
|
|
|
|
$channel = Helpers::getChannelByCookie();
|
|
|
|
|
|
$data = array();
|
|
|
$data['newArrivalPage'] = true;
|
|
|
$data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
|
|
|
// 设置一些筛选的默认参数
|
|
|
$data += array(
|
|
|
'showDownloadApp'=>true,
|
|
|
$data = array(
|
|
|
'newArrivalPage' => true,
|
|
|
'showDownloadApp' => true,
|
|
|
'pageFooter' => true,
|
|
|
'headerBanner' => \Product\NewsaleModel::getNewFocus($channel),
|
|
|
'brand' => '0',
|
|
|
'sort' => '0',
|
|
|
'gender' => Helpers::getGenderByCookie(),
|
...
|
...
|
@@ -52,13 +50,12 @@ class NewsaleController extends AbstractAction |
|
|
$this->setNavHeader('Sale');
|
|
|
|
|
|
$channel = Helpers::getChannelByCookie();
|
|
|
|
|
|
$data = array();
|
|
|
$data['discountPage'] = true;
|
|
|
$data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel);
|
|
|
// 设置一些筛选的默认参数
|
|
|
$data += array(
|
|
|
'showDownloadApp'=>true,
|
|
|
// 设置一些默认参数
|
|
|
$data = array(
|
|
|
'discountPage' => true,
|
|
|
'headerBanner' => \Product\NewsaleModel::getNewFocus($channel),
|
|
|
'showDownloadApp' => true,
|
|
|
'pageFooter' => true,
|
|
|
'brand' => '0',
|
|
|
'sort' => '0',
|
|
|
'gender' => Helpers::getGenderByCookie(),
|
...
|
...
|
@@ -77,6 +74,8 @@ class NewsaleController extends AbstractAction |
|
|
*/
|
|
|
public function selectNewSaleAction()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$gender = $this->get('gender', null);
|
|
|
$brand = $this->get('brand', null);
|
...
|
...
|
@@ -101,14 +100,12 @@ class NewsaleController extends AbstractAction |
|
|
$gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order
|
|
|
);
|
|
|
$result = \Product\NewsaleModel::selectData($data);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->_view->display('product', $result);
|
|
|
}
|
|
|
} else {
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->_view->display('product', $result);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -119,6 +116,8 @@ class NewsaleController extends AbstractAction |
|
|
*/
|
|
|
public function filterAction()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$gender = $this->get('gender', null);
|
|
|
$brand = $this->get('brand', null);
|
...
|
...
|
@@ -142,14 +141,12 @@ class NewsaleController extends AbstractAction |
|
|
$gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order
|
|
|
);
|
|
|
$result = \Product\NewsaleModel::filterData($data);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->_view->display('filter', $result);
|
|
|
}
|
|
|
} else {
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->_view->display('filter', $result);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|