Authored by yangyang

修改分类点击后不显示问题

@@ -71,7 +71,7 @@ class Bootstrap extends Bootstrap_Abstract @@ -71,7 +71,7 @@ class Bootstrap extends Bootstrap_Abstract
71 $controller = 'Index'; 71 $controller = 'Index';
72 $action = 'Index'; 72 $action = 'Index';
73 // 二级域名 73 // 二级域名
74 - if (2 === $level) { 74 + if (3 === $level) {
75 $subDomain = strval($hostParts[0]); 75 $subDomain = strval($hostParts[0]);
76 switch (strtolower($subDomain)) { 76 switch (strtolower($subDomain)) {
77 case 'www': // 主站 77 case 'www': // 主站
@@ -80,7 +80,7 @@ class BrandsModel @@ -80,7 +80,7 @@ class BrandsModel
80 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']); 80 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']);
81 81
82 // 组合搜索分类url 82 // 组合搜索分类url
83 - $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); 83 + $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['sortCondition']);
84 84
85 //组合搜索品牌url 85 //组合搜索品牌url
86 $urlList['brand'] = HelperSearch::getBrandUrl($customOptions); 86 $urlList['brand'] = HelperSearch::getBrandUrl($customOptions);
@@ -18,12 +18,11 @@ class IndexModel @@ -18,12 +18,11 @@ class IndexModel
18 { 18 {
19 $urlList = array(); 19 $urlList = array();
20 $searchCondition = SearchModel::searchCondition($customCondition, $customOptions); 20 $searchCondition = SearchModel::searchCondition($customCondition, $customOptions);
21 -  
22 // 组合搜索商品url 21 // 组合搜索商品url
23 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']); 22 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']);
24 23
25 // 组合搜索分类url 24 // 组合搜索分类url
26 - $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); 25 + $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['sortCondition']);
27 26
28 //用户浏览记录 27 //用户浏览记录
29 //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']); 28 //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']);
@@ -20,7 +20,7 @@ class NewModel @@ -20,7 +20,7 @@ class NewModel
20 // 组合搜索商品url 20 // 组合搜索商品url
21 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']); 21 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']);
22 // 组合搜索分类url 22 // 组合搜索分类url
23 - $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); 23 + $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['sortCondition']);
24 // 组合搜索最新上架url 24 // 组合搜索最新上架url
25 $urlList['recent'] = HelperSearch::getRecentShelveUrl($searchCondition['condition']); 25 $urlList['recent'] = HelperSearch::getRecentShelveUrl($searchCondition['condition']);
26 //用户浏览记录 26 //用户浏览记录
@@ -23,7 +23,7 @@ class SaleModel @@ -23,7 +23,7 @@ class SaleModel
23 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']); 23 $urlList['product'] = HelperSearch::getProductUrl($searchCondition['condition']);
24 24
25 // 组合搜索分类url 25 // 组合搜索分类url
26 - $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['condition']); 26 + $urlList['sort'] = HelperSearch::getClassesUrl($searchCondition['sortCondition']);
27 27
28 //组合用户浏览记录url 28 //组合用户浏览记录url
29 //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']); 29 //$urlList['reviewUrl'] = HelperSearch::getReviewUrl($searchCondition['condition']);