backend.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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. 'client' => [
  14. 'class' => 'addons\Happiness\client\Module',
  15. ],
  16. 'agent' => [
  17. 'class' => 'addons\Happiness\agent\Module',
  18. ],
  19. ],
  20. ],
  21. // ----------------------- 快捷入口 ----------------------- //
  22. 'cover' => [
  23. ],
  24. // ----------------------- 菜单配置 ----------------------- //
  25. 'menu' => [
  26. [
  27. 'title' => '数据概况',
  28. 'route' => 'default/index',
  29. 'icon' => '',
  30. 'params' => [],
  31. 'child' => [],
  32. ],
  33. // [
  34. // 'title' => '首页装修',
  35. // 'route' => 'diy/index',
  36. // 'icon' => '',
  37. // 'params' => [],
  38. // 'child' => [],
  39. // ],
  40. [
  41. 'title' => '小店管理',
  42. 'route' => 'store/index',
  43. 'icon' => '',
  44. 'params' => [],
  45. 'child' => [],
  46. ],
  47. [
  48. 'title' => '小店选品库',
  49. 'route' => 'store-goods/index',
  50. 'icon' => '',
  51. 'params' => [],
  52. 'child' => [],
  53. ],
  54. [
  55. 'title' => '订单管理',
  56. 'route' => 'store-order/index',
  57. 'icon' => '',
  58. 'params' => [],
  59. 'child' => [],
  60. ],
  61. [
  62. 'title' => '提货订单',
  63. 'route' => 'store-voucher-order/index',
  64. 'icon' => '',
  65. 'params' => [],
  66. 'child' => [],
  67. ],
  68. [
  69. 'title' => '收款码订单',
  70. 'route' => 'store-casher/index',
  71. 'icon' => '',
  72. 'params' => [],
  73. 'child' => [],
  74. ],
  75. [
  76. 'title' => '售后管理',
  77. 'route' => 'store-order/refund-list',
  78. 'icon' => '',
  79. 'params' => [],
  80. 'child' => [],
  81. ],
  82. [
  83. 'title' => '小店审核',
  84. 'route' => 'store-audit/index',
  85. 'icon' => '',
  86. 'params' => [],
  87. 'child' => [],
  88. ],
  89. [
  90. 'title' => '核销管理',
  91. 'name' => 'store-clerk/index',
  92. 'app_id' => 'backend',
  93. 'is_addon' => 1,
  94. 'addons_name' => 'Happiness',
  95. 'child' => [
  96. [
  97. 'title' => '核销员管理',
  98. 'name' => 'store-clerk/index',
  99. 'route' => 'store-clerk/index',
  100. 'app_id' => 'backend',
  101. 'is_addon' => 1,
  102. 'addons_name' => 'Happiness',
  103. 'child' => [],
  104. ],
  105. [
  106. 'title' => '核销统计',
  107. 'name' => 'store-clerk/clerk-log',
  108. 'route' => 'store-clerk/clerk-log',
  109. 'app_id' => 'backend',
  110. 'is_addon' => 1,
  111. 'addons_name' => 'Happiness',
  112. 'child' => [],
  113. ],
  114. ],
  115. ],
  116. [
  117. 'title' => '流水管理',
  118. 'route' => 'store-assets/index',
  119. 'icon' => '',
  120. 'params' => [],
  121. 'child' => [],
  122. ],
  123. [
  124. 'title' => '流水统计',
  125. 'route' => 'store-statistics/index',
  126. 'icon' => '',
  127. 'params' => [],
  128. 'child' => [],
  129. ],
  130. [
  131. 'title' => '支出统计',
  132. 'route' => 'store-expenses/index',
  133. 'icon' => '',
  134. 'params' => [],
  135. 'child' => [],
  136. ],
  137. [
  138. 'title' => '提现审核',
  139. 'route' => 'store-cashdraw/index',
  140. 'icon' => '',
  141. 'params' => [],
  142. 'child' => [],
  143. ],
  144. [
  145. 'title' => '养老金',
  146. 'route' => 'store-pension/index',
  147. 'icon' => '',
  148. 'params' => [],
  149. 'child' => [],
  150. ],
  151. [
  152. 'title' => '推广身份',
  153. 'route' => 'store-agent/index',
  154. 'icon' => '',
  155. 'params' => [],
  156. 'child' => [
  157. [
  158. 'title' => '推广管理',
  159. 'name' => 'store-business/index',
  160. 'route' => 'store-business/index',
  161. 'app_id' => 'backend',
  162. 'is_addon' => 1,
  163. 'addons_name' => 'Happiness',
  164. 'child' => [],
  165. ],
  166. [
  167. 'title' => '代理管理',
  168. 'name' => 'store-agent/index',
  169. 'route' => 'store-agent/index',
  170. 'app_id' => 'backend',
  171. 'is_addon' => 1,
  172. 'addons_name' => 'Happiness',
  173. 'child' => [],
  174. ],
  175. [
  176. 'title' => '合伙人管理',
  177. 'name' => 'store-boss/index',
  178. 'route' => 'store-boss/index',
  179. 'app_id' => 'backend',
  180. 'is_addon' => 1,
  181. 'addons_name' => 'Happiness',
  182. 'child' => [],
  183. ],
  184. ],
  185. ],
  186. [
  187. 'title' => '加权分红',
  188. 'route' => 'store-weight/index',
  189. 'icon' => '',
  190. 'params' => [],
  191. 'child' => [
  192. [
  193. 'title' => '分红明细',
  194. 'name' => 'store-weight/index',
  195. 'route' => 'store-weight/index',
  196. 'app_id' => 'backend',
  197. 'is_addon' => 1,
  198. 'addons_name' => 'Happiness',
  199. 'child' => [],
  200. ],
  201. [
  202. 'title' => '结算周期',
  203. 'name' => 'store-weight/list',
  204. 'route' => 'store-weight/list',
  205. 'app_id' => 'backend',
  206. 'is_addon' => 1,
  207. 'addons_name' => 'Happiness',
  208. 'child' => [],
  209. ],
  210. ]
  211. ],
  212. [
  213. 'title' => '基础设置',
  214. 'route' => 'store-setting/index',
  215. 'icon' => '',
  216. 'params' => [],
  217. 'child' => [],
  218. ],
  219. ],
  220. // ----------------------- 权限配置 ----------------------- //
  221. 'authItem' => [
  222. [
  223. 'title' => '幸福小店',
  224. 'name' => '',
  225. 'app_id' => 'backend',
  226. 'is_addon' => 1,
  227. 'addons_name' => 'Happiness',
  228. 'child' => [
  229. [
  230. 'title' => '数据概况',
  231. 'name' => 'default/index',
  232. 'icon' => '',
  233. 'params' => [],
  234. 'is_addon' => 1,
  235. 'addons_name' => 'Happiness',
  236. 'child' => [],
  237. ],
  238. // [
  239. // 'title' => '首页装修',
  240. // 'name' => 'diy/index',
  241. // 'icon' => '',
  242. // 'params' => [],
  243. // 'is_addon' => 1,
  244. // 'addons_name' => 'Happiness',
  245. // 'child' => [],
  246. // ],
  247. [
  248. 'title' => '小店管理',
  249. 'name' => 'store/index',
  250. 'icon' => '',
  251. 'params' => [],
  252. 'is_addon' => 1,
  253. 'addons_name' => 'Happiness',
  254. 'child' => [],
  255. ],
  256. [
  257. 'title' => '小店选品库',
  258. 'name' => 'store-goods/index',
  259. 'icon' => '',
  260. 'params' => [],
  261. 'is_addon' => 1,
  262. 'addons_name' => 'Happiness',
  263. 'child' => [],
  264. ],
  265. [
  266. 'title' => '订单管理',
  267. 'name' => 'store-order/index',
  268. 'icon' => '',
  269. 'params' => [],
  270. 'is_addon' => 1,
  271. 'addons_name' => 'Happiness',
  272. 'child' => [],
  273. ],
  274. [
  275. 'title' => '提货订单',
  276. 'name' => 'store-voucher-order/index',
  277. 'icon' => '',
  278. 'params' => [],
  279. 'is_addon' => 1,
  280. 'addons_name' => 'Happiness',
  281. 'child' => [],
  282. ],
  283. [
  284. 'title' => '收款码订单',
  285. 'name' => 'store-casher/index',
  286. 'icon' => '',
  287. 'params' => [],
  288. 'is_addon' => 1,
  289. 'addons_name' => 'Happiness',
  290. 'child' => [],
  291. ],
  292. [
  293. 'title' => '售后管理',
  294. 'name' => 'store-order/refund-list',
  295. 'icon' => '',
  296. 'params' => [],
  297. 'is_addon' => 1,
  298. 'addons_name' => 'Happiness',
  299. 'child' => [],
  300. ],
  301. [
  302. 'title' => '小店审核',
  303. 'name' => 'store-audit/index',
  304. 'icon' => '',
  305. 'params' => [],
  306. 'is_addon' => 1,
  307. 'addons_name' => 'Happiness',
  308. 'child' => [],
  309. ],
  310. [
  311. 'title' => '核销管理',
  312. 'name' => 'store-clerk/index',
  313. 'app_id' => 'backend',
  314. 'is_addon' => 1,
  315. 'addons_name' => 'Happiness',
  316. 'child' => [
  317. [
  318. 'title' => '核销员管理',
  319. 'name' => 'store-clerk/index',
  320. 'app_id' => 'backend',
  321. 'is_addon' => 1,
  322. 'addons_name' => 'Happiness',
  323. 'child' => [],
  324. ],
  325. [
  326. 'title' => '核销统计',
  327. 'name' => 'store-clerk/clerk-log',
  328. 'app_id' => 'backend',
  329. 'is_addon' => 1,
  330. 'addons_name' => 'Happiness',
  331. 'child' => [],
  332. ],
  333. ],
  334. ],
  335. [
  336. 'title' => '流水管理',
  337. 'name' => 'store-assets/index',
  338. 'icon' => '',
  339. 'params' => [],
  340. 'is_addon' => 1,
  341. 'addons_name' => 'Happiness',
  342. 'child' => [],
  343. ],
  344. [
  345. 'title' => '流水统计',
  346. 'name' => 'store-statistics/index',
  347. 'icon' => '',
  348. 'params' => [],
  349. 'is_addon' => 1,
  350. 'addons_name' => 'Happiness',
  351. 'child' => [],
  352. ],
  353. [
  354. 'title' => '支出统计',
  355. 'name' => 'store-expenses/index',
  356. 'icon' => '',
  357. 'params' => [],
  358. 'is_addon' => 1,
  359. 'addons_name' => 'Happiness',
  360. 'child' => [],
  361. ],
  362. [
  363. 'title' => '提现审核',
  364. 'name' => 'store-cashdraw/index',
  365. 'icon' => '',
  366. 'params' => [],
  367. 'is_addon' => 1,
  368. 'addons_name' => 'Happiness',
  369. 'child' => [],
  370. ],
  371. [
  372. 'title' => '养老金',
  373. 'name' => 'store-pension/index',
  374. 'icon' => '',
  375. 'params' => [],
  376. 'is_addon' => 1,
  377. 'addons_name' => 'Happiness',
  378. 'child' => [],
  379. ],
  380. [
  381. 'title' => '加权分红',
  382. 'name' => 'store-weight/index',
  383. 'icon' => '',
  384. 'params' => [],
  385. 'is_addon' => 1,
  386. 'addons_name' => 'Happiness',
  387. 'child' => [],
  388. ],
  389. [
  390. 'title' => '推广身份',
  391. 'name' => 'store-agent/index',
  392. 'icon' => '',
  393. 'params' => [],
  394. 'is_addon' => 1,
  395. 'addons_name' => 'Happiness',
  396. 'child' => [
  397. [
  398. 'title' => '推广管理',
  399. 'name' => 'store-business/index',
  400. 'app_id' => 'backend',
  401. 'is_addon' => 1,
  402. 'addons_name' => 'Happiness',
  403. 'child' => [],
  404. ],
  405. [
  406. 'title' => '代理管理',
  407. 'name' => 'store-agent/index',
  408. 'app_id' => 'backend',
  409. 'is_addon' => 1,
  410. 'addons_name' => 'Happiness',
  411. 'child' => [],
  412. ],
  413. [
  414. 'title' => '合伙人管理',
  415. 'name' => 'store-boss/index',
  416. 'app_id' => 'backend',
  417. 'is_addon' => 1,
  418. 'addons_name' => 'Happiness',
  419. 'child' => [],
  420. ],
  421. ],
  422. ],
  423. ]
  424. ],
  425. ],
  426. // ----------------------- APP链接 ----------------------- //
  427. 'links' => [
  428. [
  429. 'title' => '代理收益',
  430. 'route' => '/customDesigns/Happiness/earningsShare?type=agent',
  431. 'icon' => '',
  432. 'params' => [],
  433. ],
  434. [
  435. 'title' => '分享收益',
  436. 'route' => '/customDesigns/Happiness/earningsShare?type=share',
  437. 'icon' => '',
  438. 'params' => [],
  439. ],
  440. [
  441. 'title' => '锁定收益',
  442. 'route' => '/customDesigns/Happiness/earningsShare?type=lock',
  443. 'icon' => '',
  444. 'params' => [],
  445. ],
  446. [
  447. 'title' => '推广收益',
  448. 'route' => '/customDesigns/Happiness/earningsShare?type=command',
  449. 'icon' => '',
  450. 'params' => [],
  451. ],
  452. [
  453. 'title' => '附近小店',
  454. 'route' => '/customDesigns/Happiness/shopSelect',
  455. 'icon' => '',
  456. 'params' => [],
  457. ],
  458. [
  459. 'title' => '小店入驻',
  460. 'route' => '/customDesigns/Happiness/shopEnter',
  461. 'icon' => '',
  462. 'params' => [],
  463. ],
  464. [
  465. 'title' => '首页',
  466. 'route' => '/customDesigns/Happiness/diy',
  467. 'icon' => '',
  468. 'params' => [],
  469. ],
  470. [
  471. 'title' => '养老金',
  472. 'route' => '/customDesigns/Happiness/pension',
  473. 'icon' => '',
  474. 'params' => [],
  475. ],
  476. [
  477. 'title' => '小店购物车',
  478. 'route' => '/customDesigns/Happiness/cart/index',
  479. 'icon' => '',
  480. 'params' => [],
  481. ],
  482. [
  483. 'title' => '养老金实名',
  484. 'route' => '/customDesigns/Happiness/real',
  485. 'icon' => '',
  486. 'params' => [],
  487. ],
  488. [
  489. 'title' => '订单核销',
  490. 'route' => '/plugins2/Store/writeoff/index',
  491. 'icon' => '',
  492. 'params' => []
  493. ]
  494. ],
  495. // ----------------------- 事件处理 ----------------------- //
  496. 'events' => [
  497. // [
  498. // 'event_name' => EventNameEnum::ORDER_CLOSE,
  499. // 'listeners' => [
  500. // 'addons\Happiness\common\listeners\OrderCloseListener',
  501. // ]
  502. // ],
  503. [
  504. 'event_name' => EventNameEnum::ORDER_PAY,
  505. 'listeners' => [
  506. 'addons\Happiness\common\listeners\OrderPaidListener',
  507. ]
  508. ],
  509. [
  510. 'event_name' => EventNameEnum::ORDER_FINISH,
  511. 'listeners' => [
  512. 'addons\Happiness\common\listeners\OrderFinishListener',
  513. ]
  514. ],
  515. [
  516. 'event_name' => EventNameEnum::ORDER_REFUND,
  517. 'listeners' => [
  518. 'addons\Happiness\common\listeners\OrderRefundCreateListener',
  519. ]
  520. ],
  521. [
  522. 'event_name' => EventNameEnum::ORDER_REFUND_FINISH,
  523. 'listeners' => [
  524. 'addons\Happiness\common\listeners\OrderRefundListener',
  525. ]
  526. ],
  527. [
  528. 'event_name' => EventNameEnum::GOODS_EDIT,
  529. 'listeners' => [
  530. 'addons\Happiness\common\listeners\GoodsEditListener',
  531. ],
  532. ],
  533. [
  534. 'event_name' => 'user_register',//订单完成
  535. 'listeners' => [
  536. 'addons\Happiness\common\listeners\UserRegisterListener',
  537. ]
  538. ],
  539. ],
  540. 'invoker' => [
  541. ['invoker_id' => \common\enums\GlobalFuncEnum::CART_LIST_APPEND_FILEDS, 'class' => 'addons\Happiness\common\service\GoodsService', 'method' => 'cartListAppendFields'],
  542. ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK, 'class' => 'addons\Happiness\common\global_func\Clerk', 'method' => 'clerk'],
  543. ['invoker_id' => \common\enums\GlobalFuncEnum::ORDER_DETAIL, 'class' => 'addons\Happiness\common\service\OrderService', 'method' => 'globalOrderDetail'],
  544. ['invoker_id' => \common\enums\GlobalFuncEnum::BACKEND_ORDER_LIST, 'class' => 'addons\Happiness\common\service\OrderService', 'method' => 'globalBackendLists'],
  545. ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK_DETAIL, 'class' => 'addons\Happiness\common\global_func\Clerk', 'method' => 'clerkDetail'],
  546. ],
  547. ];