...
|
...
|
@@ -36,11 +36,9 @@ class ListController extends AbstractAction |
|
|
'brand' => 0,
|
|
|
'msort' => 0,
|
|
|
'gender' => $this->getCookie('_Channel', 'boys'),
|
|
|
'sort' => 0,
|
|
|
'price' => 0,
|
|
|
'size' => 0,
|
|
|
'discount' => '',
|
|
|
'p_d' => ''
|
|
|
'discount' => ''
|
|
|
)
|
|
|
);
|
|
|
|
...
|
...
|
@@ -97,9 +95,11 @@ class ListController extends AbstractAction |
|
|
$query = $this->get('query', null);
|
|
|
$brand = $this->get('brand', null);
|
|
|
$gender = $this->get('gender', null);
|
|
|
$p_d = $this->get('p_d', null);
|
|
|
$misort = $this->get('misort', null);
|
|
|
$msort = $this->get('msort', null);
|
|
|
$color = $this->get('color', null);
|
|
|
$size = $this->get('size', null);
|
|
|
$price = $this->get('price', null);
|
|
|
$p_d = $this->get('discount', null);
|
|
|
$sort = $this->get('msort', null);
|
|
|
|
|
|
// 转换性别
|
|
|
if($gender === 'boys')
|
...
|
...
|
@@ -115,7 +115,6 @@ class ListController extends AbstractAction |
|
|
$gender = '1,2,3';
|
|
|
}
|
|
|
|
|
|
|
|
|
// 转换排序方式
|
|
|
$order = $this->get('order', null);
|
|
|
$type = $this->get('type', '');
|
...
|
...
|
@@ -134,7 +133,7 @@ class ListController extends AbstractAction |
|
|
|
|
|
$data = array();
|
|
|
// 查询数据
|
|
|
$listData = SearchData::searchLiDatas($query, $brand, $gender, $p_d, $misort, $msort, $order);
|
|
|
$listData = SearchData::searchLiDatas($query, $brand, $gender, $color, $size, $price, $p_d, $sort, $order);
|
|
|
// 处理返回的数据
|
|
|
if (isset($listData['code']) && $listData['code'] === 200) {
|
|
|
$tmpData = $listData['data'];
|
...
|
...
|
@@ -166,7 +165,7 @@ class ListController extends AbstractAction |
|
|
$color = $this->get('color', null);
|
|
|
$size = $this->get('size', null);
|
|
|
$price = $this->get('price', null);
|
|
|
$p_d = $this->get('p_d', null);
|
|
|
$p_d = $this->get('discount', null);
|
|
|
|
|
|
$data = array(
|
|
|
'pageHeader' => array(
|
...
|
...
|
@@ -230,7 +229,7 @@ class ListController extends AbstractAction |
|
|
$color = $this->get('color', null);
|
|
|
$size = $this->get('size', null);
|
|
|
$price = $this->get('price', null);
|
|
|
$p_d = $this->get('p_d', null);
|
|
|
$p_d = $this->get('discount', null);
|
|
|
|
|
|
$data = array(
|
|
|
'pageHeader' => array(
|
...
|
...
|
@@ -245,8 +244,7 @@ class ListController extends AbstractAction |
|
|
'sort' => $sort,
|
|
|
'price' => 0,
|
|
|
'size' => 0,
|
|
|
'discount' => '',
|
|
|
'p_d' => ''
|
|
|
'discount' => ''
|
|
|
)
|
|
|
);
|
|
|
|
...
|
...
|
|