|
@@ -350,6 +350,14 @@ class HelperSearch |
|
@@ -350,6 +350,14 @@ class HelperSearch |
350
|
);
|
350
|
);
|
351
|
$sortList = array();
|
351
|
$sortList = array();
|
352
|
|
352
|
|
|
|
353
|
+ //specialsale_id参数加上
|
|
|
354
|
+ $specialsaleParam = array();
|
|
|
355
|
+ if (self::$options['controller'] == 'Sale') {
|
|
|
356
|
+ $specialsaleParam = array(
|
|
|
357
|
+ 'specialsale_id' => isset(self::$params['specialsale_id']) ? self::$params['specialsale_id'] : ''
|
|
|
358
|
+ );
|
|
|
359
|
+ }
|
|
|
360
|
+
|
353
|
foreach ($sort as $key => $val) {
|
361
|
foreach ($sort as $key => $val) {
|
354
|
//是否有品牌
|
362
|
//是否有品牌
|
355
|
if ($options['action'] != 'brand' && $options['controller'] != 'Index') {
|
363
|
if ($options['action'] != 'brand' && $options['controller'] != 'Index') {
|
|
@@ -379,13 +387,13 @@ class HelperSearch |
|
@@ -379,13 +387,13 @@ class HelperSearch |
379
|
$sortList[$key]['name'] = $val['sort_name'];
|
387
|
$sortList[$key]['name'] = $val['sort_name'];
|
380
|
$sortList[$key]['active'] = isset(self::$params['msort']) && self::$params['msort'] == $val['sort_id'] ? true : false;
|
388
|
$sortList[$key]['active'] = isset(self::$params['msort']) && self::$params['msort'] == $val['sort_id'] ? true : false;
|
381
|
$sortList[$key]['childList'][] = array(
|
389
|
$sortList[$key]['childList'][] = array(
|
382
|
- 'name' => '全部分类',
|
390
|
+ 'name' => '全部'.$val['sort_name'],
|
383
|
'href' => self::buildUrl(array_merge($gender, array('msort'=>$val['sort_id'])))
|
391
|
'href' => self::buildUrl(array_merge($gender, array('msort'=>$val['sort_id'])))
|
384
|
);
|
392
|
);
|
385
|
if (isset($val['sub']) && !empty($val['sub'])) {
|
393
|
if (isset($val['sub']) && !empty($val['sub'])) {
|
386
|
foreach ($val['sub'] as $k => $v) {
|
394
|
foreach ($val['sub'] as $k => $v) {
|
387
|
$sortList[$key]['childList'][$k+1]['name'] = $v['sort_name'];
|
395
|
$sortList[$key]['childList'][$k+1]['name'] = $v['sort_name'];
|
388
|
- $sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id'])));
|
396
|
+ $sortList[$key]['childList'][$k+1]['href'] = self::buildUrl(array_merge($gender, array('msort' => $val['sort_id'], 'misort' => $v['sort_id']), $specialsaleParam));
|
389
|
$sortList[$key]['childList'][$k+1]['childActive'] = isset(self::$params['misort']) && self::$params['misort'] == $v['sort_id'] ? true : false;
|
397
|
$sortList[$key]['childList'][$k+1]['childActive'] = isset(self::$params['misort']) && self::$params['misort'] == $v['sort_id'] ? true : false;
|
390
|
}
|
398
|
}
|
391
|
}
|
399
|
}
|
|
@@ -1091,6 +1099,7 @@ class HelperSearch |
|
@@ -1091,6 +1099,7 @@ class HelperSearch |
1091
|
public static function current()
|
1099
|
public static function current()
|
1092
|
{
|
1100
|
{
|
1093
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
1101
|
$url = explode('?', 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
|
|
1102
|
+ print_r($url[0]);
|
1094
|
return $url[0];
|
1103
|
return $url[0];
|
1095
|
}
|
1104
|
}
|
1096
|
/**
|
1105
|
/**
|