Authored by yangyang

修改小bug

... ... @@ -33,7 +33,7 @@ class HelperSearch
$options = self::$options;
$cookieChannel = isset($_COOKIE['_Channel']) ? $_COOKIE['_Channel'] : 'boys';
if (isset($options['brandName']) && !empty($options['brandName'])) {
$initNav = $options['brandName'];
$initNav = $options['brandNameEn'] . $options['brandNameCn'];
}else{
$initNav = '列表';
}
... ...
... ... @@ -28,6 +28,8 @@ class IndexController extends WebAction
$brandId = $brandInfo['data']['id'];
$node = isset($brandInfo['data']['static_content_code']) ? $brandInfo['data']['static_content_code'] : false;
$brandBanner = $brandInfo['data']['brand_banner'];
$brandNameEn = $brandInfo['data']['brand_name_en'];
$brandNameCn = $brandInfo['data']['brand_name_cn'];
} else {
$this->go(SITE_MAIN);
}
... ... @@ -47,6 +49,8 @@ class IndexController extends WebAction
$options['brandId'] = $brandId;
$options['node'] = $node;
$options['brandBanner'] = $brandBanner;
$options['brandNameEn'] = $brandNameEn;
$options['brandNameCn'] = $brandNameCn;
$options['reviewNum'] = 6;
//调用模型获得数据
... ...
... ... @@ -29,7 +29,8 @@ class ListController extends WebAction
/**
* list列表new(模板new-sale)
*/
public function newAction(){
public function newAction()
{
$condition = array(
'order' => 's_t_desc'
);
... ... @@ -113,7 +114,7 @@ class ListController extends WebAction
* @author
* @return json
*/
public static function changeFavoriteAction()
public function changeFavoriteAction()
{
if (!$this->isAjax()) {
return;
... ...
... ... @@ -46,6 +46,7 @@ class SaleController extends WebAction
);
$saleData = Product\SaleModel::getSaleSearchData($condition, $options, $specialInfo);
$data = array(
//初始化js
'productListPage' => true,
... ...