menus.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <?php
  2. /**
  3. * 后台菜单配置
  4. * 'home' => [
  5. * 'name' => '首页', // 菜单名称
  6. * 'icon' => 'icon-home', // 图标 (class)
  7. * 'index' => 'index/index', // 链接
  8. * ],
  9. */
  10. return [
  11. 'index' => [
  12. 'name' => '首页',
  13. 'icon' => 'icon-home',
  14. 'index' => 'index/index',
  15. ],
  16. 'store' => [
  17. 'name' => '管理员',
  18. 'icon' => 'icon-guanliyuan',
  19. 'index' => 'store.user/index',
  20. 'submenu' => [
  21. [
  22. 'name' => '管理员列表',
  23. 'index' => 'store.user/index',
  24. 'uris' => [
  25. 'store.user/index',
  26. 'store.user/add',
  27. 'store.user/edit',
  28. 'store.user/delete',
  29. ],
  30. ],
  31. [
  32. 'name' => '角色管理',
  33. 'index' => 'store.role/index',
  34. 'uris' => [
  35. 'store.role/index',
  36. 'store.role/add',
  37. 'store.role/edit',
  38. 'store.role/delete',
  39. ],
  40. ],
  41. ]
  42. ],
  43. 'goods' => [
  44. 'name' => '商品管理',
  45. 'icon' => 'icon-goods',
  46. 'index' => 'goods/index',
  47. 'submenu' => [
  48. [
  49. 'name' => '商品列表',
  50. 'index' => 'goods/index',
  51. 'uris' => [
  52. 'goods/index',
  53. 'goods/add',
  54. 'goods/edit',
  55. 'goods/copy'
  56. ],
  57. ],
  58. [
  59. 'name' => '商品分类',
  60. 'index' => 'goods.category/index',
  61. 'uris' => [
  62. 'goods.category/index',
  63. 'goods.category/add',
  64. 'goods.category/edit',
  65. ],
  66. ],
  67. [
  68. 'name' => '商品评价',
  69. 'index' => 'goods.comment/index',
  70. 'uris' => [
  71. 'goods.comment/index',
  72. 'goods.comment/detail',
  73. ],
  74. ]
  75. ],
  76. ],
  77. 'order' => [
  78. 'name' => '订单管理',
  79. 'icon' => 'icon-order',
  80. 'index' => 'order/all_list',
  81. 'submenu' => [
  82. [
  83. 'name' => '全部订单',
  84. 'index' => 'order/all_list',
  85. ],
  86. [
  87. 'name' => '待发货',
  88. 'index' => 'order/delivery_list',
  89. ],
  90. [
  91. 'name' => '待收货',
  92. 'index' => 'order/receipt_list',
  93. ],
  94. [
  95. 'name' => '待付款',
  96. 'index' => 'order/pay_list',
  97. ],
  98. [
  99. 'name' => '已完成',
  100. 'index' => 'order/complete_list',
  101. ],
  102. [
  103. 'name' => '已取消',
  104. 'index' => 'order/cancel_list',
  105. ],
  106. [
  107. 'name' => '售后管理',
  108. 'index' => 'order.refund/index',
  109. 'uris' => [
  110. 'order.refund/index',
  111. 'order.refund/detail',
  112. ]
  113. ],
  114. ]
  115. ],
  116. 'user' => [
  117. 'name' => '用户管理',
  118. 'icon' => 'icon-user',
  119. 'index' => 'user/index',
  120. 'submenu' => [
  121. [
  122. 'name' => '用户列表',
  123. 'index' => 'user/index',
  124. ],
  125. [
  126. 'name' => '会员等级',
  127. 'active' => true,
  128. 'submenu' => [
  129. [
  130. 'name' => '等级管理',
  131. 'index' => 'user.grade/index',
  132. 'uris' => [
  133. 'user.grade/index',
  134. 'user.grade/add',
  135. 'user.grade/edit',
  136. 'user.grade/delete',
  137. ]
  138. ],
  139. ]
  140. ],
  141. [
  142. 'name' => '余额记录',
  143. 'active' => true,
  144. 'submenu' => [
  145. [
  146. 'name' => '充值记录',
  147. 'index' => 'user.recharge/order',
  148. ],
  149. [
  150. 'name' => '余额明细',
  151. 'index' => 'user.balance/log',
  152. ],
  153. ]
  154. ],
  155. ]
  156. ],
  157. 'shop' => [
  158. 'name' => '门店管理',
  159. 'icon' => 'icon-shop',
  160. 'index' => 'shop/index',
  161. 'submenu' => [
  162. [
  163. 'name' => '门店管理',
  164. 'active' => true,
  165. 'index' => 'shop/index',
  166. 'submenu' => [
  167. [
  168. 'name' => '门店列表',
  169. 'index' => 'shop/index',
  170. 'uris' => [
  171. 'shop/index',
  172. 'shop/add',
  173. 'shop/edit',
  174. ]
  175. ],
  176. [
  177. 'name' => '店员管理',
  178. 'index' => 'shop.clerk/index',
  179. 'uris' => [
  180. 'shop.clerk/index',
  181. 'shop.clerk/add',
  182. 'shop.clerk/edit',
  183. ]
  184. ],
  185. ]
  186. ],
  187. [
  188. 'name' => '订单核销记录',
  189. 'index' => 'shop.order/index',
  190. ]
  191. ]
  192. ],
  193. 'content' => [
  194. 'name' => '内容管理',
  195. 'icon' => 'icon-wenzhang',
  196. 'index' => 'content.article/index',
  197. 'submenu' => [
  198. [
  199. 'name' => '文章管理',
  200. 'active' => true,
  201. 'submenu' => [
  202. [
  203. 'name' => '文章列表',
  204. 'index' => 'content.article/index',
  205. 'uris' => [
  206. 'content.article/index',
  207. 'content.article/add',
  208. 'content.article/edit',
  209. ]
  210. ],
  211. [
  212. 'name' => '文章分类',
  213. 'index' => 'content.article.category/index',
  214. 'uris' => [
  215. 'content.article.category/index',
  216. 'content.article.category/add',
  217. 'content.article.category/edit',
  218. ]
  219. ],
  220. ]
  221. ],
  222. [
  223. 'name' => '文件库管理',
  224. 'submenu' => [
  225. [
  226. 'name' => '文件分组',
  227. 'index' => 'content.files.group/index',
  228. 'uris' => [
  229. 'content.files.group/index',
  230. 'content.files.group/add',
  231. 'content.files.group/edit',
  232. ]
  233. ],
  234. [
  235. 'name' => '文件列表',
  236. 'index' => 'content.files/index'
  237. ],
  238. [
  239. 'name' => '回收站',
  240. 'index' => 'content.files/recycle',
  241. ],
  242. ]
  243. ],
  244. ]
  245. ],
  246. 'market' => [
  247. 'name' => '营销管理',
  248. 'icon' => 'icon-marketing',
  249. 'index' => 'market.coupon/index',
  250. 'submenu' => [
  251. [
  252. 'name' => '优惠券',
  253. // 'active' => true,
  254. 'submenu' => [
  255. [
  256. 'name' => '优惠券列表',
  257. 'index' => 'market.coupon/index',
  258. 'uris' => [
  259. 'market.coupon/index',
  260. 'market.coupon/add',
  261. 'market.coupon/edit',
  262. ]
  263. ],
  264. [
  265. 'name' => '领取记录',
  266. 'index' => 'market.coupon/receive'
  267. ],
  268. ]
  269. ],
  270. [
  271. 'name' => '用户充值',
  272. 'submenu' => [
  273. [
  274. 'name' => '充值套餐',
  275. 'index' => 'market.recharge.plan/index',
  276. 'uris' => [
  277. 'market.recharge.plan/index',
  278. 'market.recharge.plan/add',
  279. 'market.recharge.plan/edit',
  280. ]
  281. ],
  282. [
  283. 'name' => '充值设置',
  284. 'index' => 'market.recharge/setting'
  285. ],
  286. ]
  287. ],
  288. [
  289. 'name' => '积分管理',
  290. 'submenu' => [
  291. [
  292. 'name' => '积分设置',
  293. 'index' => 'market.points/setting'
  294. ],
  295. [
  296. 'name' => '积分明细',
  297. 'index' => 'market.points/log'
  298. ],
  299. ]
  300. ],
  301. [
  302. 'name' => '消息推送',
  303. 'submenu' => [
  304. [
  305. 'name' => '发送消息',
  306. 'index' => 'market.push/send',
  307. ],
  308. [
  309. 'name' => '活跃用户',
  310. 'index' => 'market.push/user',
  311. ],
  312. // [
  313. // 'name' => '发送日志',
  314. // 'index' => 'market.push/log',
  315. // ],
  316. ]
  317. ],
  318. [
  319. 'name' => '满额包邮',
  320. 'index' => 'market.basic/full_free',
  321. ],
  322. ],
  323. ],
  324. 'statistics' => [
  325. 'name' => '数据统计',
  326. 'icon' => 'icon-qushitu',
  327. 'index' => 'statistics.data/index',
  328. ],
  329. 'wxapp' => [
  330. 'name' => '小程序',
  331. 'icon' => 'icon-wxapp',
  332. 'color' => '#36b313',
  333. 'index' => 'wxapp/setting',
  334. 'submenu' => [
  335. [
  336. 'name' => '小程序设置',
  337. 'index' => 'wxapp/setting',
  338. ],
  339. [
  340. 'name' => '页面管理',
  341. 'active' => true,
  342. 'submenu' => [
  343. [
  344. 'name' => '页面设计',
  345. 'index' => 'wxapp.page/index',
  346. 'uris' => [
  347. 'wxapp.page/index',
  348. 'wxapp.page/add',
  349. 'wxapp.page/edit',
  350. ]
  351. ],
  352. [
  353. 'name' => '分类模板',
  354. 'index' => 'wxapp.page/category'
  355. ],
  356. [
  357. 'name' => '页面链接',
  358. 'index' => 'wxapp.page/links'
  359. ]
  360. ]
  361. ],
  362. [
  363. 'name' => '订阅消息',
  364. 'index' => 'wxapp.submsg/index',
  365. 'uris' => [
  366. 'wxapp.submsg/index',
  367. ]
  368. ],
  369. [
  370. 'name' => '帮助中心',
  371. 'index' => 'wxapp.help/index',
  372. 'uris' => [
  373. 'wxapp.help/index',
  374. 'wxapp.help/add',
  375. 'wxapp.help/edit'
  376. ]
  377. ],
  378. ],
  379. ],
  380. 'apps' => [
  381. 'name' => '应用中心',
  382. 'icon' => 'icon-application',
  383. 'is_svg' => true, // 多色图标
  384. 'index' => 'apps.dealer.apply/index',
  385. 'submenu' => [
  386. [
  387. 'name' => '分销中心',
  388. 'submenu' => [
  389. [
  390. 'name' => '入驻申请',
  391. 'index' => 'apps.dealer.apply/index',
  392. ],
  393. [
  394. 'name' => '分销商用户',
  395. 'index' => 'apps.dealer.user/index',
  396. 'uris' => [
  397. 'apps.dealer.user/index',
  398. 'apps.dealer.user/edit',
  399. 'apps.dealer.user/fans',
  400. ]
  401. ],
  402. [
  403. 'name' => '分销订单',
  404. 'index' => 'apps.dealer.order/index',
  405. ],
  406. [
  407. 'name' => '提现申请',
  408. 'index' => 'apps.dealer.withdraw/index',
  409. ],
  410. [
  411. 'name' => '分销设置',
  412. 'index' => 'apps.dealer.setting/index',
  413. ],
  414. [
  415. 'name' => '分销海报',
  416. 'index' => 'apps.dealer.setting/qrcode',
  417. ],
  418. ]
  419. ],
  420. [
  421. 'name' => '拼团管理',
  422. 'submenu' => [
  423. [
  424. 'name' => '商品分类',
  425. 'index' => 'apps.sharing.category/index',
  426. 'uris' => [
  427. 'apps.sharing.category/index',
  428. 'apps.sharing.category/add',
  429. 'apps.sharing.category/edit',
  430. ]
  431. ],
  432. [
  433. 'name' => '商品列表',
  434. 'index' => 'apps.sharing.goods/index',
  435. 'uris' => [
  436. 'apps.sharing.goods/index',
  437. 'apps.sharing.goods/add',
  438. 'apps.sharing.goods/edit',
  439. 'apps.sharing.goods/copy',
  440. 'apps.sharing.goods/copy_master',
  441. ]
  442. ],
  443. [
  444. 'name' => '拼单管理',
  445. 'index' => 'apps.sharing.active/index',
  446. 'uris' => [
  447. 'apps.sharing.active/index',
  448. 'apps.sharing.active/users',
  449. ]
  450. ],
  451. [
  452. 'name' => '订单管理',
  453. 'index' => 'apps.sharing.order/index',
  454. 'uris' => [
  455. 'apps.sharing.order/index',
  456. 'apps.sharing.order/detail',
  457. 'apps.sharing.order.operate/batchdelivery'
  458. ]
  459. ],
  460. [
  461. 'name' => '售后管理',
  462. 'index' => 'apps.sharing.order.refund/index',
  463. 'uris' => [
  464. 'apps.sharing.order.refund/index',
  465. 'apps.sharing.order.refund/detail',
  466. ]
  467. ],
  468. [
  469. 'name' => '商品评价',
  470. 'index' => 'apps.sharing.comment/index',
  471. 'uris' => [
  472. 'apps.sharing.comment/index',
  473. 'apps.sharing.comment/detail',
  474. ],
  475. ],
  476. [
  477. 'name' => '拼团设置',
  478. 'index' => 'apps.sharing.setting/index'
  479. ]
  480. ]
  481. ],
  482. [
  483. 'name' => '砍价活动',
  484. 'index' => 'apps.bargain.active/index',
  485. 'submenu' => [
  486. [
  487. 'name' => '活动列表',
  488. 'index' => 'apps.bargain.active/index',
  489. 'uris' => [
  490. 'apps.bargain.active/index',
  491. 'apps.bargain.active/add',
  492. 'apps.bargain.active/edit',
  493. 'apps.bargain.active/delete',
  494. ],
  495. ],
  496. [
  497. 'name' => '砍价记录',
  498. 'index' => 'apps.bargain.task/index',
  499. 'uris' => [
  500. 'apps.bargain.task/index',
  501. 'apps.bargain.task/add',
  502. 'apps.bargain.task/edit',
  503. 'apps.bargain.task/delete',
  504. 'apps.bargain.task/help',
  505. ],
  506. ],
  507. [
  508. 'name' => '砍价设置',
  509. 'index' => 'apps.bargain.setting/index',
  510. ]
  511. ]
  512. ],
  513. [
  514. 'name' => '整点秒杀',
  515. 'index' => 'apps.sharp.goods/index',
  516. 'submenu' => [
  517. [
  518. 'name' => '秒杀商品',
  519. 'index' => 'apps.sharp.goods/index',
  520. 'uris' => [
  521. 'apps.sharp.goods/index',
  522. 'apps.sharp.goods/add',
  523. 'apps.sharp.goods/select',
  524. 'apps.sharp.goods/edit',
  525. 'apps.sharp.goods/delete',
  526. ],
  527. ],
  528. [
  529. 'name' => '活动会场',
  530. 'index' => 'apps.sharp.active/index',
  531. 'uris' => [
  532. 'apps.sharp.active/index',
  533. 'apps.sharp.active/add',
  534. 'apps.sharp.active/edit',
  535. 'apps.sharp.active/state',
  536. 'apps.sharp.active/delete',
  537. 'apps.sharp.active_time/index',
  538. 'apps.sharp.active_time/add',
  539. 'apps.sharp.active_time/edit',
  540. 'apps.sharp.active_time/state',
  541. 'apps.sharp.active_time/delete',
  542. ],
  543. ],
  544. [
  545. 'name' => '基础设置',
  546. 'index' => 'apps.sharp.setting/index',
  547. ]
  548. ]
  549. ],
  550. [
  551. 'name' => '好物圈',
  552. 'index' => 'apps.wow.shoping/index',
  553. 'submenu' => [
  554. [
  555. 'name' => '商品收藏',
  556. 'index' => 'apps.wow.shoping/index',
  557. ],
  558. [
  559. 'name' => '订单信息',
  560. 'index' => 'apps.wow.order/index',
  561. ],
  562. [
  563. 'name' => '基础设置',
  564. 'index' => 'apps.wow.setting/index',
  565. ]
  566. ]
  567. ],
  568. [
  569. 'name' => '小程序直播',
  570. 'index' => 'apps.live.room/index',
  571. 'submenu' => [
  572. [
  573. 'name' => '直播间管理',
  574. 'index' => 'apps.live.room/index',
  575. ],
  576. ]
  577. ],
  578. ]
  579. ],
  580. 'setting' => [
  581. 'name' => '设置',
  582. 'icon' => 'icon-setting',
  583. 'index' => 'setting/store',
  584. 'submenu' => [
  585. [
  586. 'name' => '商城设置',
  587. 'index' => 'setting/store',
  588. ],
  589. [
  590. 'name' => '交易设置',
  591. 'index' => 'setting/trade',
  592. ],
  593. [
  594. 'name' => '运费模板',
  595. 'index' => 'setting.delivery/index',
  596. 'uris' => [
  597. 'setting.delivery/index',
  598. 'setting.delivery/add',
  599. 'setting.delivery/edit',
  600. ],
  601. ],
  602. [
  603. 'name' => '物流公司',
  604. 'index' => 'setting.express/index',
  605. 'uris' => [
  606. 'setting.express/index',
  607. 'setting.express/add',
  608. 'setting.express/edit',
  609. ],
  610. ],
  611. [
  612. 'name' => '短信通知',
  613. 'index' => 'setting/sms'
  614. ],
  615. // [
  616. // 'name' => '模板消息',
  617. // 'index' => 'setting/tplmsg',
  618. // 'uris' => [
  619. // 'setting/tplmsg',
  620. // 'setting.help/tplmsg'
  621. //
  622. // ],
  623. // ],
  624. [
  625. 'name' => '退货地址',
  626. 'index' => 'setting.address/index',
  627. 'uris' => [
  628. 'setting.address/index',
  629. 'setting.address/add',
  630. 'setting.address/edit',
  631. ],
  632. ],
  633. [
  634. 'name' => '上传设置',
  635. 'index' => 'setting/storage',
  636. ],
  637. [
  638. 'name' => '小票打印机',
  639. 'submenu' => [
  640. [
  641. 'name' => '打印机管理',
  642. 'index' => 'setting.printer/index',
  643. 'uris' => [
  644. 'setting.printer/index',
  645. 'setting.printer/add',
  646. 'setting.printer/edit'
  647. ]
  648. ],
  649. [
  650. 'name' => '打印设置',
  651. 'index' => 'setting/printer'
  652. ]
  653. ]
  654. ],
  655. [
  656. 'name' => '其他',
  657. 'submenu' => [
  658. [
  659. 'name' => '清理缓存',
  660. 'index' => 'setting.cache/clear'
  661. ]
  662. ]
  663. ]
  664. ],
  665. ],
  666. ];