modify search brand no data
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -153,6 +153,9 @@ class SearchController extends AbstractAction | @@ -153,6 +153,9 @@ class SearchController extends AbstractAction | ||
153 | // 右下角的购物车链接 | 153 | // 右下角的购物车链接 |
154 | $data['goodList']['cartUrl'] = Helpers::url('/cart/index/index', null); | 154 | $data['goodList']['cartUrl'] = Helpers::url('/cart/index/index', null); |
155 | 155 | ||
156 | + // 显示底部悬浮下载 | ||
157 | + $data['showDownloadApp'] = true; | ||
158 | + | ||
156 | // // 查询数据 | 159 | // // 查询数据 |
157 | // if (!isset($condition['query'])) { | 160 | // if (!isset($condition['query'])) { |
158 | // $data['goodList'] += Product\ListModel::getClassData($condition); | 161 | // $data['goodList'] += Product\ListModel::getClassData($condition); |
@@ -221,6 +224,9 @@ class SearchController extends AbstractAction | @@ -221,6 +224,9 @@ class SearchController extends AbstractAction | ||
221 | $order = $this->get('order', 0); | 224 | $order = $this->get('order', 0); |
222 | $condition['order'] = Helpers::transOrder($order, $type); | 225 | $condition['order'] = Helpers::transOrder($order, $type); |
223 | 226 | ||
227 | + // 过滤掉值为空的条件 | ||
228 | + $condition = array_filter($condition); | ||
229 | + | ||
224 | // /* 模糊搜索关键词 */ | 230 | // /* 模糊搜索关键词 */ |
225 | // if (isset($condition['query'])) { | 231 | // if (isset($condition['query'])) { |
226 | // $data = Product\SearchModel::getSearchData($condition); | 232 | // $data = Product\SearchModel::getSearchData($condition); |
-
Please register or login to post a comment