common.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. use common\enums\EventNameEnum;
  3. return [
  4. // ----------------------- APP链接 ----------------------- //
  5. 'links' => [
  6. [
  7. 'title' => 'O2O门店',
  8. 'route' => '/plugins2/Store/store/storeindex',
  9. 'icon' => '',
  10. 'params' => [],
  11. ],
  12. [
  13. 'title' => '入驻申请',
  14. 'route' => '/plugins2/Store/index',
  15. 'icon' => '',
  16. 'params' => [],
  17. ],[
  18. 'title' => '核销入口',
  19. 'route' => '/plugins2/Store/writeoff/index',
  20. 'icon' => '',
  21. 'params' => [],
  22. ],
  23. [
  24. 'title' => '店铺管理',
  25. 'route' => '/plugins2/Store/shopManage/index',
  26. 'icon' => '',
  27. 'params' => [],
  28. ],
  29. [
  30. 'title' => '福利',
  31. 'route' => '/plugins2/Store/shopManage/videoplay',
  32. 'icon' => '',
  33. 'params' => [],
  34. ],
  35. [
  36. 'title' => 'O2O门店卖家',
  37. 'route' => '/plugins2/Store/orderSales/list',
  38. 'icon' => '',
  39. 'params' => [],
  40. ],
  41. [
  42. 'title' => 'O2O门店移动端',
  43. 'route' => '/plugins2/Store/admin/store',
  44. 'icon' => '',
  45. 'params' => [],
  46. ],
  47. [
  48. 'title' => '收款码',
  49. 'route' => '/plugins2/Store/dealPayment/index',
  50. 'icon' => '',
  51. 'params' => [],
  52. ],
  53. [
  54. 'title' => '交易钱包',
  55. 'route' => '/plugins2/Store/orderSales/assets/index',
  56. 'icon' => '',
  57. 'params' => [],
  58. ],
  59. [
  60. 'title' => '门店核销券',
  61. 'route' => '/plugins4/StoreWriteCoupons/index',
  62. 'icon' => '',
  63. 'params' => [],
  64. ],
  65. [
  66. 'title' => '待还款',
  67. 'route' => '/plugins/pages/order/creditOrder',
  68. 'icon' => '',
  69. 'params' => [],
  70. ],
  71. [
  72. 'title' => 'o2o购物车',
  73. 'route' => '/plugins2/Store/cart/index',
  74. 'icon' => '',
  75. 'params' => [],
  76. ],
  77. [
  78. 'title' => 'o2o关联门店',
  79. 'route' => '/plugins2/Store/store/index',
  80. 'icon' => '',
  81. 'params' => [],
  82. ],
  83. [
  84. 'title' => '入驻门店聚合页',
  85. 'route' => '/plugins7/StoreEntryLimit/index',
  86. 'icon' => '',
  87. 'params' => [],
  88. ],
  89. [
  90. 'title' => '流失订单',
  91. 'route' => '/plugins7/StoreEntryLimit/lose_order_list',
  92. 'icon' => '',
  93. 'params' => [],
  94. ],
  95. [
  96. 'title' => 'o2o首页',
  97. 'route' => '/pages/AntTechnology/storeIndex/index',
  98. 'icon' => '',
  99. 'params' => [],
  100. ],
  101. [
  102. 'title' => 'o2o商品分类',
  103. 'route' => '/customDesigns/AntTechnology/menu/index',
  104. 'icon' => '',
  105. 'params' => [],
  106. ],
  107. ],
  108. // ----------------------- 事件处理 ----------------------- //
  109. 'events' => [
  110. [
  111. 'event_name' => EventNameEnum::ORDER_PAY,
  112. 'listeners' => [
  113. 'addons\Store\common\listeners\order\CommonOrderPaidListener',
  114. ]
  115. ],
  116. [
  117. 'event_name' => EventNameEnum::REAL_AUTH,
  118. 'listeners' => [
  119. 'addons\Store\common\listeners\auth\RealAuthListener',
  120. ]
  121. ],
  122. [
  123. 'event_name' => EventNameEnum::ORDER_DEL,
  124. 'listeners' => [
  125. 'addons\Store\common\listeners\order\OrderDelListener',
  126. ]
  127. ],
  128. [
  129. 'event_name' => EventNameEnum::GOODS_EDIT,
  130. 'listeners' => [
  131. \addons\Store\common\listeners\goods\GoodsEditListener::class,
  132. ]
  133. ],
  134. ],
  135. 'invoker' => [
  136. ['invoker_id' => \common\enums\GlobalFuncEnum::ORDER_DETAIL, 'class' => 'addons\Store\common\models\StoreOrder', 'method' => 'orderDetail'],
  137. ['invoker_id' => \common\enums\GlobalFuncEnum::ORDER_LIST, 'class' => 'addons\Store\common\global_func\Order\OrderList', 'method' => 'getApiOrderList'],
  138. ['invoker_id' => \common\enums\GlobalFuncEnum::CAPITAL_LOG_LIST, 'class' => 'addons\Store\common\models\StoreOrderDetail', 'method' => 'getCapitalLogList'],
  139. ['invoker_id' => \common\enums\GlobalFuncEnum::ORDER_REFUND_SUBMIT, 'class' => 'addons\Store\common\models\StoreOrderDetail', 'method' => 'orderRefundSubmit'],
  140. ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK, 'class' => 'addons\Store\common\global_func\Clerk', 'method' => 'clerk'],
  141. ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK_DETAIL, 'class' => 'addons\Store\common\global_func\Clerk', 'method' => 'clerkDetail'],
  142. ],
  143. ];