menus.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  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.help/index',
  365. 'uris' => [
  366. 'wxapp.help/index',
  367. 'wxapp.help/add',
  368. 'wxapp.help/edit'
  369. ]
  370. ],
  371. ],
  372. ],
  373. 'apps' => [
  374. 'name' => '应用中心',
  375. 'icon' => 'icon-application',
  376. 'is_svg' => true, // 多色图标
  377. 'index' => 'apps.dealer.apply/index',
  378. 'submenu' => [
  379. [
  380. 'name' => '分销中心',
  381. 'submenu' => [
  382. [
  383. 'name' => '入驻申请',
  384. 'index' => 'apps.dealer.apply/index',
  385. ],
  386. [
  387. 'name' => '分销商用户',
  388. 'index' => 'apps.dealer.user/index',
  389. 'uris' => [
  390. 'apps.dealer.user/index',
  391. 'apps.dealer.user/edit',
  392. 'apps.dealer.user/fans',
  393. ]
  394. ],
  395. [
  396. 'name' => '分销订单',
  397. 'index' => 'apps.dealer.order/index',
  398. ],
  399. [
  400. 'name' => '提现申请',
  401. 'index' => 'apps.dealer.withdraw/index',
  402. ],
  403. [
  404. 'name' => '分销设置',
  405. 'index' => 'apps.dealer.setting/index',
  406. ],
  407. [
  408. 'name' => '分销海报',
  409. 'index' => 'apps.dealer.setting/qrcode',
  410. ],
  411. ]
  412. ],
  413. [
  414. 'name' => '拼团管理',
  415. 'submenu' => [
  416. [
  417. 'name' => '商品分类',
  418. 'index' => 'apps.sharing.category/index',
  419. 'uris' => [
  420. 'apps.sharing.category/index',
  421. 'apps.sharing.category/add',
  422. 'apps.sharing.category/edit',
  423. ]
  424. ],
  425. [
  426. 'name' => '商品列表',
  427. 'index' => 'apps.sharing.goods/index',
  428. 'uris' => [
  429. 'apps.sharing.goods/index',
  430. 'apps.sharing.goods/add',
  431. 'apps.sharing.goods/edit',
  432. 'apps.sharing.goods/copy',
  433. 'apps.sharing.goods/copy_master',
  434. ]
  435. ],
  436. [
  437. 'name' => '拼单管理',
  438. 'index' => 'apps.sharing.active/index',
  439. 'uris' => [
  440. 'apps.sharing.active/index',
  441. 'apps.sharing.active/users',
  442. ]
  443. ],
  444. [
  445. 'name' => '订单管理',
  446. 'index' => 'apps.sharing.order/index',
  447. 'uris' => [
  448. 'apps.sharing.order/index',
  449. 'apps.sharing.order/detail',
  450. 'apps.sharing.order.operate/batchdelivery'
  451. ]
  452. ],
  453. [
  454. 'name' => '售后管理',
  455. 'index' => 'apps.sharing.order.refund/index',
  456. 'uris' => [
  457. 'apps.sharing.order.refund/index',
  458. 'apps.sharing.order.refund/detail',
  459. ]
  460. ],
  461. [
  462. 'name' => '商品评价',
  463. 'index' => 'apps.sharing.comment/index',
  464. 'uris' => [
  465. 'apps.sharing.comment/index',
  466. 'apps.sharing.comment/detail',
  467. ],
  468. ],
  469. [
  470. 'name' => '拼团设置',
  471. 'index' => 'apps.sharing.setting/index'
  472. ]
  473. ]
  474. ],
  475. [
  476. 'name' => '砍价活动',
  477. 'index' => 'apps.bargain.active/index',
  478. 'submenu' => [
  479. [
  480. 'name' => '活动列表',
  481. 'index' => 'apps.bargain.active/index',
  482. 'uris' => [
  483. 'apps.bargain.active/index',
  484. 'apps.bargain.active/add',
  485. 'apps.bargain.active/edit',
  486. 'apps.bargain.active/delete',
  487. ],
  488. ],
  489. [
  490. 'name' => '砍价记录',
  491. 'index' => 'apps.bargain.task/index',
  492. 'uris' => [
  493. 'apps.bargain.task/index',
  494. 'apps.bargain.task/add',
  495. 'apps.bargain.task/edit',
  496. 'apps.bargain.task/delete',
  497. 'apps.bargain.task/help',
  498. ],
  499. ],
  500. [
  501. 'name' => '砍价设置',
  502. 'index' => 'apps.bargain.setting/index',
  503. ]
  504. ]
  505. ],
  506. [
  507. 'name' => '整点秒杀',
  508. 'index' => 'apps.sharp.goods/index',
  509. 'submenu' => [
  510. [
  511. 'name' => '秒杀商品',
  512. 'index' => 'apps.sharp.goods/index',
  513. 'uris' => [
  514. 'apps.sharp.goods/index',
  515. 'apps.sharp.goods/add',
  516. 'apps.sharp.goods/select',
  517. 'apps.sharp.goods/edit',
  518. 'apps.sharp.goods/delete',
  519. ],
  520. ],
  521. [
  522. 'name' => '活动会场',
  523. 'index' => 'apps.sharp.active/index',
  524. 'uris' => [
  525. 'apps.sharp.active/index',
  526. 'apps.sharp.active/add',
  527. 'apps.sharp.active/edit',
  528. 'apps.sharp.active/state',
  529. 'apps.sharp.active/delete',
  530. 'apps.sharp.active_time/index',
  531. 'apps.sharp.active_time/add',
  532. 'apps.sharp.active_time/edit',
  533. 'apps.sharp.active_time/state',
  534. 'apps.sharp.active_time/delete',
  535. ],
  536. ],
  537. [
  538. 'name' => '基础设置',
  539. 'index' => 'apps.sharp.setting/index',
  540. ]
  541. ]
  542. ],
  543. [
  544. 'name' => '好物圈',
  545. 'index' => 'apps.wow.shoping/index',
  546. 'submenu' => [
  547. [
  548. 'name' => '商品收藏',
  549. 'index' => 'apps.wow.shoping/index',
  550. ],
  551. [
  552. 'name' => '订单信息',
  553. 'index' => 'apps.wow.order/index',
  554. ],
  555. [
  556. 'name' => '基础设置',
  557. 'index' => 'apps.wow.setting/index',
  558. ]
  559. ]
  560. ],
  561. // [
  562. // 'name' => '小程序直播',
  563. // 'index' => 'apps.live.room/index',
  564. // 'submenu' => [
  565. // [
  566. // 'name' => '直播间管理',
  567. // 'index' => 'apps.live.room/index',
  568. // ],
  569. // ]
  570. // ],
  571. ]
  572. ],
  573. 'setting' => [
  574. 'name' => '设置',
  575. 'icon' => 'icon-setting',
  576. 'index' => 'setting/store',
  577. 'submenu' => [
  578. [
  579. 'name' => '商城设置',
  580. 'index' => 'setting/store',
  581. ],
  582. [
  583. 'name' => '交易设置',
  584. 'index' => 'setting/trade',
  585. ],
  586. [
  587. 'name' => '运费模板',
  588. 'index' => 'setting.delivery/index',
  589. 'uris' => [
  590. 'setting.delivery/index',
  591. 'setting.delivery/add',
  592. 'setting.delivery/edit',
  593. ],
  594. ],
  595. [
  596. 'name' => '物流公司',
  597. 'index' => 'setting.express/index',
  598. 'uris' => [
  599. 'setting.express/index',
  600. 'setting.express/add',
  601. 'setting.express/edit',
  602. ],
  603. ],
  604. [
  605. 'name' => '短信通知',
  606. 'index' => 'setting/sms'
  607. ],
  608. [
  609. 'name' => '模板消息',
  610. 'index' => 'setting/tplmsg',
  611. 'uris' => [
  612. 'setting/tplmsg',
  613. 'setting.help/tplmsg'
  614. ],
  615. ],
  616. [
  617. 'name' => '退货地址',
  618. 'index' => 'setting.address/index',
  619. 'uris' => [
  620. 'setting.address/index',
  621. 'setting.address/add',
  622. 'setting.address/edit',
  623. ],
  624. ],
  625. [
  626. 'name' => '上传设置',
  627. 'index' => 'setting/storage',
  628. ],
  629. [
  630. 'name' => '小票打印机',
  631. 'submenu' => [
  632. [
  633. 'name' => '打印机管理',
  634. 'index' => 'setting.printer/index',
  635. 'uris' => [
  636. 'setting.printer/index',
  637. 'setting.printer/add',
  638. 'setting.printer/edit'
  639. ]
  640. ],
  641. [
  642. 'name' => '打印设置',
  643. 'index' => 'setting/printer'
  644. ]
  645. ]
  646. ],
  647. [
  648. 'name' => '其他',
  649. 'submenu' => [
  650. [
  651. 'name' => '清理缓存',
  652. 'index' => 'setting.cache/clear'
  653. ]
  654. ]
  655. ]
  656. ],
  657. ],
  658. ];