backend.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. return [
  3. // ----------------------- 菜单配置 ----------------------- //
  4. 'config' => [
  5. // 菜单配置
  6. 'menu' => [
  7. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  8. 'icon' => 'fa fa-puzzle-piece',
  9. ],
  10. // 子模块配置
  11. 'modules' => [
  12. ],
  13. ],
  14. // ----------------------- 快捷入口 ----------------------- //
  15. 'cover' => [
  16. ],
  17. // ----------------------- 菜单配置 ----------------------- //
  18. 'menu' => [
  19. [
  20. 'title' => '活动列表',
  21. 'route' => 'index/index',
  22. 'icon' => '',
  23. 'params' => [
  24. ],
  25. 'child' => [
  26. ],
  27. ],
  28. [
  29. 'title' => '领取明细',
  30. 'route' => 'record/index',
  31. 'icon' => '',
  32. 'params' => [
  33. ],
  34. 'child' => [
  35. ],
  36. ],
  37. ],
  38. // ----------------------- 权限配置 ----------------------- //
  39. 'authItem' => [
  40. [
  41. 'title' => '随机红包',
  42. 'name' => '',
  43. 'app_id' => 'backend',
  44. 'is_addon' => 1,
  45. 'addons_name' => 'RandomRedPacket',
  46. 'child'=>[
  47. [
  48. 'title' => '活动列表',
  49. 'name' => 'index/index',
  50. 'app_id' => 'backend',
  51. 'is_addon' => 1,
  52. 'addons_name' => 'RandomRedPacket',
  53. 'child'=>[
  54. [
  55. 'title' => '添加活动/编辑',
  56. 'name' => 'index/edit',
  57. 'app_id' => 'backend',
  58. 'is_addon' => 1,
  59. 'addons_name' => 'RandomRedPacket',
  60. ],
  61. [
  62. 'title' => '失效/启用',
  63. 'name' => 'index/handle',
  64. 'app_id' => 'backend',
  65. 'is_addon' => 1,
  66. 'addons_name' => 'RandomRedPacket',
  67. ],
  68. ],
  69. ],
  70. [
  71. 'title' => '领取明细',
  72. 'name' => 'record/index',
  73. 'app_id' => 'backend',
  74. 'is_addon' => 1,
  75. 'addons_name' => 'RandomRedPacket',
  76. 'child'=>[
  77. ],
  78. ]
  79. ]
  80. ]
  81. ],
  82. // ----------------------- APP链接 ----------------------- //
  83. 'links' => [
  84. //[
  85. //'title' => '',
  86. //'route' => '',
  87. //'icon' => '',
  88. //'params' => [],
  89. //],
  90. ],
  91. // ----------------------- 事件处理 ----------------------- //
  92. 'events' => [
  93. //[
  94. //'event_name' => '',
  95. //'listeners' => []
  96. //],
  97. ],
  98. // ----------------------- 公共调用 ----------------------- //
  99. 'invoker'=>[
  100. ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_LIST_EXTRA,'class'=>'addons\RandomRedPacket\common\logic\GoodsListExtraLogic','method'=>'setGoodsExtra'],
  101. ],
  102. ];