backend.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?php
  2. use addons\Scratch\common\enums\ScratchEnum;
  3. return [
  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' => 'scratch/index',
  23. 'icon' => '',
  24. 'params' => [
  25. ],
  26. 'child' => [
  27. ],
  28. ],
  29. [
  30. 'title' => '抽奖记录',
  31. 'route' => 'scratch/log-index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. // [
  39. // 'title' => '奖品订单',
  40. // 'route' => 'scratch-order/index',
  41. // 'icon' => '',
  42. // 'params' => [
  43. //
  44. // ],
  45. // 'child' => [
  46. //
  47. // ],
  48. // ],
  49. [
  50. 'title' => '基础配置',
  51. 'route' => 'setting/index',
  52. 'icon' => '',
  53. 'params' => [
  54. ],
  55. 'child' => [
  56. ],
  57. ],
  58. ],
  59. // ----------------------- 权限配置 ----------------------- //
  60. 'authItem' => [
  61. [
  62. 'title' => '刮刮卡',
  63. 'name' => '',
  64. 'app_id' => 'backend',
  65. 'is_addon' => 1,
  66. 'addons_name' => 'Scratch',
  67. 'child'=>[
  68. [
  69. 'title' => '奖品列表',
  70. 'name' => 'scratch/index',
  71. 'app_id' => 'backend',
  72. 'is_addon' => 1,
  73. 'addons_name' => 'Scratch',
  74. 'child'=>[
  75. [
  76. 'title' => '添加奖品页面',
  77. 'name' => 'scratch/edit',
  78. 'app_id' => 'backend',
  79. 'is_addon' => 1,
  80. 'addons_name' => 'Scratch',
  81. ],
  82. [
  83. 'title' => '获取奖品详情数据',
  84. 'name' => 'scratch/get-edit',
  85. 'app_id' => 'backend',
  86. 'is_addon' => 1,
  87. 'addons_name' => 'Scratch',
  88. ],
  89. [
  90. 'title' => '添加奖品保存',
  91. 'name' => 'scratch/save-edit',
  92. 'app_id' => 'backend',
  93. 'is_addon' => 1,
  94. 'addons_name' => 'Scratch',
  95. ],
  96. [
  97. 'title' => '列表获取数据',
  98. 'name' => 'scratch/get-list',
  99. 'app_id' => 'backend',
  100. 'is_addon' => 1,
  101. 'addons_name' => 'Scratch',
  102. ],
  103. [
  104. 'title' => '列表状态操作',
  105. 'name' => 'scratch/edit-status',
  106. 'app_id' => 'backend',
  107. 'is_addon' => 1,
  108. 'addons_name' => 'Scratch',
  109. ],
  110. [
  111. 'title' => '删除奖品',
  112. 'name' => 'scratch/delete',
  113. 'app_id' => 'backend',
  114. 'is_addon' => 1,
  115. 'addons_name' => 'Scratch',
  116. ],
  117. ],
  118. ],
  119. [
  120. 'title' => '抽奖记录',
  121. 'name' => 'scratch/log-index',
  122. 'app_id' => 'backend',
  123. 'is_addon' => 1,
  124. 'addons_name' => 'Scratch',
  125. 'child'=>[
  126. [
  127. 'title' => '获取抽奖记录数据',
  128. 'name' => 'scratch/get-log-list',
  129. 'app_id' => 'backend',
  130. 'is_addon' => 1,
  131. 'addons_name' => 'Scratch',
  132. ],
  133. ],
  134. ],
  135. // [
  136. // 'title' => '奖品订单',
  137. // 'name' => 'scratch-order/index',
  138. // 'app_id' => 'backend',
  139. // 'is_addon' => 1,
  140. // 'addons_name' => 'Scratch',
  141. // 'child'=>[
  142. // [
  143. // 'title' => '获取抽奖记录数据',
  144. // 'name' => 'scratch/get-log-list',
  145. // 'app_id' => 'backend',
  146. // 'is_addon' => 1,
  147. // 'addons_name' => 'Scratch',
  148. // ],
  149. // ],
  150. // ],
  151. [
  152. 'title' => '基础配置',
  153. 'name' => 'setting/index',
  154. 'app_id' => 'backend',
  155. 'is_addon' => 1,
  156. 'addons_name' => 'Scratch',
  157. 'child'=>[
  158. [
  159. 'title' => '获取基础配置数据',
  160. 'name' => 'setting/get-setting',
  161. 'app_id' => 'backend',
  162. 'is_addon' => 1,
  163. 'addons_name' => 'Scratch',
  164. ],
  165. [
  166. 'title' => '基础配置保存',
  167. 'name' => 'setting/save-setting',
  168. 'app_id' => 'backend',
  169. 'is_addon' => 1,
  170. 'addons_name' => 'Scratch',
  171. ],
  172. [
  173. 'title' => '背景图保存',
  174. 'name' => 'setting/save-background',
  175. 'app_id' => 'backend',
  176. 'is_addon' => 1,
  177. 'addons_name' => 'Scratch',
  178. ],
  179. ],
  180. ],
  181. ]
  182. ]
  183. ],
  184. // ----------------------- APP链接 ----------------------- //
  185. 'links' => [
  186. [
  187. 'title' => '刮刮卡',
  188. 'route' => '/plugins3/Scratch/index',
  189. 'icon' => '',
  190. 'params' => []
  191. ],
  192. ],
  193. // ----------------------- 事件处理 ----------------------- //
  194. 'events' => [
  195. ],
  196. ];