Authored by Rock Zhang

去除折扣专区多月的dayLimit参数“

... ... @@ -71,7 +71,6 @@ class NewsaleController extends AbstractAction
'gender' => $this->getCookie('_Channel', 'boys'),
'price' => 0,
'size' => 0,
'dayLimit' => 1,
'discount' => '0.1,0.9'
);
... ... @@ -112,6 +111,22 @@ class NewsaleController extends AbstractAction
$gender = '1,2,3';
}
// 转换排序方式
$order = $this->get('order', null);
$type = $this->get('type', '');
switch ($type) {
case 'price':
$order = ($order == 0) ? 's_p_desc' : 's_p_asc';
break;
case 'discount':
$order = ($order == 0) ? 'p_d_desc' : 'p_d_asc';
break;
case 'newest':
default:
$order = ($order == 0) ? 's_t_desc' : 's_t_asc';
break;
}
// 转换频道
$this->channelTrans($channel);
... ...