Authored by whb

修改通栏banner

... ... @@ -118,13 +118,17 @@ class Process
$height = 450;
if ($data['focus_type'] == 1) {
foreach ($data['data'] as $val) {
$ret = array();
$val['src'] = Images::getImageUrl($val['src'], $width, $height, 1);
$val['url'] = Helpers::transUrl($val['url'], $type);
$temp[] = array(
$ret = array (
'href' => $val['url'],
'img' => $val['src'],
'bgColor' => $val['bgColor']
);
if(!empty($val['bgColor'])) {
$ret['bgColor'] = $val['bgColor'];
}
$temp[] = $ret;
}
$result['slide']['list'] = $temp;
}
... ...