...
|
...
|
@@ -102,6 +102,10 @@ class HelperSearch |
|
|
if (isset($data['discount']['discount']) && !empty($data['discount']['discount'])) {
|
|
|
$result['leftContent'][]['allDiscount'] = self::getDiscount($data['discount']['discount']);
|
|
|
}
|
|
|
//一周新品上架
|
|
|
if (isset($data['recent']['recent']) && !empty($data['recent']['recent'])) {
|
|
|
$result['leftContent'][]['newSales'] = self::recentShelve($data['recent']['recent']);
|
|
|
}
|
|
|
//分类条件(搜索页面)
|
|
|
if (isset($data['sort']['sort'])) {
|
|
|
//分类条件(搜索页面)
|
...
|
...
|
@@ -112,10 +116,7 @@ class HelperSearch |
|
|
$result['leftContent'][]['allSort'] = self::groupSort($data['sort']['sort']);
|
|
|
}
|
|
|
}
|
|
|
//一周新品上架
|
|
|
if (isset($data['recent']['recent']) && !empty($data['recent']['recent'])) {
|
|
|
$result['leftContent'][]['newSales'] = self::recentShelve($data['recent']['recent']);
|
|
|
}
|
|
|
|
|
|
//品牌banner
|
|
|
$result['brandBanner'] = isset($data['brand']) && !empty($data['brand']) ? self::getBannerFormat($data['brand'], $options['brandBanner']) : array();
|
|
|
//总记录数
|
...
|
...
|
@@ -1096,7 +1097,7 @@ class HelperSearch |
|
|
$data[$i]['active'] = true;
|
|
|
}
|
|
|
$data[$i]['href'] = self::buildUrl($query);
|
|
|
$data[$i]['name'] = $k;
|
|
|
$data[$i]['name'] = date('m月d日', strtotime($k));
|
|
|
$i++;
|
|
|
}
|
|
|
$result = array(
|
...
|
...
|
@@ -1104,6 +1105,7 @@ class HelperSearch |
|
|
);
|
|
|
unset($data);
|
|
|
unset($query);
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
/**
|
...
|
...
|
|