...
|
...
|
@@ -5,13 +5,13 @@ class ListController extends WebAction |
|
|
{
|
|
|
public function indexAction()
|
|
|
{
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public function newAction(){
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* list列表sale
|
|
|
*/
|
...
|
...
|
@@ -48,11 +48,11 @@ class ListController extends WebAction |
|
|
$condition['gender'] = $gender;
|
|
|
//每页显示商品数
|
|
|
if(!isset($condition['viewNum']) || empty($condition['viewNum'])){
|
|
|
$condition['viewNum'] =60;
|
|
|
$condition['viewNum'] =59;
|
|
|
}
|
|
|
$view_num_arr = array(60, 100, 200);
|
|
|
if (!in_array($condition['viewNum'], $view_num_arr)) {
|
|
|
$condition['viewNum'] = 60;
|
|
|
$condition['viewNum'] = 59;
|
|
|
}
|
|
|
//每行显示的商品数量
|
|
|
if(!isset($condition['rowNum']) || empty($condition['rowNum'])){
|
...
|
...
|
@@ -70,14 +70,25 @@ class ListController extends WebAction |
|
|
//$query = $this->get('query');
|
|
|
//返回搜索条件
|
|
|
$condition['needFilter'] = 1;
|
|
|
//过滤赠品
|
|
|
$condition['attribute_not'] = 2;
|
|
|
/*sale*/
|
|
|
//默认排序
|
|
|
if (!isset($condition['order']) || empty($condition['order'])) {
|
|
|
$condition['order'] = 's_n_desc';
|
|
|
}
|
|
|
if (!isset($condition['p_d']) || empty($condition['p_d'])) {
|
|
|
$condition['p_d'] = '0,0.9';
|
|
|
}
|
|
|
$options = array(
|
|
|
'imgSize' => $imgSize,
|
|
|
'minImgSize' => $minImgSize,
|
|
|
'gender' => $gender,
|
|
|
'needPd' => 'Y',
|
|
|
'rowNum' =>$condition['rowNum'],
|
|
|
'viewNum' =>$condition['viewNum'],
|
|
|
'viewNum' =>$condition['viewNum']-1,
|
|
|
);
|
|
|
|
|
|
$params = $condition + $_GET;
|
|
|
$params = array_filter($params);
|
|
|
$data = SearchModel::getSearchData($params,$options);
|
...
|
...
|
|