backend.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. 'title' => '认证记录',
  31. 'route' => 'user/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '企业认证管理',
  40. 'route' => 'user/business',
  41. 'icon' => '',
  42. 'params' => [
  43. ],
  44. 'child' => [
  45. ],
  46. ],
  47. ],
  48. // ----------------------- 权限配置 ----------------------- //
  49. 'authItem' => [
  50. [
  51. 'title' => '实名认证',
  52. 'name' => '',
  53. 'app_id' => 'backend',
  54. 'is_addon' => 1,
  55. 'addons_name' => 'RealAuth',
  56. 'child'=> [
  57. [
  58. 'title' => '认证记录',
  59. 'name' => 'user/index',
  60. 'app_id' => 'backend',
  61. 'is_addon' => 1,
  62. 'addons_name' => 'RealAuth',
  63. 'child'=>[],
  64. ],
  65. [
  66. 'title' => '企业认证管理',
  67. 'name' => 'user/business',
  68. 'app_id' => 'backend',
  69. 'is_addon' => 1,
  70. 'addons_name' => 'RealAuth',
  71. 'child'=>[],
  72. ],
  73. [
  74. 'title' => '基础设置',
  75. 'name' => 'default/index',
  76. 'app_id' => 'backend',
  77. 'is_addon' => 1,
  78. 'addons_name' => 'RealAuth',
  79. 'child'=>[
  80. [
  81. 'title' => '保存设置',
  82. 'name' => 'default/save',
  83. 'app_id' => 'backend',
  84. 'is_addon' => 1,
  85. 'addons_name' => 'RealAuth',
  86. ]
  87. ],
  88. ],
  89. ]
  90. ],
  91. ],
  92. // ----------------------- APP链接 ----------------------- //
  93. 'links' => [
  94. //[
  95. //'title' => '',
  96. //'route' => '',
  97. //'icon' => '',
  98. //'params' => [],
  99. //],
  100. ],
  101. // ----------------------- 事件处理 ----------------------- //
  102. 'events' => [
  103. //[
  104. //'event_name' => '',
  105. //'listeners' => []
  106. //],
  107. ],
  108. ];
  109. return array_merge($common,$backend);