...
|
...
|
@@ -97,22 +97,27 @@ class HelperSearch |
|
|
//品牌banner
|
|
|
$result['brandBanner'] = isset($data['brand']) ? self::getBannerFormat($data['brand'], $options['brandBanner']) : array();
|
|
|
//总记录数
|
|
|
$result['totalCount'] = $data['product']['total'];
|
|
|
if (isset($data['product']['total'])) {
|
|
|
$result['totalCount'] = $data['product']['total'];
|
|
|
//设置搜索导航
|
|
|
if (isset($options['controller']) && $options['controller'] == 'Search') {
|
|
|
self::setSearchNav($data['product']['total']);
|
|
|
}
|
|
|
}
|
|
|
//品牌店铺信息
|
|
|
if (isset($data['shop']) && !empty($data['shop'])) {
|
|
|
$result['shopEntry'] = self::shop($data['shop'], $data['sort']['sort']);
|
|
|
}
|
|
|
//分页
|
|
|
$result['pager'] = self::pager($result['totalCount'],$options['viewNum']-1);
|
|
|
if (isset($result['totalCount'])) {
|
|
|
$result['pager'] = self::pager($result['totalCount'],$options['viewNum']-1);
|
|
|
}
|
|
|
//浏览记录
|
|
|
if (isset($options['reviewNum']) && !empty($options['reviewNum'])) {
|
|
|
$result['latestWalk'] = $options['reviewNum'];
|
|
|
}
|
|
|
//选中条件
|
|
|
$result['filters']['checkedConditions'] = self::getSelected();
|
|
|
if (isset($options['controller']) && $options['controller'] == 'Search') {
|
|
|
self::setSearchNav($data['product']['total']);
|
|
|
}
|
|
|
if (empty($result['goods'])) {
|
|
|
$result['filters'] = array();
|
|
|
$result['opts'] = array();
|
...
|
...
|
|