backend.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?php
  2. use common\enums\EventNameEnum;
  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' => 'default/index',
  23. 'icon' => '',
  24. 'params' => [
  25. ],
  26. 'child' => [
  27. ],
  28. ],
  29. [
  30. 'title' => '中台配置',
  31. 'route' => 'supplys/index',
  32. 'icon' => '',
  33. 'params' => [
  34. ],
  35. 'child' => [
  36. ],
  37. ],
  38. [
  39. 'title' => '导入分类',
  40. 'route' => 'category/index',
  41. 'icon' => '',
  42. 'params' => [
  43. ],
  44. 'child' => [
  45. ],
  46. ],
  47. [
  48. 'title' => '精选好货',
  49. 'route' => 'goods/index',
  50. 'icon' => '',
  51. 'params' => [
  52. ],
  53. 'child' => [
  54. ],
  55. ],
  56. [
  57. 'title' => '选品库',
  58. 'route' => 'storage/index',
  59. 'icon' => '',
  60. 'params' => [
  61. ],
  62. 'child' => [
  63. ],
  64. ],
  65. [
  66. 'title' => '订单列表',
  67. 'route' => 'order/index',
  68. 'icon' => '',
  69. 'params' => [
  70. ],
  71. 'child' => [
  72. ],
  73. ],
  74. [
  75. 'title' => '售后管理',
  76. 'route' => 'refund/index',
  77. 'icon' => '',
  78. 'params' => [
  79. ],
  80. 'child' => [
  81. ],
  82. ],
  83. [
  84. 'title' => '通知日志',
  85. 'route' => 'notice/index',
  86. 'icon' => '',
  87. 'params' => [
  88. ],
  89. 'child' => [
  90. ],
  91. ],
  92. ],
  93. // ----------------------- 权限配置 ----------------------- //
  94. 'authItem' => [
  95. [
  96. 'title' => '优选供应链',
  97. 'name' => '',
  98. 'app_id' => 'backend',
  99. 'is_addon' => 1,
  100. 'addons_name' => 'QiJuhe',
  101. 'child' => [
  102. [
  103. 'title' => '基础设置',
  104. 'name' => 'default/index',
  105. 'app_id' => 'backend',
  106. 'is_addon' => 1,
  107. 'addons_name' => 'QiJuhe',
  108. 'child' => [
  109. [
  110. 'title' => '保存设置',
  111. 'name' => 'default/index',
  112. 'app_id' => 'backend',
  113. 'is_addon' => 1,
  114. 'addons_name' => 'QiJuhe',
  115. 'child' => [],
  116. ],
  117. ],
  118. ],
  119. [
  120. 'title' => '中台配置',
  121. 'name' => 'default/index',
  122. 'app_id' => 'backend',
  123. 'is_addon' => 1,
  124. 'addons_name' => 'QiJuhe',
  125. 'child' => [
  126. [
  127. 'title' => '编辑中台',
  128. 'name' => 'supplys/edit',
  129. 'app_id' => 'backend',
  130. 'is_addon' => 1,
  131. 'addons_name' => 'QiJuhe',
  132. 'child' => [],
  133. ],
  134. ],
  135. ],
  136. [
  137. 'title' => '导入分类',
  138. 'name' => 'default/index',
  139. 'app_id' => 'backend',
  140. 'is_addon' => 1,
  141. 'addons_name' => 'QiJuhe',
  142. 'child' => [
  143. [
  144. 'title' => '导入',
  145. 'name' => 'category/import',
  146. 'app_id' => 'backend',
  147. 'is_addon' => 1,
  148. 'addons_name' => 'QiJuhe',
  149. 'child' => [],
  150. ],
  151. ],
  152. ],
  153. [
  154. 'title' => '精选好货',
  155. 'name' => 'goods/index',
  156. 'app_id' => 'backend',
  157. 'is_addon' => 1,
  158. 'addons_name' => 'QiJuhe',
  159. 'child' => [
  160. [
  161. 'title' => '添加选品库',
  162. 'name' => 'goods/add-storage',
  163. 'app_id' => 'backend',
  164. 'is_addon' => 1,
  165. 'addons_name' => 'QiJuhe',
  166. 'child' => [],
  167. ],
  168. ],
  169. ],
  170. [
  171. 'title' => '选品库',
  172. 'name' => 'storage/index',
  173. 'app_id' => 'backend',
  174. 'is_addon' => 1,
  175. 'addons_name' => 'QiJuhe',
  176. 'child' => [
  177. [
  178. 'title' => '导入商品',
  179. 'name' => 'storage/import',
  180. 'app_id' => 'backend',
  181. 'is_addon' => 1,
  182. 'addons_name' => 'QiJuhe',
  183. 'child' => [],
  184. ],
  185. [
  186. 'title' => '移除选品库',
  187. 'name' => 'storage/remove',
  188. 'app_id' => 'backend',
  189. 'is_addon' => 1,
  190. 'addons_name' => 'QiJuhe',
  191. 'child' => [],
  192. ],
  193. [
  194. 'title' => '移除选品库',
  195. 'name' => 'goods/store-reload',
  196. 'app_id' => 'backend',
  197. 'is_addon' => 1,
  198. 'addons_name' => 'QiJuhe',
  199. 'child' => [],
  200. ],
  201. ],
  202. ],
  203. [
  204. 'title' => '订单列表',
  205. 'name' => 'order/index',
  206. 'app_id' => 'backend',
  207. 'is_addon' => 1,
  208. 'addons_name' => 'QiJuhe',
  209. 'child' => [],
  210. ],
  211. [
  212. 'title' => '通知列表',
  213. 'name' => 'notice/index',
  214. 'app_id' => 'backend',
  215. 'is_addon' => 1,
  216. 'addons_name' => 'QiJuhe',
  217. 'child' => [],
  218. ],
  219. ],
  220. ],
  221. ],
  222. // ----------------------- APP链接 ----------------------- //
  223. 'links' => [
  224. //[
  225. //'title' => '',
  226. //'route' => '',
  227. //'icon' => '',
  228. //'params' => [],
  229. //],
  230. ],
  231. // ----------------------- 事件处理 ----------------------- //
  232. 'events' => [
  233. [
  234. 'event_name' => EventNameEnum::ORDER_PAY,
  235. 'listeners' => [
  236. 'addons\QiJuhe\common\listeners\OrderPaidListener',
  237. ],
  238. ],
  239. [
  240. 'event_name' => EventNameEnum::ORDER_TAKE_DELIVERY,
  241. 'listeners' => [
  242. 'addons\QiJuhe\common\listeners\OrderTakeDeliveredListener',
  243. ],
  244. ],
  245. // 维权订单取消
  246. [
  247. 'event_name' => EventNameEnum::ORDER_REFUND_CANCEL,
  248. 'listeners' => [
  249. 'addons\QiJuhe\common\listeners\OrderRefundCancelListener',
  250. ],
  251. ],
  252. [
  253. 'event_name' => EventNameEnum::ORDER_REFUND_FINISH,
  254. 'listeners' => [
  255. 'addons\QiJuhe\common\listeners\OrderRefundFinishListener',
  256. ],
  257. ],
  258. [
  259. 'event_name' => EventNameEnum::ORDER_REFUND_BUYER_DELIVERY,
  260. 'listeners' => [
  261. 'addons\QiJuhe\common\listeners\OrderRefundBuyerDeliveryListener',
  262. ],
  263. ],
  264. [
  265. 'event_name' => EventNameEnum::GOODS_EDIT,
  266. 'listeners' => [
  267. 'addons\QiJuhe\common\listeners\GoodsEditListener',
  268. ],
  269. ]
  270. ],
  271. 'invoker' => [
  272. [
  273. 'invoker_id' => \common\enums\GlobalFuncEnum::CART_LIST_APPEND_FILEDS,
  274. 'class' => \addons\QiJuhe\common\service\ShoppingCartService::class,
  275. 'method' => 'cartListAppendFields'
  276. ],
  277. [
  278. 'invoker_id' => \common\enums\GlobalFuncEnum::API_GOODS_DETAIL,
  279. 'class'=>\addons\QiJuhe\common\service\ShoppingCartService::class,
  280. 'method'=>'globalGoodsDetail'
  281. ],
  282. ]
  283. ];