backend.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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' => 'score-log/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' => 'setting/index',
  50. 'icon' => '',
  51. 'params' => [
  52. ],
  53. 'child' => [
  54. ],
  55. ],
  56. ],
  57. // ----------------------- 权限配置 ----------------------- //
  58. 'authItem' => [
  59. [
  60. 'title' => '积分拓客',
  61. 'name' => '',
  62. 'app_id' => 'backend',
  63. 'is_addon' => 1,
  64. 'addons_name' => 'ScoreExpansion',
  65. 'child'=>[
  66. [
  67. 'title' => '积分列表',
  68. 'name' => 'default/index',
  69. 'app_id' => 'backend',
  70. 'is_addon' => 1,
  71. 'addons_name' => 'ScoreExpansion',
  72. 'child'=>[
  73. [
  74. 'title' => '数据',
  75. 'name' => 'user-grab/index',
  76. 'app_id' => 'backend',
  77. 'is_addon' => 1,
  78. 'addons_name' => 'ScoreExpansion',
  79. ],
  80. [
  81. 'title' => '添加活动/编辑',
  82. 'name' => 'default/edit',
  83. 'app_id' => 'backend',
  84. 'is_addon' => 1,
  85. 'addons_name' => 'ScoreExpansion',
  86. ],
  87. [
  88. 'title' => '失效/启用',
  89. 'name' => 'default/del-or-enable',
  90. 'app_id' => 'backend',
  91. 'is_addon' => 1,
  92. 'addons_name' => 'ScoreExpansion',
  93. ],
  94. ],
  95. ],
  96. [
  97. 'title' => '积分明细',
  98. 'name' => 'score-log/index',
  99. 'app_id' => 'backend',
  100. 'is_addon' => 1,
  101. 'addons_name' => 'ScoreExpansion',
  102. 'child'=>[
  103. ],
  104. ],
  105. [
  106. 'title' => '基础设置',
  107. 'name' => 'setting/index',
  108. 'app_id' => 'backend',
  109. 'is_addon' => 1,
  110. 'addons_name' => 'ScoreExpansion',
  111. 'child'=>[
  112. ],
  113. ],
  114. ]
  115. ]
  116. ],
  117. ];
  118. return array_merge($common,$backend);