| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?php
- $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
- $backend = [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [
- ],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [
- ],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '页面装修',
- 'route' => 'diy/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '分类管理',
- 'route' => 'cate/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '商品列表',
- 'route' => 'goods/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '分红记录',
- 'route' => 'bonus-log/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '用户管理',
- 'route' => 'default/user-list',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '基础设置',
- 'route' => 'setting/index',
- 'icon' => '',
- 'params' => [
- ],
- 'child' => [
- ],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' =>[
- [
- 'title' => '奖金盲盒',
- 'name' => '',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- [
- 'title' => '页面装修',
- 'name' => 'diy/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- ],
- ],
- [
- 'title' => '分类管理',
- 'name' => 'cate/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- [
- 'title' => '编辑',
- 'name' => 'cate/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ],
- [
- 'title' => '删除',
- 'name' => 'cate/del',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ]
- ],
- ],
- [
- 'title' => '商品列表',
- 'name' => 'goods/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- [
- 'title' => '添加',
- 'name' => 'goods/add',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ],[
- 'title' => '编辑',
- 'name' => 'goods/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ],
- [
- 'title' => '删除',
- 'name' => 'goods/del',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ]
- ],
- ],
- [
- 'title' => '分红记录',
- 'name' => 'bonus-log/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- [
- 'title' => '详情',
- 'name' => 'bonus-log/detail',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- ]
- ],
- ],
- [
- 'title' => '用户管理',
- 'name' => 'default/user-list',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- ],
- ],
- [
- 'title' => '基础设置',
- 'name' => 'setting/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'BlindBox',
- 'child'=>[
- ],
- ],
- ]
- ]
- ],
- ];
- return array_merge($common,$backend);
|