三级导航菜单系统实现
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2026-01-10 16:45:20 +08:00
parent e72fbaf98a
commit b90b24a0d7
6 changed files with 617 additions and 145 deletions

View File

@@ -130,8 +130,70 @@ class ThemeConfigModel
'keywords' => '云服务器,主题云,BlackFruit',
'description' => 'BlackFruit-UI 默认站点说明',
],
// 顶部/底部导航
'header_nav' => [],
// 顶部/底部导航(第一个默认为产品中心,支持三级菜单)
'header_nav' => [
[
'name' => '产品中心',
'file_address' => '',
'blank' => false,
'children' => [
[
'name' => 'SAS轻量云服务器',
'file_address' => '/cloud.html',
'icon' => '/web/BlackFruit-web/assets/img/index/cloud-icon.png',
'description' => '高性能SSD云服务器',
'blank' => false,
'children' => [
[
'name' => '香港SAS',
'file_address' => '/cloud.html?region=hk',
'description' => '香港数据中心',
'blank' => false
],
[
'name' => '美国SAS',
'file_address' => '/cloud.html?region=us',
'description' => '美国数据中心',
'blank' => false
],
[
'name' => '日本SAS',
'file_address' => '/cloud.html?region=jp',
'description' => '日本数据中心',
'blank' => false
]
]
],
[
'name' => 'ECS精品云服务器',
'file_address' => '/dedicated.html',
'icon' => '/web/BlackFruit-web/assets/img/index/server-icon.png',
'description' => '企业级云服务器',
'blank' => false,
'children' => [
[
'name' => '宁波ECS',
'file_address' => '/dedicated.html?region=nb',
'description' => '宁波数据中心',
'blank' => false
],
[
'name' => '镇江ECS',
'file_address' => '/dedicated.html?region=zj',
'description' => '镇江数据中心',
'blank' => false
],
[
'name' => '北京ECS',
'file_address' => '/dedicated.html?region=bj',
'description' => '北京数据中心',
'blank' => false
]
]
]
]
]
],
'footer_nav' => [],
// 站点基础信息
'site_config' => [