backend.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. use addons\OperationCenter\common\listeners\order\OrderDeliveryListener;
  3. use addons\OperationCenter\common\listeners\order\OrderRefundFinishListener;
  4. use addons\OperationCenter\common\listeners\order\OrderPayRewardListener;
  5. use addons\OperationCenter\common\listeners\order\OrderFinishRewardListener;
  6. return [
  7. // ----------------------- 菜单配置 ----------------------- //
  8. 'config' => [
  9. // 菜单配置
  10. 'menu' => [
  11. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  12. 'icon' => 'fa fa-puzzle-piece',
  13. ],
  14. // 子模块配置
  15. 'modules' => [],
  16. ],
  17. // ----------------------- 快捷入口 ----------------------- //
  18. 'cover' => [],
  19. // ----------------------- 菜单配置 ----------------------- //
  20. 'menu' => [
  21. [
  22. 'title' => '运营中心管理',
  23. 'route' => 'center/index',
  24. 'icon' => '',
  25. 'params' => [],
  26. 'child' => [],
  27. ],
  28. [
  29. 'title' => '审核列表',
  30. 'route' => 'review/index',
  31. 'icon' => '',
  32. 'params' => [],
  33. 'child' => [],
  34. ],
  35. [
  36. 'title' => '等级列表',
  37. 'route' => 'level/index',
  38. 'icon' => '',
  39. 'params' => [],
  40. 'child' => [],
  41. ],
  42. [
  43. 'title' => '分佣明细',
  44. 'route' => 'commission/index',
  45. 'icon' => '',
  46. 'params' => [],
  47. 'child' => [],
  48. ],
  49. [
  50. 'title' => '基础设置',
  51. 'route' => 'setting/index',
  52. 'icon' => '',
  53. 'params' => [],
  54. 'child' => [],
  55. ],
  56. ],
  57. // ----------------------- 权限配置 ----------------------- //
  58. 'authItem' => [
  59. [
  60. 'title' => '所有权限',
  61. 'name' => '',
  62. ],
  63. ],
  64. // ----------------------- APP链接 ----------------------- //
  65. 'links' => [
  66. [
  67. 'title' => '运营中心',
  68. 'route' => '/plugins3/OperationCenter/index',
  69. 'icon' => '',
  70. 'params' => []
  71. ],
  72. [
  73. 'title' => '运营中心申请',
  74. 'route' => '/plugins3/OperationCenter/apply',
  75. 'icon' => '',
  76. 'params' => []
  77. ],
  78. ],
  79. // ----------------------- 事件处理 ----------------------- //
  80. // ----------------------- 事件处理 ----------------------- //
  81. 'events' => [
  82. [
  83. // 订单发货
  84. 'event_name' => 'order_delivery',
  85. 'listeners' => [
  86. OrderDeliveryListener::class
  87. ]
  88. ],
  89. [
  90. // 订单支付
  91. 'event_name' => 'order_pay',
  92. 'listeners' => [
  93. OrderPayRewardListener::class
  94. ]
  95. ],
  96. [
  97. // 订单售后完成
  98. 'event_name' => 'order_refund_finish',
  99. 'listeners' => [
  100. OrderRefundFinishListener::class
  101. ]
  102. ],
  103. [
  104. // 订单完成
  105. 'event_name' => 'order_finish',
  106. 'listeners' => [
  107. OrderFinishRewardListener::class
  108. ]
  109. ]
  110. ],
  111. // ----------------------- 公共调用 ----------------------- //
  112. 'invoker'=>[
  113. ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL,'class'=>'addons\OperationCenter\common\models\CommissionItemSetting','method'=>'lists'],
  114. ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL_LEVEL,'class'=>'addons\OperationCenter\common\models\Level','method'=>'lists'],
  115. ['invoker_id'=>\common\enums\GlobalFuncEnum::PROMOTION,'class'=>'addons\OperationCenter\common\models\UserCenter','method'=>'getIncomeInfo'],
  116. ],
  117. ];