menus.php 15 KB

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