Authored by 郝肖肖

Merge branch 'release/4.4' of http://git.dev.yoho.cn/web/yohobuy

@@ -426,7 +426,10 @@ class ShopModel @@ -426,7 +426,10 @@ class ShopModel
426 } 426 }
427 } 427 }
428 428
429 - return $result; 429 + return array(
  430 + 'title' => empty($result[0]['title']) ? '' : $result[0]['title'],
  431 + 'list'=> $result
  432 + );
430 } 433 }
431 434
432 /** 435 /**
@@ -571,13 +574,8 @@ class ShopModel @@ -571,13 +574,8 @@ class ShopModel
571 $list = self::$fun(self::getResourceData($list), $parameters); 574 $list = self::$fun(self::getResourceData($list), $parameters);
572 switch ($fun) { 575 switch ($fun) {
573 case 'shopTopBanner': 576 case 'shopTopBanner':
574 - $data[$fun] = $list;  
575 - break;  
576 case 'signboard': 577 case 'signboard':
577 - $data[$fun] = array(  
578 - 'title' => isset($list[0]['title']) ? $list[0]['title'] : '',  
579 - 'list'=> $list  
580 - ); 578 + $data[$fun] = $list;
581 break; 579 break;
582 } 580 }
583 } 581 }
@@ -95,7 +95,7 @@ class IndexController extends WebAction @@ -95,7 +95,7 @@ class IndexController extends WebAction
95 95
96 //调用模型获得品牌页数据 96 //调用模型获得品牌页数据
97 $data = BrandsModel::getBrandSearchData($condition, $options); 97 $data = BrandsModel::getBrandSearchData($condition, $options);
98 - 98 + $data['signboard'] = isset($result['signboard']) ? $result['signboard'] : '';//水牌
99 //统计前三个商品 99 //统计前三个商品
100 $skn=array(); 100 $skn=array();
101 $arr=array(); 101 $arr=array();