backend.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
  3. $backend = [
  4. // ----------------------- 菜单配置 ----------------------- //
  5. 'config' => [
  6. // 菜单配置
  7. 'menu' => [
  8. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  9. 'icon' => 'fa fa-puzzle-piece',
  10. ],
  11. // 子模块配置
  12. 'modules' => [
  13. ],
  14. ],
  15. // ----------------------- 快捷入口 ----------------------- //
  16. 'cover' => [
  17. ],
  18. // ----------------------- 菜单配置 ----------------------- //
  19. 'menu' => [
  20. [
  21. 'title' => '充值活动',
  22. 'route' => 'default/index',
  23. 'icon' => '',
  24. 'params' => [
  25. ],
  26. 'child' => [
  27. ],
  28. ],
  29. ],
  30. // ----------------------- 权限配置 ----------------------- //
  31. 'authItem' => [
  32. [
  33. 'title' => '充值有礼',
  34. 'name' => '',
  35. 'app_id' => 'backend',
  36. 'is_addon' => 1,
  37. 'addons_name' => 'Recharge',
  38. 'child'=>[
  39. [
  40. 'title' => '充值活动',
  41. 'name' => 'default/index',
  42. 'app_id' => 'backend',
  43. 'is_addon' => 1,
  44. 'addons_name' => 'Recharge',
  45. 'child'=>[
  46. [
  47. 'title' => '编辑',
  48. 'name' => 'default/edit',
  49. 'app_id' => 'backend',
  50. 'is_addon' => 1,
  51. 'addons_name' => 'Recharge',
  52. ],
  53. [
  54. 'title' => '删除',
  55. 'name' => 'default/delete',
  56. 'app_id' => 'backend',
  57. 'is_addon' => 1,
  58. 'addons_name' => 'Recharge',
  59. ],
  60. ],
  61. ]
  62. ]
  63. ],
  64. ],
  65. ];
  66. return array_merge($common, $backend);