backend.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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-coupon/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '使用记录',
  40. 'route' => 'usage-log/index',
  41. 'icon' => '',
  42. 'params' => [
  43. ],
  44. 'child' => [
  45. ],
  46. ],
  47. [
  48. 'title' => '收益明细',
  49. 'route' => 'income-log/index',
  50. 'icon' => '',
  51. 'params' => [
  52. ],
  53. 'child' => [
  54. ],
  55. ],
  56. [
  57. 'title' => '门店记录',
  58. 'route' => 'store-log/index',
  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' => 'ElectronCoupon',
  83. 'child'=>[
  84. [
  85. 'title' => '电子券管理',
  86. 'name' => 'default/index',
  87. 'app_id' => 'backend',
  88. 'is_addon' => 1,
  89. 'addons_name' => 'ElectronCoupon',
  90. 'child'=>[],
  91. ],
  92. [
  93. 'title' => '会员电子券',
  94. 'name' => 'user-coupon/index',
  95. 'app_id' => 'backend',
  96. 'is_addon' => 1,
  97. 'addons_name' => 'ElectronCoupon',
  98. 'child'=>[],
  99. ],
  100. [
  101. 'title' => '使用记录',
  102. 'name' => 'usage-log/index',
  103. 'app_id' => 'backend',
  104. 'is_addon' => 1,
  105. 'addons_name' => 'ElectronCoupon',
  106. 'child'=>[],
  107. ],
  108. [
  109. 'title' => '收益明细',
  110. 'name' => 'income-log/index',
  111. 'app_id' => 'backend',
  112. 'is_addon' => 1,
  113. 'addons_name' => 'ElectronCoupon',
  114. 'child'=>[],
  115. ],
  116. [
  117. 'title' => '门店记录',
  118. 'name' => 'store-log/index',
  119. 'app_id' => 'backend',
  120. 'is_addon' => 1,
  121. 'addons_name' => 'ElectronCoupon',
  122. 'child'=>[],
  123. ],
  124. [
  125. 'title' => '基本设置',
  126. 'name' => 'setting/index',
  127. 'app_id' => 'backend',
  128. 'is_addon' => 1,
  129. 'addons_name' => 'ElectronCoupon',
  130. 'child'=>[],
  131. ],
  132. ]
  133. ]
  134. ],
  135. ];
  136. return array_merge($common,$backend);