Authored by hf

code review by fei.hong: do merge new sale list and search codes

... ... @@ -98,6 +98,21 @@ class Bootstrap extends Bootstrap_Abstract
$module = 'Product';
$controller = 'Item';
break;
case 'specialsale1':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 1);
break;
case 'specialsale2':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 2);
break;
case 'specialsale3':
$module = 'Product';
$controller = 'Sale';
$dispatcher->getRequest()->setParam('specialsaleId', 3);
break;
default: // 其它(识别为品牌)
$module = 'Product';
$action = 'Brand';
... ...
... ... @@ -15,6 +15,9 @@ class SaleController extends WebAction
{
//获取专区ID
$specialsaleId = $this->get('specialsale_id');
if (empty($specialsaleId)) {
$specialsaleId = $this->param('specialsaleId');
}
//获取促销ID
$promotion = $this->get('promotion');
... ...