menus.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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. 'name' => '资质管理',
  246. 'active' => true,
  247. 'submenu' => [
  248. [
  249. 'name' => '资质列表',
  250. 'index' => 'content.certificate/index',
  251. 'uris' => [
  252. 'content.certificate/index',
  253. 'content.certificate/add',
  254. 'content.certificate/edit',
  255. ]
  256. ],
  257. [
  258. 'name' => '资质分类',
  259. 'index' => 'content.certificate.category/index',
  260. 'uris' => [
  261. 'content.certificate.category/index',
  262. 'content.certificate.category/add',
  263. 'content.certificate.category/edit',
  264. ]
  265. ],
  266. [
  267. 'name' => '资质申请',
  268. 'index' => 'content.certificate.watermark/index',
  269. 'uris' => [
  270. 'content.certificate.watermark/index',
  271. 'content.certificate.watermark/add',
  272. 'content.certificate.watermark/edit',
  273. ]
  274. ],
  275. ]
  276. ],
  277. ]
  278. ],
  279. 'market' => [
  280. 'name' => '营销管理',
  281. 'icon' => 'icon-marketing',
  282. 'index' => 'market.coupon/index',
  283. 'submenu' => [
  284. [
  285. 'name' => '优惠券',
  286. // 'active' => true,
  287. 'submenu' => [
  288. [
  289. 'name' => '优惠券列表',
  290. 'index' => 'market.coupon/index',
  291. 'uris' => [
  292. 'market.coupon/index',
  293. 'market.coupon/add',
  294. 'market.coupon/edit',
  295. ]
  296. ],
  297. [
  298. 'name' => '领取记录',
  299. 'index' => 'market.coupon/receive'
  300. ],
  301. ]
  302. ],
  303. [
  304. 'name' => '用户充值',
  305. 'submenu' => [
  306. [
  307. 'name' => '充值套餐',
  308. 'index' => 'market.recharge.plan/index',
  309. 'uris' => [
  310. 'market.recharge.plan/index',
  311. 'market.recharge.plan/add',
  312. 'market.recharge.plan/edit',
  313. ]
  314. ],
  315. [
  316. 'name' => '充值设置',
  317. 'index' => 'market.recharge/setting'
  318. ],
  319. ]
  320. ],
  321. [
  322. 'name' => '积分管理',
  323. 'submenu' => [
  324. [
  325. 'name' => '积分设置',
  326. 'index' => 'market.points/setting'
  327. ],
  328. [
  329. 'name' => '积分明细',
  330. 'index' => 'market.points/log'
  331. ],
  332. ]
  333. ],
  334. [
  335. 'name' => '消息推送',
  336. 'submenu' => [
  337. [
  338. 'name' => '发送消息',
  339. 'index' => 'market.push/send',
  340. ],
  341. [
  342. 'name' => '活跃用户',
  343. 'index' => 'market.push/user',
  344. ],
  345. // [
  346. // 'name' => '发送日志',
  347. // 'index' => 'market.push/log',
  348. // ],
  349. ]
  350. ],
  351. [
  352. 'name' => '满额包邮',
  353. 'index' => 'market.basic/full_free',
  354. ],
  355. ],
  356. ],
  357. 'statistics' => [
  358. 'name' => '数据统计',
  359. 'icon' => 'icon-qushitu',
  360. 'index' => 'statistics.data/index',
  361. ],
  362. 'wxapp' => [
  363. 'name' => '小程序',
  364. 'icon' => 'icon-wxapp',
  365. 'color' => '#36b313',
  366. 'index' => 'wxapp/setting',
  367. 'submenu' => [
  368. [
  369. 'name' => '小程序设置',
  370. 'index' => 'wxapp/setting',
  371. ],
  372. [
  373. 'name' => '页面管理',
  374. 'active' => true,
  375. 'submenu' => [
  376. [
  377. 'name' => '页面设计',
  378. 'index' => 'wxapp.page/index',
  379. 'uris' => [
  380. 'wxapp.page/index',
  381. 'wxapp.page/add',
  382. 'wxapp.page/edit',
  383. ]
  384. ],
  385. [
  386. 'name' => '分类模板',
  387. 'index' => 'wxapp.page/category'
  388. ],
  389. [
  390. 'name' => '页面链接',
  391. 'index' => 'wxapp.page/links'
  392. ]
  393. ]
  394. ],
  395. [
  396. 'name' => '帮助中心',
  397. 'index' => 'wxapp.help/index',
  398. 'uris' => [
  399. 'wxapp.help/index',
  400. 'wxapp.help/add',
  401. 'wxapp.help/edit'
  402. ]
  403. ],
  404. ],
  405. ],
  406. 'apps' => [
  407. 'name' => '应用中心',
  408. 'icon' => 'icon-application',
  409. 'is_svg' => true, // 多色图标
  410. 'index' => 'apps.dealer.apply/index',
  411. 'submenu' => [
  412. [
  413. 'name' => '分销中心',
  414. 'submenu' => [
  415. [
  416. 'name' => '入驻申请',
  417. 'index' => 'apps.dealer.apply/index',
  418. ],
  419. [
  420. 'name' => '分销商用户',
  421. 'index' => 'apps.dealer.user/index',
  422. 'uris' => [
  423. 'apps.dealer.user/index',
  424. 'apps.dealer.user/edit',
  425. 'apps.dealer.user/fans',
  426. ]
  427. ],
  428. [
  429. 'name' => '分销订单',
  430. 'index' => 'apps.dealer.order/index',
  431. ],
  432. [
  433. 'name' => '提现申请',
  434. 'index' => 'apps.dealer.withdraw/index',
  435. ],
  436. [
  437. 'name' => '分销设置',
  438. 'index' => 'apps.dealer.setting/index',
  439. ],
  440. [
  441. 'name' => '分销海报',
  442. 'index' => 'apps.dealer.setting/qrcode',
  443. ],
  444. ]
  445. ],
  446. [
  447. 'name' => '拼团管理',
  448. 'submenu' => [
  449. [
  450. 'name' => '商品分类',
  451. 'index' => 'apps.sharing.category/index',
  452. 'uris' => [
  453. 'apps.sharing.category/index',
  454. 'apps.sharing.category/add',
  455. 'apps.sharing.category/edit',
  456. ]
  457. ],
  458. [
  459. 'name' => '商品列表',
  460. 'index' => 'apps.sharing.goods/index',
  461. 'uris' => [
  462. 'apps.sharing.goods/index',
  463. 'apps.sharing.goods/add',
  464. 'apps.sharing.goods/edit',
  465. 'apps.sharing.goods/copy',
  466. 'apps.sharing.goods/copy_master',
  467. ]
  468. ],
  469. [
  470. 'name' => '拼单管理',
  471. 'index' => 'apps.sharing.active/index',
  472. 'uris' => [
  473. 'apps.sharing.active/index',
  474. 'apps.sharing.active/users',
  475. ]
  476. ],
  477. [
  478. 'name' => '订单管理',
  479. 'index' => 'apps.sharing.order/index',
  480. 'uris' => [
  481. 'apps.sharing.order/index',
  482. 'apps.sharing.order/detail',
  483. 'apps.sharing.order.operate/batchdelivery'
  484. ]
  485. ],
  486. [
  487. 'name' => '售后管理',
  488. 'index' => 'apps.sharing.order.refund/index',
  489. 'uris' => [
  490. 'apps.sharing.order.refund/index',
  491. 'apps.sharing.order.refund/detail',
  492. ]
  493. ],
  494. [
  495. 'name' => '商品评价',
  496. 'index' => 'apps.sharing.comment/index',
  497. 'uris' => [
  498. 'apps.sharing.comment/index',
  499. 'apps.sharing.comment/detail',
  500. ],
  501. ],
  502. [
  503. 'name' => '拼团设置',
  504. 'index' => 'apps.sharing.setting/index'
  505. ]
  506. ]
  507. ],
  508. [
  509. 'name' => '砍价活动',
  510. 'index' => 'apps.bargain.active/index',
  511. 'submenu' => [
  512. [
  513. 'name' => '活动列表',
  514. 'index' => 'apps.bargain.active/index',
  515. 'uris' => [
  516. 'apps.bargain.active/index',
  517. 'apps.bargain.active/add',
  518. 'apps.bargain.active/edit',
  519. 'apps.bargain.active/delete',
  520. ],
  521. ],
  522. [
  523. 'name' => '砍价记录',
  524. 'index' => 'apps.bargain.task/index',
  525. 'uris' => [
  526. 'apps.bargain.task/index',
  527. 'apps.bargain.task/add',
  528. 'apps.bargain.task/edit',
  529. 'apps.bargain.task/delete',
  530. 'apps.bargain.task/help',
  531. ],
  532. ],
  533. [
  534. 'name' => '砍价设置',
  535. 'index' => 'apps.bargain.setting/index',
  536. ]
  537. ]
  538. ],
  539. [
  540. 'name' => '整点秒杀',
  541. 'index' => 'apps.sharp.goods/index',
  542. 'submenu' => [
  543. [
  544. 'name' => '秒杀商品',
  545. 'index' => 'apps.sharp.goods/index',
  546. 'uris' => [
  547. 'apps.sharp.goods/index',
  548. 'apps.sharp.goods/add',
  549. 'apps.sharp.goods/select',
  550. 'apps.sharp.goods/edit',
  551. 'apps.sharp.goods/delete',
  552. ],
  553. ],
  554. [
  555. 'name' => '活动会场',
  556. 'index' => 'apps.sharp.active/index',
  557. 'uris' => [
  558. 'apps.sharp.active/index',
  559. 'apps.sharp.active/add',
  560. 'apps.sharp.active/edit',
  561. 'apps.sharp.active/state',
  562. 'apps.sharp.active/delete',
  563. 'apps.sharp.active_time/index',
  564. 'apps.sharp.active_time/add',
  565. 'apps.sharp.active_time/edit',
  566. 'apps.sharp.active_time/state',
  567. 'apps.sharp.active_time/delete',
  568. ],
  569. ],
  570. [
  571. 'name' => '基础设置',
  572. 'index' => 'apps.sharp.setting/index',
  573. ]
  574. ]
  575. ],
  576. [
  577. 'name' => '好物圈',
  578. 'index' => 'apps.wow.shoping/index',
  579. 'submenu' => [
  580. [
  581. 'name' => '商品收藏',
  582. 'index' => 'apps.wow.shoping/index',
  583. ],
  584. [
  585. 'name' => '订单信息',
  586. 'index' => 'apps.wow.order/index',
  587. ],
  588. [
  589. 'name' => '基础设置',
  590. 'index' => 'apps.wow.setting/index',
  591. ]
  592. ]
  593. ],
  594. // [
  595. // 'name' => '小程序直播',
  596. // 'index' => 'apps.live.room/index',
  597. // 'submenu' => [
  598. // [
  599. // 'name' => '直播间管理',
  600. // 'index' => 'apps.live.room/index',
  601. // ],
  602. // ]
  603. // ],
  604. ]
  605. ],
  606. 'setting' => [
  607. 'name' => '设置',
  608. 'icon' => 'icon-setting',
  609. 'index' => 'setting/store',
  610. 'submenu' => [
  611. [
  612. 'name' => '商城设置',
  613. 'index' => 'setting/store',
  614. ],
  615. [
  616. 'name' => '交易设置',
  617. 'index' => 'setting/trade',
  618. ],
  619. [
  620. 'name' => '运费模板',
  621. 'index' => 'setting.delivery/index',
  622. 'uris' => [
  623. 'setting.delivery/index',
  624. 'setting.delivery/add',
  625. 'setting.delivery/edit',
  626. ],
  627. ],
  628. [
  629. 'name' => '物流公司',
  630. 'index' => 'setting.express/index',
  631. 'uris' => [
  632. 'setting.express/index',
  633. 'setting.express/add',
  634. 'setting.express/edit',
  635. ],
  636. ],
  637. [
  638. 'name' => '短信通知',
  639. 'index' => 'setting/sms'
  640. ],
  641. [
  642. 'name' => '模板消息',
  643. 'index' => 'setting/tplmsg',
  644. 'uris' => [
  645. 'setting/tplmsg',
  646. 'setting.help/tplmsg'
  647. ],
  648. ],
  649. [
  650. 'name' => '退货地址',
  651. 'index' => 'setting.address/index',
  652. 'uris' => [
  653. 'setting.address/index',
  654. 'setting.address/add',
  655. 'setting.address/edit',
  656. ],
  657. ],
  658. [
  659. 'name' => '上传设置',
  660. 'index' => 'setting/storage',
  661. ],
  662. [
  663. 'name' => '小票打印机',
  664. 'submenu' => [
  665. [
  666. 'name' => '打印机管理',
  667. 'index' => 'setting.printer/index',
  668. 'uris' => [
  669. 'setting.printer/index',
  670. 'setting.printer/add',
  671. 'setting.printer/edit'
  672. ]
  673. ],
  674. [
  675. 'name' => '打印设置',
  676. 'index' => 'setting/printer'
  677. ]
  678. ]
  679. ],
  680. [
  681. 'name' => '其他',
  682. 'submenu' => [
  683. [
  684. 'name' => '清理缓存',
  685. 'index' => 'setting.cache/clear'
  686. ]
  687. ]
  688. ]
  689. ],
  690. ],
  691. ];