Showing
1 changed file
with
12 additions
and
3 deletions
@@ -112,8 +112,6 @@ class HelperSearch | @@ -112,8 +112,6 @@ class HelperSearch | ||
112 | $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array(); | 112 | $result['leftContent'][]['allSort'] = isset($data['sort']) ? self::groupSort($data['sort']['sort']) : array(); |
113 | //一周新品上架 | 113 | //一周新品上架 |
114 | $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array(); | 114 | $result['leftContent'][]['newSales'] = isset($data['recent']) ? self::recentShelve($data['recent']['recent']) : array(); |
115 | - //全部折扣 | ||
116 | - $result['leftContent'][]['allDiscount'] = isset($data['discount']) ? self::getDiscount($data['discount']['discount']) : array(); | ||
117 | //品牌banner | 115 | //品牌banner |
118 | $result['brandBanner'] = isset($data['banner']) && isset($data['brand']) ? self::getBannerFormat($data['banner'],$data['brand']) : array(); | 116 | $result['brandBanner'] = isset($data['banner']) && isset($data['brand']) ? self::getBannerFormat($data['banner'],$data['brand']) : array(); |
119 | //总记录数 | 117 | //总记录数 |
@@ -558,7 +556,12 @@ class HelperSearch | @@ -558,7 +556,12 @@ class HelperSearch | ||
558 | }else{ | 556 | }else{ |
559 | $price = explode(',', $priceId); | 557 | $price = explode(',', $priceId); |
560 | if (count($price) == 2) { | 558 | if (count($price) == 2) { |
561 | - | 559 | + if (!$price[0]) { |
560 | + $price[0] = 0; | ||
561 | + } | ||
562 | + if (!$price[1]) { | ||
563 | + $price[1] = 99999; | ||
564 | + } | ||
562 | self::$selected['price'] = array( | 565 | self::$selected['price'] = array( |
563 | 'name' => self::$params['price'] == '2000,99999' ? '¥2000以上' : '¥' . (int)$price[0] . '-' . (int)$price[1], | 566 | 'name' => self::$params['price'] == '2000,99999' ? '¥2000以上' : '¥' . (int)$price[0] . '-' . (int)$price[1], |
564 | 'href' => self::buildurl($params) | 567 | 'href' => self::buildurl($params) |
@@ -595,6 +598,12 @@ class HelperSearch | @@ -595,6 +598,12 @@ class HelperSearch | ||
595 | if (isset($params['price']) && !isset($filter['price'][$priceId]) ) { | 598 | if (isset($params['price']) && !isset($filter['price'][$priceId]) ) { |
596 | $price = explode(',', $params['price']); | 599 | $price = explode(',', $params['price']); |
597 | unset($params['price']); | 600 | unset($params['price']); |
601 | + if (!$price[0]) { | ||
602 | + $price[0] = 0; | ||
603 | + } | ||
604 | + if (!$price[1]) { | ||
605 | + $price[1] = 99999; | ||
606 | + } | ||
598 | $result = array( | 607 | $result = array( |
599 | 'min' => $price[0], | 608 | 'min' => $price[0], |
600 | 'max' => $price[1] | 609 | 'max' => $price[1] |
-
Please register or login to post a comment