Authored by 周少峰

全部折扣,商品分类顺序调整

@@ -102,15 +102,15 @@ class HelperSearch @@ -102,15 +102,15 @@ class HelperSearch
102 $result['opts']['pageCount'] = $data['product']['page_total']; 102 $result['opts']['pageCount'] = $data['product']['page_total'];
103 $result['opts']['nextHref'] = ($next = self::next($data['product']['page_total'],$data['product']['filter'])) ? $next['href'] : ''; 103 $result['opts']['nextHref'] = ($next = self::next($data['product']['page_total'],$data['product']['filter'])) ? $next['href'] : '';
104 $result['hasNextPage'] = self::next($data['product']['page_total']); 104 $result['hasNextPage'] = self::next($data['product']['page_total']);
  105 + //全部折扣
  106 + $result['leftContent'][]['allDiscount'] = isset($data['discount']) ? self::getDiscount($data['discount']['discount']) : array();
105 //分类条件 107 //分类条件
106 $result['filters']['sort'] = isset($data['sort']) ? self::searchSort($data['sort']['sort']) : array(); 108 $result['filters']['sort'] = isset($data['sort']) ? self::searchSort($data['sort']['sort']) : array();
107 //左侧分类分类 109 //左侧分类分类
108 $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array(); 110 $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array();
109 //一周新品上架 111 //一周新品上架
110 $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array(); 112 $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array();
111 - //全部折扣  
112 - $result['leftContent'][]['allDiscount'] = isset($data['discount']) ? self::getDiscount($data['discount']['discount']) : array();  
113 - //总记录数 113 + //总记录数
114 $result['totalCount'] = $data['product']['total']; 114 $result['totalCount'] = $data['product']['total'];
115 //品牌店铺信息 115 //品牌店铺信息
116 $result['shopEntry'] = isset($data['shop']) && !empty($data['shop']) ? self::shop($data['shop'], $data['sort']['sort']) : array(); 116 $result['shopEntry'] = isset($data['shop']) && !empty($data['shop']) ? self::shop($data['shop'], $data['sort']['sort']) : array();