Authored by whb

导航修改

... ... @@ -67,6 +67,7 @@ class HomeModel
$menu = Cache::get($key);
if(empty($menu)) {
$item = array();
$index_main = 0;
foreach ($data['data'] as $val) {
$item = array(
'name_cn' => $val['sort_name'], // 父级
... ... @@ -74,7 +75,7 @@ class HomeModel
'link' => $val['sort_url'],
'icon' => $val['sort_ico'],
'classname' => str_replace(' ', '', strtolower($val['sort_name_en'])) == $channel ? $channel : '',
'index_main' => 0,
'index_main' => $index_main++,
'is_hot' => $val['is_hot'] == 'Y' ? true : false,
'is_new' => $val['is_new'] == 'Y' ? true : false,
// 'subnav' => array()
... ...