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