...
|
...
|
@@ -228,32 +228,34 @@ class NewsaleController extends AbstractAction |
|
|
$this->_view->display('new', $data);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Ajax方式筛选新品到着、折扣专区商品
|
|
|
*
|
|
|
* @return array 根据指定条件筛选之后的商品
|
|
|
*/
|
|
|
public function selectNewAction()
|
|
|
public function selectNewSaleAction()
|
|
|
{
|
|
|
if($this->isAjax())
|
|
|
{
|
|
|
$gender = $this->get('gender', '1,3');
|
|
|
$brand = $this->get('brand', null);
|
|
|
$sort = $this->get('sort', null);
|
|
|
$color = $this->get('color', null);
|
|
|
$size = $this->get('size', null);
|
|
|
$price = $this->get('price', null);
|
|
|
$p_d = $this->get('p_d', null);
|
|
|
$channel = $this->get('channel', '1');
|
|
|
$dayLimit = $this->get('dayLimit', '1');
|
|
|
$limit = $this->get('limit', 50);
|
|
|
$page = $this->get('page', 1);
|
|
|
/*if($this->isAjax())
|
|
|
{*/
|
|
|
$gender = $this->get('gender', '1,3');
|
|
|
$brand = $this->get('brand', null);
|
|
|
$sort = $this->get('sort', null);
|
|
|
$color = $this->get('color', null);
|
|
|
$size = $this->get('size', null);
|
|
|
$price = $this->get('price', null);
|
|
|
$p_d = $this->get('p_d', null);
|
|
|
$channel = $this->get('channel', '1');
|
|
|
$dayLimit = $this->get('dayLimit', '1');
|
|
|
$limit = $this->get('limit', 50);
|
|
|
$page = $this->get('page', 1);
|
|
|
|
|
|
$data = Newsale::selectNewSaleProducts($gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page);
|
|
|
$data = Newsale::selectNewSaleProducts($gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page);
|
|
|
|
|
|
$this->returnJson(200, '获取成功', $data);
|
|
|
}
|
|
|
$result = NewSaleProcess::selectData($data);
|
|
|
|
|
|
$this->_view->display('product', $result);
|
|
|
// $this->returnJson(200, '获取成功', $data);
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|