...
|
...
|
@@ -30,7 +30,6 @@ class SearchController extends AbstractAction |
|
|
/**
|
|
|
* 搜索列表页
|
|
|
*
|
|
|
* tar mark
|
|
|
*/
|
|
|
public function listAction()
|
|
|
{
|
...
|
...
|
@@ -51,6 +50,7 @@ class SearchController extends AbstractAction |
|
|
'price' => FILTER_DEFAULT,
|
|
|
'discount' => FILTER_DEFAULT,
|
|
|
'gender' => FILTER_DEFAULT,
|
|
|
'outlets' => FILTER_DEFAULT,
|
|
|
'p_d' => FILTER_DEFAULT,), false);
|
|
|
if (isset($condition['shop_id'])) {
|
|
|
$condition['shopId'] = $condition['shop_id'];
|
...
|
...
|
@@ -197,7 +197,7 @@ class SearchController extends AbstractAction |
|
|
$listData = array();
|
|
|
}
|
|
|
|
|
|
if(isset($condition['title'])){
|
|
|
if (isset($condition['title'])) {
|
|
|
$this->setTitle($condition['title']);
|
|
|
$this->setNavHeader($condition['title'], true, SITE_MAIN);
|
|
|
}
|
...
|
...
|
@@ -235,9 +235,10 @@ class SearchController extends AbstractAction |
|
|
'discount' => FILTER_DEFAULT,
|
|
|
'gender' => FILTER_DEFAULT,
|
|
|
'p_d' => FILTER_DEFAULT,
|
|
|
'outlets' => FILTER_DEFAULT,
|
|
|
'page' => FILTER_VALIDATE_INT,), false);
|
|
|
|
|
|
if(!empty($condition['shop_id'])){
|
|
|
if (!empty($condition['shop_id'])) {
|
|
|
$condition['shop'] = $condition['shop_id'];
|
|
|
}
|
|
|
// 转义分类
|
...
|
...
|
@@ -287,6 +288,11 @@ class SearchController extends AbstractAction |
|
|
$condition['query'] = rawurldecode($condition['query']);
|
|
|
}
|
|
|
|
|
|
// 转义奥莱
|
|
|
if (isset($condition['outlets'])) {
|
|
|
$condition['outlets'] = rawurldecode($condition['outlets']);
|
|
|
}
|
|
|
|
|
|
// 转换排序方式
|
|
|
$type = $this->get('type', '');
|
|
|
$order = $this->get('order', 0);
|
...
|
...
|
@@ -322,6 +328,13 @@ class SearchController extends AbstractAction |
|
|
$data = Product\SearchModel::getSearchData($condition, $showTag, $tagNew, $tagSale);
|
|
|
} while (false);
|
|
|
|
|
|
//奥莱商品过滤新品标签
|
|
|
if (isset($condition['outlets']) && $condition['outlets'] === '1') {
|
|
|
foreach ($data['new'] as $outletskey => $outletsval) {
|
|
|
unset($data['new'][$outletskey]['tags']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (empty($data['new'])) {
|
|
|
echo ' ';
|
|
|
} else {
|
...
|
...
|
|