backend.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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' => 'diy/index',
  23. 'icon' => '',
  24. 'params' => [
  25. ],
  26. 'child' => [
  27. ],
  28. ],
  29. [
  30. 'title' => '分类管理',
  31. 'route' => 'cate/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '商品列表',
  40. 'route' => 'goods/index',
  41. 'icon' => '',
  42. 'params' => [
  43. ],
  44. 'child' => [
  45. ],
  46. ],
  47. [
  48. 'title' => '分红记录',
  49. 'route' => 'bonus-log/index',
  50. 'icon' => '',
  51. 'params' => [
  52. ],
  53. 'child' => [
  54. ],
  55. ],
  56. [
  57. 'title' => '用户管理',
  58. 'route' => 'default/user-list',
  59. 'icon' => '',
  60. 'params' => [
  61. ],
  62. 'child' => [
  63. ],
  64. ],
  65. [
  66. 'title' => '基础设置',
  67. 'route' => 'setting/index',
  68. 'icon' => '',
  69. 'params' => [
  70. ],
  71. 'child' => [
  72. ],
  73. ],
  74. ],
  75. // ----------------------- 权限配置 ----------------------- //
  76. 'authItem' =>[
  77. [
  78. 'title' => '奖金盲盒',
  79. 'name' => '',
  80. 'app_id' => 'backend',
  81. 'is_addon' => 1,
  82. 'addons_name' => 'BlindBox',
  83. 'child'=>[
  84. [
  85. 'title' => '页面装修',
  86. 'name' => 'diy/index',
  87. 'app_id' => 'backend',
  88. 'is_addon' => 1,
  89. 'addons_name' => 'BlindBox',
  90. 'child'=>[
  91. ],
  92. ],
  93. [
  94. 'title' => '分类管理',
  95. 'name' => 'cate/index',
  96. 'app_id' => 'backend',
  97. 'is_addon' => 1,
  98. 'addons_name' => 'BlindBox',
  99. 'child'=>[
  100. [
  101. 'title' => '编辑',
  102. 'name' => 'cate/edit',
  103. 'app_id' => 'backend',
  104. 'is_addon' => 1,
  105. 'addons_name' => 'BlindBox',
  106. ],
  107. [
  108. 'title' => '删除',
  109. 'name' => 'cate/del',
  110. 'app_id' => 'backend',
  111. 'is_addon' => 1,
  112. 'addons_name' => 'BlindBox',
  113. ]
  114. ],
  115. ],
  116. [
  117. 'title' => '商品列表',
  118. 'name' => 'goods/index',
  119. 'app_id' => 'backend',
  120. 'is_addon' => 1,
  121. 'addons_name' => 'BlindBox',
  122. 'child'=>[
  123. [
  124. 'title' => '添加',
  125. 'name' => 'goods/add',
  126. 'app_id' => 'backend',
  127. 'is_addon' => 1,
  128. 'addons_name' => 'BlindBox',
  129. ],[
  130. 'title' => '编辑',
  131. 'name' => 'goods/edit',
  132. 'app_id' => 'backend',
  133. 'is_addon' => 1,
  134. 'addons_name' => 'BlindBox',
  135. ],
  136. [
  137. 'title' => '删除',
  138. 'name' => 'goods/del',
  139. 'app_id' => 'backend',
  140. 'is_addon' => 1,
  141. 'addons_name' => 'BlindBox',
  142. ]
  143. ],
  144. ],
  145. [
  146. 'title' => '分红记录',
  147. 'name' => 'bonus-log/index',
  148. 'app_id' => 'backend',
  149. 'is_addon' => 1,
  150. 'addons_name' => 'BlindBox',
  151. 'child'=>[
  152. [
  153. 'title' => '详情',
  154. 'name' => 'bonus-log/detail',
  155. 'app_id' => 'backend',
  156. 'is_addon' => 1,
  157. 'addons_name' => 'BlindBox',
  158. ]
  159. ],
  160. ],
  161. [
  162. 'title' => '用户管理',
  163. 'name' => 'default/user-list',
  164. 'app_id' => 'backend',
  165. 'is_addon' => 1,
  166. 'addons_name' => 'BlindBox',
  167. 'child'=>[
  168. ],
  169. ],
  170. [
  171. 'title' => '基础设置',
  172. 'name' => 'setting/index',
  173. 'app_id' => 'backend',
  174. 'is_addon' => 1,
  175. 'addons_name' => 'BlindBox',
  176. 'child'=>[
  177. ],
  178. ],
  179. ]
  180. ]
  181. ],
  182. ];
  183. return array_merge($common,$backend);