...
|
...
|
@@ -444,7 +444,7 @@ class HelperSearch |
|
|
//设置选中
|
|
|
if (isset(self::$params['brand']) && !empty(self::$params['brand'])) {
|
|
|
self::$selected['brand'] = array(
|
|
|
'name' => rtrim($existName, '、'),
|
|
|
'name' => str_replace('、', '', $existName),
|
|
|
'href' => self::buildUrl($params)
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -476,9 +476,8 @@ class HelperSearch |
|
|
return array();
|
|
|
}
|
|
|
//品牌数量小于等于10,隐藏更多按钮
|
|
|
if (count($result['brandsShow']) < 11) {
|
|
|
$result['hideMore'] = true;
|
|
|
}
|
|
|
$result['showMulti'] = count($result['brandsShow']) > 1 ? true :false;
|
|
|
$result['showMore'] = count($result['brandsShow']) > 10 ? true :false;
|
|
|
return $result;
|
|
|
}
|
|
|
/**
|
...
|
...
|
@@ -976,6 +975,7 @@ class HelperSearch |
|
|
$result['conditions'] = $data;
|
|
|
$result['clearUrl'] = self::current();
|
|
|
}
|
|
|
// print_r($result); exit;
|
|
|
return $result;
|
|
|
}
|
|
|
|
...
|
...
|
|