menus.php 22 KB

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