Authored by cailing

首页按钮修改

... ... @@ -56,7 +56,6 @@ class FloorProcess
$result[] = $build;
}
$build = array();
return $result;
}
... ... @@ -87,6 +86,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;
... ... @@ -108,6 +108,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;
... ... @@ -288,8 +289,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)) {
... ... @@ -334,7 +335,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'])) {
... ... @@ -446,9 +448,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'];
... ... @@ -514,4 +516,4 @@ class FloorProcess
$result['notice']['img'] = Helpers::getImageUrl($data['img'], 110, 25);
return $result;
}
}
\ No newline at end of file
}
... ...
... ... @@ -5,7 +5,7 @@
border-bottom: 1px solid #e0e0e0;
}
.icons-item {
.icons-item-eight {
float: left;
margin-bottom: 10px;
width: 25%;
... ... @@ -13,6 +13,14 @@
text-align: center;
}
.icons-item-ten {
float: left;
margin-bottom: 10px;
width: 20%;
height: 146px;
text-align: center;
}
.imagebar {
display: block;
margin: 0 auto;
... ...
<div class="icons-wrapper">
<ul class="icons-list clearfix">
{{#list}}
<li class="icons-item"><a href="{{url}}" class="imagebar"><img src="{{img}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li>
<li class="{{className}}"><a href="{{url}}" class="imagebar"><img src="{{img}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li>
{{/list}}
</ul>
</div>
... ...