backend.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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' => 'join-log/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '奖励记录',
  40. 'route' => 'reward/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' => 'Recommen',
  56. 'child'=>[
  57. [
  58. 'title' => '推荐有礼',
  59. 'name' => 'default/index',
  60. 'app_id' => 'backend',
  61. 'is_addon' => 1,
  62. 'addons_name' => 'Recommen',
  63. 'child'=>[
  64. [
  65. 'title' => '添加编辑活动',
  66. 'name' => 'default/edit',
  67. 'app_id' => 'backend',
  68. 'is_addon' => 1,
  69. 'addons_name' => 'Recommen',
  70. ],
  71. [
  72. 'title' => '设置卡密',
  73. 'name' => 'card-secret/index',
  74. 'app_id' => 'backend',
  75. 'is_addon' => 1,
  76. 'addons_name' => 'Recommen',
  77. ],
  78. [
  79. 'title' => '删除/停用',
  80. 'name' => 'default/handle',
  81. 'app_id' => 'backend',
  82. 'is_addon' => 1,
  83. 'addons_name' => 'Recommen',
  84. ],
  85. ],
  86. ],
  87. [
  88. 'title' => '参与记录',
  89. 'name' => 'reward/index',
  90. 'app_id' => 'backend',
  91. 'is_addon' => 1,
  92. 'addons_name' => 'Recommen',
  93. 'child'=>[
  94. ],
  95. ],
  96. ]
  97. ]
  98. ],
  99. ];
  100. return array_merge($common,$backend);