Showing
1 changed file
with
2 additions
and
0 deletions
@@ -200,6 +200,7 @@ class ShopModel | @@ -200,6 +200,7 @@ class ShopModel | ||
200 | 200 | ||
201 | $data['goods'] = $result['goods']; | 201 | $data['goods'] = $result['goods']; |
202 | $data['opts'] = $result['opts']; | 202 | $data['opts'] = $result['opts']; |
203 | + $data['totalCount'] = $result['totalCount'];//商品总数 | ||
203 | $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : ''; | 204 | $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : ''; |
204 | $data['filters'] = $result['filters']; | 205 | $data['filters'] = $result['filters']; |
205 | $data['pathNav'] = array_merge( | 206 | $data['pathNav'] = array_merge( |
@@ -227,6 +228,7 @@ class ShopModel | @@ -227,6 +228,7 @@ class ShopModel | ||
227 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); | 228 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); |
228 | // 组合搜索分类url | 229 | // 组合搜索分类url |
229 | $sortCondition = array(); | 230 | $sortCondition = array(); |
231 | + $sortCondition['brand'] = self::getShopsBrandIds($condition['shop']); | ||
230 | if (isset($searchCondition['condition']['misort']) && !empty($searchCondition['condition']['misort'])) { | 232 | if (isset($searchCondition['condition']['misort']) && !empty($searchCondition['condition']['misort'])) { |
231 | $sortCondition['needSmallSort'] = 1; | 233 | $sortCondition['needSmallSort'] = 1; |
232 | } | 234 | } |
-
Please register or login to post a comment