Authored by Rock Zhang

修复男首进入侧边导航栏,点击sale专区,没有进入全部的sale页面的bug

Code Review By Rock Zhang
... ... @@ -37,6 +37,7 @@ class NewsaleModel
/**
* 获取新品到着的焦点图资源数据
*
* @param int $channel
* @return array
*/
public static function getNewFocus($channel)
... ... @@ -65,6 +66,7 @@ class NewsaleModel
/**
* 获取折扣专区的焦点图资源数据
*
* @param int $channel
* @return array
*/
public static function getSaleFocus($channel)
... ... @@ -164,8 +166,8 @@ class NewsaleModel
/**
* 顶部焦点图缓存控制
* @param const $cacheKey 缓存常量值
* @param const $codeKey 顶部焦点图位置码
* @param string $cacheKey 缓存常量值
* @param string $codeKey 顶部焦点图位置码
* @return array 焦点图数据
*/
private static function cacheControl($cacheKey, $codeKey)
... ...
... ... @@ -51,6 +51,7 @@ class NewsaleController extends AbstractAction
$this->setNavHeader('Sale');
$channel = Helpers::getChannelByCookie();
$gender = $this->get('gender', '1,2,3');
// 设置一些默认参数
$data = array(
'discountPage' => true,
... ... @@ -59,7 +60,7 @@ class NewsaleController extends AbstractAction
'pageFooter' => true,
'brand' => '0',
'sort' => '0',
'gender' => Helpers::getGenderByCookie(),
'gender' => $gender,
'price' => '0',
'size' => '0',
'discount' => '0.1,0.9',
... ...