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 @@ -98,6 +98,21 @@ class Bootstrap extends Bootstrap_Abstract
98 $module = 'Product'; 98 $module = 'Product';
99 $controller = 'Item'; 99 $controller = 'Item';
100 break; 100 break;
  101 + case 'specialsale1':
  102 + $module = 'Product';
  103 + $controller = 'Sale';
  104 + $dispatcher->getRequest()->setParam('specialsaleId', 1);
  105 + break;
  106 + case 'specialsale2':
  107 + $module = 'Product';
  108 + $controller = 'Sale';
  109 + $dispatcher->getRequest()->setParam('specialsaleId', 2);
  110 + break;
  111 + case 'specialsale3':
  112 + $module = 'Product';
  113 + $controller = 'Sale';
  114 + $dispatcher->getRequest()->setParam('specialsaleId', 3);
  115 + break;
101 default: // 其它(识别为品牌) 116 default: // 其它(识别为品牌)
102 $module = 'Product'; 117 $module = 'Product';
103 $action = 'Brand'; 118 $action = 'Brand';
@@ -15,6 +15,9 @@ class SaleController extends WebAction @@ -15,6 +15,9 @@ class SaleController extends WebAction
15 { 15 {
16 //获取专区ID 16 //获取专区ID
17 $specialsaleId = $this->get('specialsale_id'); 17 $specialsaleId = $this->get('specialsale_id');
  18 + if (empty($specialsaleId)) {
  19 + $specialsaleId = $this->param('specialsaleId');
  20 + }
18 21
19 //获取促销ID 22 //获取促销ID
20 $promotion = $this->get('promotion'); 23 $promotion = $this->get('promotion');