Authored by cailing

首页按钮改成10个

... ... @@ -50,7 +50,6 @@ class FloorProcess
$result[] = $build;
}
$build = array();
return $result;
}
... ... @@ -81,6 +80,7 @@ class FloorProcess
foreach ($data as &$one) {
$one['url'] = Helpers::getFilterUrl($one['url']);
$one['img'] = Helpers::getImageUrl($one['src'], 98, 98);
$one['className'] = (count($data) == 8) ? 'icons-item-eight' : 'icons-item-ten';
unset($one['src']);
}
$result['iconsEnter']['list'] = $data;
... ... @@ -102,6 +102,7 @@ class FloorProcess
foreach ($data as &$one) {
$one['url'] = Helpers::getFilterUrl($one['url']);
$one['img'] = Helpers::getImageUrl($one['src'], 98, 98);
$one['className'] = (count($data) == 8) ? 'icons-item-eight' : 'icons-item-ten';
unset($one['src']);
}
$result['iconsEnter']['list'] = $data;
... ... @@ -269,8 +270,8 @@ class FloorProcess
foreach ($data as $key => &$value) {
if ($key == 'title') {
$urlParam = array('id' => 4);
//isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
$urlParam = array('id' => 4);
//isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
$value['more_url'] = Helpers::url('', $urlParam, 'guang');
}
if ($key == 'list' && is_array($value)) {
... ... @@ -315,7 +316,8 @@ class FloorProcess
foreach ($data['list'] as $kk => &$one) {
if ($kk == 0) {
$one['img'] = Helpers::getImageUrl($one['src'], 253, 383);
} else {
}
else {
$one['img'] = Helpers::getImageUrl($one['src'], 191, 191);
}
if (isset($one['url'])) {
... ... @@ -427,9 +429,9 @@ class FloorProcess
{
// URL附加参数
$param = '';
/*if (isset(self::$channel[$type])) {
$param = '/?gender=' . self::$channel[$type];
}*/
/* if (isset(self::$channel[$type])) {
$param = '/?gender=' . self::$channel[$type];
} */
$result = array();
$result['hotBrandsScroll']['name'] = $data['title']['title'];
... ... @@ -478,6 +480,7 @@ class FloorProcess
$result['list'][$key]['salePrice'] = number_format($val['sales_price'], 2);
$result['list'][$key]['price'] = number_format($val['market_price'], 2);
}
return array('freshOnly'=>$result);
return array('freshOnly' => $result);
}
}
\ No newline at end of file
}
... ...