...
|
...
|
@@ -27,6 +27,8 @@ class HelperSearch |
|
|
public static $selected = array();
|
|
|
//list分类面包屑
|
|
|
public static $listNav = array();
|
|
|
//
|
|
|
public static $specialsaleParam = array();
|
|
|
//设置导航
|
|
|
private static function setListNav()
|
|
|
{
|
...
|
...
|
@@ -350,10 +352,9 @@ class HelperSearch |
|
|
);
|
|
|
$sortList = array();
|
|
|
|
|
|
//specialsale_id参数加上
|
|
|
$specialsaleParam = array();
|
|
|
//加上specialsale_id参数
|
|
|
if (self::$options['controller'] == 'Sale') {
|
|
|
$specialsaleParam = array(
|
|
|
self::$specialsaleParam = array(
|
|
|
'specialsale_id' => isset(self::$params['specialsale_id']) ? self::$params['specialsale_id'] : ''
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -393,7 +394,7 @@ class HelperSearch |
|
|
if (isset($val['sub']) && !empty($val['sub'])) {
|
|
|
foreach ($val['sub'] as $k => $v) {
|
|
|
$sortList[$key]['childList'][$k+1]['name'] = $v['sort_name'];
|
|
|
$sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id']), $specialsaleParam));
|
|
|
$sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id']), self::$specialsaleParam));
|
|
|
$sortList[$key]['childList'][$k+1]['childActive'] = isset(self::$params['misort']) && self::$params['misort'] == $v['sort_id'] ? true : false;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1045,6 +1046,7 @@ class HelperSearch |
|
|
if ($data) {
|
|
|
$result['conditions'] = $data;
|
|
|
$result['clearUrl'] = self::current();
|
|
|
|
|
|
}
|
|
|
return $result;
|
|
|
}
|
...
|
...
|
@@ -1109,6 +1111,9 @@ class HelperSearch |
|
|
public static function current()
|
|
|
{
|
|
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
|
|
if (!empty(self::$specialsaleParam)) {
|
|
|
$url[0] .= '?' . http_build_query(self::$specialsaleParam);
|
|
|
}
|
|
|
return $url[0];
|
|
|
}
|
|
|
/**
|
...
|
...
|
|