...
|
...
|
@@ -291,7 +291,15 @@ class SearchController extends AbstractAction |
|
|
$type = $this->get('type', '');
|
|
|
$order = $this->get('order', 0);
|
|
|
$condition['order'] = Helpers::transOrder($order, $type);
|
|
|
|
|
|
//标签显示控制
|
|
|
$showTag = $this->get('showTag', 0);
|
|
|
$showTag = $showTag === 0 ? true : false;
|
|
|
//显示标签new
|
|
|
$tagNew = $this->get('newTag', 0);
|
|
|
$tagNew = $tagNew === 0 ? true : false;
|
|
|
//显示标签sale
|
|
|
$tagSale = $this->get('saleTag', 0);
|
|
|
$tagSale = $tagSale === 0 ? true : false;
|
|
|
// 过滤掉值为空的条件
|
|
|
$condition = array_filter($condition);
|
|
|
|
...
|
...
|
@@ -311,7 +319,7 @@ class SearchController extends AbstractAction |
|
|
// /* 精确搜索品类 */
|
|
|
// $data = Product\ListModel::getClassData($condition);
|
|
|
|
|
|
$data = Product\SearchModel::getSearchData($condition);
|
|
|
$data = Product\SearchModel::getSearchData($condition, $showTag, $tagNew, $tagSale);
|
|
|
} while (false);
|
|
|
|
|
|
if (empty($data['new'])) {
|
...
|
...
|
|