|
@@ -27,6 +27,8 @@ class HelperSearch |
|
@@ -27,6 +27,8 @@ class HelperSearch |
27
|
public static $selected = array();
|
27
|
public static $selected = array();
|
28
|
//list分类面包屑
|
28
|
//list分类面包屑
|
29
|
public static $listNav = array();
|
29
|
public static $listNav = array();
|
|
|
30
|
+ //
|
|
|
31
|
+ public static $specialsaleParam = array();
|
30
|
//设置导航
|
32
|
//设置导航
|
31
|
private static function setListNav()
|
33
|
private static function setListNav()
|
32
|
{
|
34
|
{
|
|
@@ -350,10 +352,9 @@ class HelperSearch |
|
@@ -350,10 +352,9 @@ class HelperSearch |
350
|
);
|
352
|
);
|
351
|
$sortList = array();
|
353
|
$sortList = array();
|
352
|
|
354
|
|
353
|
- //specialsale_id参数加上
|
|
|
354
|
- $specialsaleParam = array();
|
355
|
+ //加上specialsale_id参数
|
355
|
if (self::$options['controller'] == 'Sale') {
|
356
|
if (self::$options['controller'] == 'Sale') {
|
356
|
- $specialsaleParam = array(
|
357
|
+ self::$specialsaleParam = array(
|
357
|
'specialsale_id' => isset(self::$params['specialsale_id']) ? self::$params['specialsale_id'] : ''
|
358
|
'specialsale_id' => isset(self::$params['specialsale_id']) ? self::$params['specialsale_id'] : ''
|
358
|
);
|
359
|
);
|
359
|
}
|
360
|
}
|
|
@@ -393,7 +394,7 @@ class HelperSearch |
|
@@ -393,7 +394,7 @@ class HelperSearch |
393
|
if (isset($val['sub']) && !empty($val['sub'])) {
|
394
|
if (isset($val['sub']) && !empty($val['sub'])) {
|
394
|
foreach ($val['sub'] as $k => $v) {
|
395
|
foreach ($val['sub'] as $k => $v) {
|
395
|
$sortList[$key]['childList'][$k+1]['name'] = $v['sort_name'];
|
396
|
$sortList[$key]['childList'][$k+1]['name'] = $v['sort_name'];
|
396
|
- $sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id']), $specialsaleParam));
|
397
|
+ $sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id']), self::$specialsaleParam));
|
397
|
$sortList[$key]['childList'][$k+1]['childActive'] = isset(self::$params['misort']) && self::$params['misort'] == $v['sort_id'] ? true : false;
|
398
|
$sortList[$key]['childList'][$k+1]['childActive'] = isset(self::$params['misort']) && self::$params['misort'] == $v['sort_id'] ? true : false;
|
398
|
}
|
399
|
}
|
399
|
}
|
400
|
}
|
|
@@ -1045,6 +1046,7 @@ class HelperSearch |
|
@@ -1045,6 +1046,7 @@ class HelperSearch |
1045
|
if ($data) {
|
1046
|
if ($data) {
|
1046
|
$result['conditions'] = $data;
|
1047
|
$result['conditions'] = $data;
|
1047
|
$result['clearUrl'] = self::current();
|
1048
|
$result['clearUrl'] = self::current();
|
|
|
1049
|
+
|
1048
|
}
|
1050
|
}
|
1049
|
return $result;
|
1051
|
return $result;
|
1050
|
}
|
1052
|
}
|
|
@@ -1109,6 +1111,9 @@ class HelperSearch |
|
@@ -1109,6 +1111,9 @@ class HelperSearch |
1109
|
public static function current()
|
1111
|
public static function current()
|
1110
|
{
|
1112
|
{
|
1111
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
1113
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
|
|
1114
|
+ if (!empty(self::$specialsaleParam)) {
|
|
|
1115
|
+ $url[0] .= '?' . http_build_query(self::$specialsaleParam);
|
|
|
1116
|
+ }
|
1112
|
return $url[0];
|
1117
|
return $url[0];
|
1113
|
}
|
1118
|
}
|
1114
|
/**
|
1119
|
/**
|