Authored by 郭成尧

'添加奥莱筛选参数'

@@ -198,16 +198,17 @@ class SearchController extends AbstractAction @@ -198,16 +198,17 @@ class SearchController extends AbstractAction
198 $listData = array(); 198 $listData = array();
199 } 199 }
200 200
201 - if(isset($condition['title'])){ 201 + if (isset($condition['title'])) {
202 $this->setTitle($condition['title']); 202 $this->setTitle($condition['title']);
203 $this->setNavHeader($condition['title'], true, SITE_MAIN); 203 $this->setNavHeader($condition['title'], true, SITE_MAIN);
204 } 204 }
205 //奥莱商品过滤新品标签 205 //奥莱商品过滤新品标签
206 - if(isset($condition['outlets']) && $condition['outlets'] === '1'){  
207 - foreach($data['goodList']['new'] as $outletskey => $outletsval){  
208 - $data['goodList']['new'][$outletskey]['tags']['is_new'] = false; 206 + if (isset($condition['outlets']) && $condition['outlets'] === '1') {
  207 + foreach ($data['goodList']['new'] as $outletskey => $outletsval) {
  208 + unset($data['goodList']['new'][$outletskey]['tags']);
209 } 209 }
210 } 210 }
  211 + \Plugin\DataProcess\CouponFloorProcess::debugOut($data);
211 $this->_view->display('list', $data); 212 $this->_view->display('list', $data);
212 } 213 }
213 214
@@ -241,9 +242,10 @@ class SearchController extends AbstractAction @@ -241,9 +242,10 @@ class SearchController extends AbstractAction
241 'discount' => FILTER_DEFAULT, 242 'discount' => FILTER_DEFAULT,
242 'gender' => FILTER_DEFAULT, 243 'gender' => FILTER_DEFAULT,
243 'p_d' => FILTER_DEFAULT, 244 'p_d' => FILTER_DEFAULT,
  245 + 'outlets' => FILTER_DEFAULT,
244 'page' => FILTER_VALIDATE_INT,), false); 246 'page' => FILTER_VALIDATE_INT,), false);
245 247
246 - if(!empty($condition['shop_id'])){ 248 + if (!empty($condition['shop_id'])) {
247 $condition['shop'] = $condition['shop_id']; 249 $condition['shop'] = $condition['shop_id'];
248 } 250 }
249 // 转义分类 251 // 转义分类
@@ -327,7 +329,12 @@ class SearchController extends AbstractAction @@ -327,7 +329,12 @@ class SearchController extends AbstractAction
327 329
328 $data = Product\SearchModel::getSearchData($condition, $showTag, $tagNew, $tagSale); 330 $data = Product\SearchModel::getSearchData($condition, $showTag, $tagNew, $tagSale);
329 } while (false); 331 } while (false);
330 - 332 + //奥莱商品过滤新品标签
  333 + if (isset($condition['outlets']) && $condition['outlets'] === '1') {
  334 + foreach ($data['goodList']['new'] as $outletskey => $outletsval) {
  335 + unset($data['goodList']['new'][$outletskey]['tags']);
  336 + }
  337 + }
331 if (empty($data['new'])) { 338 if (empty($data['new'])) {
332 echo ' '; 339 echo ' ';
333 } else { 340 } else {