...
|
...
|
@@ -31,7 +31,7 @@ class SearchController extends WebAction |
|
|
$condition[$key] = rawurldecode($val);
|
|
|
}
|
|
|
//关键词
|
|
|
$condition['query'] = 'vans';
|
|
|
$condition['query'] = '鞋';
|
|
|
//性別(频道)
|
|
|
$gender_cookie = !isset($_COOKIE['_Gender']) ? '3' : ($_COOKIE['_Gender']=='2,3' ? 2 : 1);
|
|
|
$gender = $this->get('gender') ? ($this->get('gender') == '2,3' ? 2 : 1) : $gender_cookie ;
|
...
|
...
|
@@ -56,6 +56,18 @@ class SearchController extends WebAction |
|
|
$imgSize = array(235, 314);
|
|
|
$minImgSize = array(60, 80);
|
|
|
}
|
|
|
//自定义搜索价格
|
|
|
if (isset($condition['price']) || !empty($condition['price'])) {
|
|
|
$price = explode(',', $condition['price']);
|
|
|
if (!$price[0]) {
|
|
|
$price[0] = 0;
|
|
|
}
|
|
|
if ($price[1]) {
|
|
|
$price[1] = 99999;
|
|
|
}
|
|
|
$condition['price'] = implode(',', $price);
|
|
|
}
|
|
|
|
|
|
//返回搜索条件
|
|
|
$condition['needFilter'] = 1;
|
|
|
//过滤赠品
|
...
|
...
|
@@ -78,7 +90,7 @@ class SearchController extends WebAction |
|
|
$params = array_filter($params);
|
|
|
//每页记录数减1,下一页占位
|
|
|
$params['viewNum'] = $params['viewNum'] - 1;
|
|
|
$searchData = SearchModel::getSearchData($params,$options);
|
|
|
$searchData = SearchModel::searchData($params,$options);
|
|
|
$cate = array('boys','girls','kids','lifestyle');
|
|
|
$this->setWebNavHeader($cate[$gender-1]);
|
|
|
$data = array(
|
...
|
...
|
|