backend.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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' => 'setting/index',
  23. 'icon' => '',
  24. 'params' => [
  25. ],
  26. 'child' => [
  27. ],
  28. ],
  29. [
  30. 'title' => '股东管理',
  31. 'route' => 'default/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '分红明细',
  40. 'route' => 'commission/index',
  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' => 'BossThree',
  56. 'child'=>[
  57. [
  58. 'title' => '股东管理',
  59. 'name' => 'default/index',
  60. 'app_id' => 'backend',
  61. 'is_addon' => 1,
  62. 'addons_name' => 'BossThree',
  63. 'child'=>[
  64. [
  65. 'title' => '添加股东',
  66. 'name' => 'default/add-boss',
  67. 'app_id' => 'backend',
  68. 'is_addon' => 1,
  69. 'addons_name' => 'BossThree',
  70. ],
  71. [
  72. 'title' => '根据用户名搜索用户',
  73. 'name' => 'default/select-user',
  74. 'app_id' => 'backend',
  75. 'is_addon' => 1,
  76. 'addons_name' => 'BossThree',
  77. ],
  78. [
  79. 'title' => '编辑',
  80. 'name' => 'default/edit',
  81. 'app_id' => 'backend',
  82. 'is_addon' => 1,
  83. 'addons_name' => 'BossThree',
  84. ],
  85. [
  86. 'title' => '商品编辑',
  87. 'name' => 'default/goods',
  88. 'app_id' => 'backend',
  89. 'is_addon' => 1,
  90. 'addons_name' => 'BossThree',
  91. ],
  92. ],
  93. ],
  94. [
  95. 'title' => '分红明细',
  96. 'name' => 'commission/index',
  97. 'app_id' => 'backend',
  98. 'is_addon' => 1,
  99. 'addons_name' => 'BossThree',
  100. 'child'=>[
  101. ],
  102. ],
  103. [
  104. 'title' => '基础设置',
  105. 'name' => 'setting/index',
  106. 'app_id' => 'backend',
  107. 'is_addon' => 1,
  108. 'addons_name' => 'BossThree',
  109. 'child'=>[
  110. ],
  111. ],
  112. ]
  113. ]
  114. ],
  115. // ----------------------- APP链接 ----------------------- //
  116. 'links' => [
  117. //[
  118. //'title' => '',
  119. //'route' => '',
  120. //'icon' => '',
  121. //'params' => [],
  122. //],
  123. ],
  124. // ----------------------- 事件处理 ----------------------- //
  125. ];
  126. return array_merge($common,$backend);