Authored by yangyang

品牌页分类不根据筛选条件改变

@@ -135,12 +135,14 @@ class BrandsModel @@ -135,12 +135,14 @@ class BrandsModel
135 135
136 //获取$condition和$option 筛选条件和排序条件 136 //获取$condition和$option 筛选条件和排序条件
137 $searchCondition = SearchModel::searchCondition($customCondition, $customOptions); 137 $searchCondition = SearchModel::searchCondition($customCondition, $customOptions);
138 -  
139 // 组合搜索商品url 138 // 组合搜索商品url
140 $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); 139 $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']);
141 140
142 // 组合搜索分类url 141 // 组合搜索分类url
143 - $urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); 142 + $brandSort = array(
  143 + 'brand' => $searchCondition['sortCondition']['brand']
  144 + );
  145 + $urlList['sort'] = SearchData::getClassesUrl($brandSort);
144 146
145 //组合搜索品牌url 147 //组合搜索品牌url
146 $urlList['brand'] = SearchData::getBrandUrl($customOptions); 148 $urlList['brand'] = SearchData::getBrandUrl($customOptions);