...
|
...
|
@@ -30,7 +30,6 @@ class SearchController extends AbstractAction |
|
|
/**
|
|
|
* 搜索列表页
|
|
|
*
|
|
|
* tar mark
|
|
|
*/
|
|
|
public function listAction()
|
|
|
{
|
...
|
...
|
@@ -202,12 +201,7 @@ class SearchController extends AbstractAction |
|
|
$this->setTitle($condition['title']);
|
|
|
$this->setNavHeader($condition['title'], true, SITE_MAIN);
|
|
|
}
|
|
|
//奥莱商品过滤新品标签
|
|
|
if (isset($condition['outlets']) && $condition['outlets'] === '1') {
|
|
|
foreach ($data['goodList']['new'] as $outletskey => $outletsval) {
|
|
|
unset($data['goodList']['new'][$outletskey]['tags']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$this->_view->display('list', $data);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -294,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);
|
...
|
...
|
@@ -328,12 +327,14 @@ class SearchController extends AbstractAction |
|
|
|
|
|
$data = Product\SearchModel::getSearchData($condition, $showTag, $tagNew, $tagSale);
|
|
|
} while (false);
|
|
|
|
|
|
//奥莱商品过滤新品标签
|
|
|
if (isset($condition['outlets']) && $condition['outlets'] === '1') {
|
|
|
foreach ($data['goodList']['new'] as $outletskey => $outletsval) {
|
|
|
unset($data['goodList']['new'][$outletskey]['tags']);
|
|
|
foreach ($data['new'] as $outletskey => $outletsval) {
|
|
|
unset($data['new'][$outletskey]['tags']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (empty($data['new'])) {
|
|
|
echo ' ';
|
|
|
} else {
|
...
|
...
|
|