menus.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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. /*
  158. 'shop' => [
  159. 'name' => '门店管理',
  160. 'icon' => 'icon-shop',
  161. 'index' => 'shop/index',
  162. 'submenu' => [
  163. [
  164. 'name' => '门店管理',
  165. 'active' => true,
  166. 'index' => 'shop/index',
  167. 'submenu' => [
  168. [
  169. 'name' => '门店列表',
  170. 'index' => 'shop/index',
  171. 'uris' => [
  172. 'shop/index',
  173. 'shop/add',
  174. 'shop/edit',
  175. ]
  176. ],
  177. [
  178. 'name' => '店员管理',
  179. 'index' => 'shop.clerk/index',
  180. 'uris' => [
  181. 'shop.clerk/index',
  182. 'shop.clerk/add',
  183. 'shop.clerk/edit',
  184. ]
  185. ],
  186. ]
  187. ],
  188. [
  189. 'name' => '订单核销记录',
  190. 'index' => 'shop.order/index',
  191. ]
  192. ]
  193. ],
  194. */
  195. 'content' => [
  196. 'name' => '内容管理',
  197. 'icon' => 'icon-wenzhang',
  198. 'index' => 'content.article/index',
  199. 'submenu' => [
  200. [
  201. 'name' => '文章管理',
  202. 'active' => true,
  203. 'submenu' => [
  204. [
  205. 'name' => '文章列表',
  206. 'index' => 'content.article/index',
  207. 'uris' => [
  208. 'content.article/index',
  209. 'content.article/add',
  210. 'content.article/edit',
  211. ]
  212. ],
  213. [
  214. 'name' => '文章分类',
  215. 'index' => 'content.article.category/index',
  216. 'uris' => [
  217. 'content.article.category/index',
  218. 'content.article.category/add',
  219. 'content.article.category/edit',
  220. ]
  221. ],
  222. ]
  223. ],
  224. [
  225. 'name' => '文件库管理',
  226. 'submenu' => [
  227. [
  228. 'name' => '文件分组',
  229. 'index' => 'content.files.group/index',
  230. 'uris' => [
  231. 'content.files.group/index',
  232. 'content.files.group/add',
  233. 'content.files.group/edit',
  234. ]
  235. ],
  236. [
  237. 'name' => '文件列表',
  238. 'index' => 'content.files/index'
  239. ],
  240. [
  241. 'name' => '回收站',
  242. 'index' => 'content.files/recycle',
  243. ],
  244. ]
  245. ],
  246. ]
  247. ],
  248. 'market' => [
  249. 'name' => '营销管理',
  250. 'icon' => 'icon-marketing',
  251. 'index' => 'market.coupon/index',
  252. 'submenu' => [
  253. [
  254. 'name' => '优惠券',
  255. // 'active' => true,
  256. 'submenu' => [
  257. [
  258. 'name' => '优惠券列表',
  259. 'index' => 'market.coupon/index',
  260. 'uris' => [
  261. 'market.coupon/index',
  262. 'market.coupon/add',
  263. 'market.coupon/edit',
  264. ]
  265. ],
  266. [
  267. 'name' => '领取记录',
  268. 'index' => 'market.coupon/receive'
  269. ],
  270. ]
  271. ],
  272. [
  273. 'name' => '用户充值',
  274. 'submenu' => [
  275. [
  276. 'name' => '充值套餐',
  277. 'index' => 'market.recharge.plan/index',
  278. 'uris' => [
  279. 'market.recharge.plan/index',
  280. 'market.recharge.plan/add',
  281. 'market.recharge.plan/edit',
  282. ]
  283. ],
  284. [
  285. 'name' => '充值设置',
  286. 'index' => 'market.recharge/setting'
  287. ],
  288. ]
  289. ],
  290. [
  291. 'name' => '积分管理',
  292. 'submenu' => [
  293. [
  294. 'name' => '积分设置',
  295. 'index' => 'market.points/setting'
  296. ],
  297. [
  298. 'name' => '积分明细',
  299. 'index' => 'market.points/log'
  300. ],
  301. ]
  302. ],
  303. [
  304. 'name' => '消息推送',
  305. 'submenu' => [
  306. [
  307. 'name' => '发送消息',
  308. 'index' => 'market.push/send',
  309. ],
  310. [
  311. 'name' => '活跃用户',
  312. 'index' => 'market.push/user',
  313. ],
  314. // [
  315. // 'name' => '发送日志',
  316. // 'index' => 'market.push/log',
  317. // ],
  318. ]
  319. ],
  320. [
  321. 'name' => '满额包邮',
  322. 'index' => 'market.basic/full_free',
  323. ],
  324. ],
  325. ],
  326. 'statistics' => [
  327. 'name' => '数据统计',
  328. 'icon' => 'icon-qushitu',
  329. 'index' => 'statistics.data/index',
  330. ],
  331. 'wxapp' => [
  332. 'name' => '小程序',
  333. 'icon' => 'icon-wxapp',
  334. 'color' => '#36b313',
  335. 'index' => 'wxapp/setting',
  336. 'submenu' => [
  337. [
  338. 'name' => '小程序设置',
  339. 'index' => 'wxapp/setting',
  340. ],
  341. [
  342. 'name' => '页面管理',
  343. 'active' => true,
  344. 'submenu' => [
  345. [
  346. 'name' => '页面设计',
  347. 'index' => 'wxapp.page/index',
  348. 'uris' => [
  349. 'wxapp.page/index',
  350. 'wxapp.page/add',
  351. 'wxapp.page/edit',
  352. ]
  353. ],
  354. [
  355. 'name' => '分类模板',
  356. 'index' => 'wxapp.page/category'
  357. ],
  358. [
  359. 'name' => '页面链接',
  360. 'index' => 'wxapp.page/links'
  361. ]
  362. ]
  363. ],
  364. [
  365. 'name' => '帮助中心',
  366. 'index' => 'wxapp.help/index',
  367. 'uris' => [
  368. 'wxapp.help/index',
  369. 'wxapp.help/add',
  370. 'wxapp.help/edit'
  371. ]
  372. ],
  373. ],
  374. ],
  375. 'apps' => [
  376. 'name' => '应用中心',
  377. 'icon' => 'icon-application',
  378. 'is_svg' => true, // 多色图标
  379. 'index' => 'apps.dealer.apply/index',
  380. 'submenu' => [
  381. [
  382. 'name' => '分销中心',
  383. 'submenu' => [
  384. [
  385. 'name' => '入驻申请',
  386. 'index' => 'apps.dealer.apply/index',
  387. ],
  388. [
  389. 'name' => '分销商用户',
  390. 'index' => 'apps.dealer.user/index',
  391. 'uris' => [
  392. 'apps.dealer.user/index',
  393. 'apps.dealer.user/fans',
  394. ]
  395. ],
  396. [
  397. 'name' => '分销订单',
  398. 'index' => 'apps.dealer.order/index',
  399. ],
  400. [
  401. 'name' => '提现申请',
  402. 'index' => 'apps.dealer.withdraw/index',
  403. ],
  404. [
  405. 'name' => '分销设置',
  406. 'index' => 'apps.dealer.setting/index',
  407. ],
  408. [
  409. 'name' => '分销海报',
  410. 'index' => 'apps.dealer.setting/qrcode',
  411. ],
  412. ]
  413. ],
  414. /*
  415. [
  416. 'name' => '拼团管理',
  417. 'submenu' => [
  418. [
  419. 'name' => '商品分类',
  420. 'index' => 'apps.sharing.category/index',
  421. 'uris' => [
  422. 'apps.sharing.category/index',
  423. 'apps.sharing.category/add',
  424. 'apps.sharing.category/edit',
  425. ]
  426. ],
  427. [
  428. 'name' => '商品列表',
  429. 'index' => 'apps.sharing.goods/index',
  430. 'uris' => [
  431. 'apps.sharing.goods/index',
  432. 'apps.sharing.goods/add',
  433. 'apps.sharing.goods/edit',
  434. 'apps.sharing.goods/copy',
  435. 'apps.sharing.goods/copy_master',
  436. ]
  437. ],
  438. [
  439. 'name' => '拼单管理',
  440. 'index' => 'apps.sharing.active/index',
  441. 'uris' => [
  442. 'apps.sharing.active/index',
  443. 'apps.sharing.active/users',
  444. ]
  445. ],
  446. [
  447. 'name' => '订单管理',
  448. 'index' => 'apps.sharing.order/index',
  449. 'uris' => [
  450. 'apps.sharing.order/index',
  451. 'apps.sharing.order/detail',
  452. 'apps.sharing.order.operate/batchdelivery'
  453. ]
  454. ],
  455. [
  456. 'name' => '售后管理',
  457. 'index' => 'apps.sharing.order.refund/index',
  458. 'uris' => [
  459. 'apps.sharing.order.refund/index',
  460. 'apps.sharing.order.refund/detail',
  461. ]
  462. ],
  463. [
  464. 'name' => '商品评价',
  465. 'index' => 'apps.sharing.comment/index',
  466. 'uris' => [
  467. 'apps.sharing.comment/index',
  468. 'apps.sharing.comment/detail',
  469. ],
  470. ],
  471. [
  472. 'name' => '拼团设置',
  473. 'index' => 'apps.sharing.setting/index'
  474. ]
  475. ]
  476. ],
  477. [
  478. 'name' => '砍价活动',
  479. 'index' => 'apps.bargain.active/index',
  480. 'submenu' => [
  481. [
  482. 'name' => '活动列表',
  483. 'index' => 'apps.bargain.active/index',
  484. 'uris' => [
  485. 'apps.bargain.active/index',
  486. 'apps.bargain.active/add',
  487. 'apps.bargain.active/edit',
  488. 'apps.bargain.active/delete',
  489. ],
  490. ],
  491. [
  492. 'name' => '砍价记录',
  493. 'index' => 'apps.bargain.task/index',
  494. 'uris' => [
  495. 'apps.bargain.task/index',
  496. 'apps.bargain.task/add',
  497. 'apps.bargain.task/edit',
  498. 'apps.bargain.task/delete',
  499. 'apps.bargain.task/help',
  500. ],
  501. ],
  502. [
  503. 'name' => '砍价设置',
  504. 'index' => 'apps.bargain.setting/index',
  505. ]
  506. ]
  507. ],
  508. [
  509. 'name' => '整点秒杀',
  510. 'index' => 'apps.sharp.goods/index',
  511. 'submenu' => [
  512. [
  513. 'name' => '秒杀商品',
  514. 'index' => 'apps.sharp.goods/index',
  515. 'uris' => [
  516. 'apps.sharp.goods/index',
  517. 'apps.sharp.goods/add',
  518. 'apps.sharp.goods/select',
  519. 'apps.sharp.goods/edit',
  520. 'apps.sharp.goods/delete',
  521. ],
  522. ],
  523. [
  524. 'name' => '活动会场',
  525. 'index' => 'apps.sharp.active/index',
  526. 'uris' => [
  527. 'apps.sharp.active/index',
  528. 'apps.sharp.active/add',
  529. 'apps.sharp.active/edit',
  530. 'apps.sharp.active/state',
  531. 'apps.sharp.active/delete',
  532. 'apps.sharp.active_time/index',
  533. 'apps.sharp.active_time/add',
  534. 'apps.sharp.active_time/edit',
  535. 'apps.sharp.active_time/state',
  536. 'apps.sharp.active_time/delete',
  537. ],
  538. ],
  539. [
  540. 'name' => '基础设置',
  541. 'index' => 'apps.sharp.setting/index',
  542. ]
  543. ]
  544. ],
  545. [
  546. 'name' => '好物圈',
  547. 'index' => 'apps.wow.order/index',
  548. 'submenu' => [
  549. [
  550. 'name' => '商品收藏',
  551. 'index' => 'apps.wow.shoping/index',
  552. ],
  553. [
  554. 'name' => '订单信息',
  555. 'index' => 'apps.wow.order/index',
  556. ],
  557. [
  558. 'name' => '基础设置',
  559. 'index' => 'apps.wow.setting/index',
  560. ]
  561. ]
  562. ],
  563. */
  564. ]
  565. ],
  566. 'setting' => [
  567. 'name' => '设置',
  568. 'icon' => 'icon-setting',
  569. 'index' => 'setting/store',
  570. 'submenu' => [
  571. [
  572. 'name' => '商城设置',
  573. 'index' => 'setting/store',
  574. ],
  575. [
  576. 'name' => '交易设置',
  577. 'index' => 'setting/trade',
  578. ],
  579. [
  580. 'name' => '运费模板',
  581. 'index' => 'setting.delivery/index',
  582. 'uris' => [
  583. 'setting.delivery/index',
  584. 'setting.delivery/add',
  585. 'setting.delivery/edit',
  586. ],
  587. ],
  588. [
  589. 'name' => '物流公司',
  590. 'index' => 'setting.express/index',
  591. 'uris' => [
  592. 'setting.express/index',
  593. 'setting.express/add',
  594. 'setting.express/edit',
  595. ],
  596. ],
  597. [
  598. 'name' => '短信通知',
  599. 'index' => 'setting/sms'
  600. ],
  601. [
  602. 'name' => '模板消息',
  603. 'index' => 'setting/tplmsg',
  604. 'uris' => [
  605. 'setting/tplmsg',
  606. 'setting.help/tplmsg'
  607. ],
  608. ],
  609. [
  610. 'name' => '退货地址',
  611. 'index' => 'setting.address/index',
  612. 'uris' => [
  613. 'setting.address/index',
  614. 'setting.address/add',
  615. 'setting.address/edit',
  616. ],
  617. ],
  618. [
  619. 'name' => '上传设置',
  620. 'index' => 'setting/storage',
  621. ],
  622. [
  623. 'name' => '小票打印机',
  624. 'submenu' => [
  625. [
  626. 'name' => '打印机管理',
  627. 'index' => 'setting.printer/index',
  628. 'uris' => [
  629. 'setting.printer/index',
  630. 'setting.printer/add',
  631. 'setting.printer/edit'
  632. ]
  633. ],
  634. [
  635. 'name' => '打印设置',
  636. 'index' => 'setting/printer'
  637. ]
  638. ]
  639. ],
  640. [
  641. 'name' => '其他',
  642. 'submenu' => [
  643. [
  644. 'name' => '清理缓存',
  645. 'index' => 'setting.cache/clear'
  646. ]
  647. ]
  648. ]
  649. ],
  650. ],
  651. ];