backend.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. 'cover' => [],
  16. // ----------------------- 菜单配置 ----------------------- //
  17. 'menu' => [
  18. [
  19. 'title' => '数据概况',
  20. 'route' => 'data/index',
  21. 'icon' => '',
  22. 'params' => [],
  23. 'child' => [],
  24. ],
  25. [
  26. 'title' => '申请列表',
  27. 'route' => 'apply/index',
  28. 'icon' => '',
  29. 'params' => [],
  30. 'child' => [],
  31. ],
  32. [
  33. 'title' => '技师管理',
  34. 'route' => 'user/index',
  35. 'icon' => '',
  36. 'params' => [],
  37. 'child' => [],
  38. ],
  39. [
  40. 'title' => '技师等级',
  41. 'route' => 'level/index',
  42. 'icon' => '',
  43. 'params' => [],
  44. 'child' => [],
  45. ],
  46. [
  47. 'title' => '预约列表',
  48. 'route' => 'reserve-order/index',
  49. 'icon' => '',
  50. 'params' => [],
  51. 'child' => [],
  52. ],
  53. [
  54. 'title' => '提成明细',
  55. 'route' => 'commission/index',
  56. 'icon' => '',
  57. 'params' => [],
  58. 'child' => [],
  59. ],
  60. [
  61. 'title' => '订单流水',
  62. 'route' => 'order/index',
  63. 'icon' => '',
  64. 'params' => [],
  65. 'child' => [],
  66. ],
  67. [
  68. 'title' => '基础设置',
  69. 'route' => 'setting/index',
  70. 'icon' => '',
  71. 'params' => [],
  72. 'child' => [],
  73. ],
  74. ],
  75. // ----------------------- 权限配置 ----------------------- //
  76. 'authItem' => [
  77. [
  78. 'title' => '预约服务',
  79. 'name' => '',
  80. 'app_id' => 'backend',
  81. 'is_addon' => 1,
  82. 'addons_name' => 'ReservationService',
  83. 'child' => [
  84. [
  85. 'title' => '数据概况',
  86. 'name' => 'data/index',
  87. 'app_id' => 'backend',
  88. 'is_addon' => 1,
  89. 'addons_name' => 'ReservationService',
  90. 'child' => [],
  91. ],
  92. [
  93. 'title' => '申请列表',
  94. 'name' => 'apply/index',
  95. 'app_id' => 'backend',
  96. 'is_addon' => 1,
  97. 'addons_name' => 'ReservationService',
  98. 'child' => [],
  99. ],
  100. [
  101. 'title' => '技师管理',
  102. 'name' => 'user/index',
  103. 'app_id' => 'backend',
  104. 'is_addon' => 1,
  105. 'addons_name' => 'ReservationService',
  106. 'child' => [],
  107. ],
  108. [
  109. 'title' => '技师等级',
  110. 'name' => 'level/index',
  111. 'app_id' => 'backend',
  112. 'is_addon' => 1,
  113. 'addons_name' => 'ReservationService',
  114. 'child' => [],
  115. ],
  116. [
  117. 'title' => '预约列表',
  118. 'name' => 'reserve-order/index',
  119. 'app_id' => 'backend',
  120. 'is_addon' => 1,
  121. 'addons_name' => 'ReservationService',
  122. 'child' => [],
  123. ],
  124. [
  125. 'title' => '提成明细',
  126. 'name' => 'commission/index',
  127. 'app_id' => 'backend',
  128. 'is_addon' => 1,
  129. 'addons_name' => 'ReservationService',
  130. 'child' => [],
  131. ],
  132. [
  133. 'title' => '订单流水',
  134. 'name' => 'order/index',
  135. 'app_id' => 'backend',
  136. 'is_addon' => 1,
  137. 'addons_name' => 'ReservationService',
  138. 'child' => [
  139. [
  140. 'title' => '订单流水明细',
  141. 'name' => 'order/list',
  142. 'app_id' => 'backend',
  143. 'is_addon' => 1,
  144. 'addons_name' => 'ReservationService',
  145. ]
  146. ],
  147. ],
  148. [
  149. 'title' => '基础设置',
  150. 'name' => 'setting/index',
  151. 'app_id' => 'backend',
  152. 'is_addon' => 1,
  153. 'addons_name' => 'ReservationService',
  154. 'child' => [],
  155. ],
  156. ]
  157. ]
  158. ],
  159. // ----------------------- APP链接 ----------------------- //
  160. 'links' => [
  161. [
  162. 'title' => '技师端',
  163. 'route' => '/plugins4/ReservationService/techWorker/index',
  164. 'icon' => '',
  165. 'params' => [],
  166. ],
  167. [
  168. 'title' => '门店服务招募',
  169. 'route' => '/plugins4/ReservationService/service/storeServiceApply',
  170. 'icon' => '',
  171. 'params' => [],
  172. ],
  173. [
  174. 'title' => '服务招募',
  175. 'route' => '/plugins4/ReservationService/service/serviceApply',
  176. 'icon' => '',
  177. 'params' => [],
  178. ],
  179. [
  180. 'title' => '技师列表',
  181. 'route' => '/plugins2/reserveService/serviceStaff',
  182. 'icon' => '',
  183. 'params' => [],
  184. ],
  185. [
  186. 'title' => '门店技师列表',
  187. 'route' => '/plugins2/reserveService/serviceStaff?pageType=1',
  188. 'icon' => '',
  189. 'params' => [],
  190. ],
  191. ],
  192. ];
  193. return array_merge($common, $backend);