menu.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Leo
  5. * Date: 2017/9/3
  6. * Time: 下午3:23
  7. */
  8. return [
  9. 'dashboard'=>[
  10. 'name'=>'控制台',
  11. 'class' => '',
  12. 'icon'=>'el-icon-guide',
  13. 'controller'=>'dashboard',
  14. 'action'=>'index',
  15. 'routePath'=>'dashboard/index',
  16. 'show'=>1,
  17. 'child'=>[
  18. ['name'=>'月奖金量', 'class'=>'', 'icon'=>'', 'controller'=>'dashboard', 'action'=>'bonus-num', 'routePath'=>'dashboard/bonus-num', 'show'=>0,],
  19. ]
  20. ],
  21. 'shop'=>[
  22. 'name'=>'商城管理',
  23. 'class' => '',
  24. 'icon'=>'el-icon-goods',
  25. 'controller'=>'shop',
  26. 'action'=>'',
  27. 'routePath'=>'shop',
  28. 'show'=>1,
  29. 'child'=>[
  30. ['name'=>'商品列表', 'class'=>'', 'icon'=>'', 'controller'=>'shop', 'action'=>'index', 'routePath'=>'shop/index', 'show'=>1,],
  31. ['name'=>'订单列表', 'class'=>'', 'icon'=>'', 'controller'=>'shop', 'action'=>'order-list', 'routePath'=>'shop/order-list', 'show'=>1,],
  32. ]
  33. ],
  34. 'user'=>[
  35. 'name'=>'会员管理',
  36. 'class' => '',
  37. 'icon'=>'el-icon-user',
  38. 'controller'=>'user',
  39. 'action'=>'',
  40. 'routePath'=>'user',
  41. 'show'=>1,
  42. 'child'=>[
  43. ['name'=>'个人资料', 'class'=>'', 'icon'=>'', 'controller'=>'user', 'action'=>'index', 'routePath'=>'user/index', 'show'=>1,],
  44. ['name'=>'重置密码', 'class'=>'', 'icon'=>'', 'controller'=>'user', 'action'=>'password', 'routePath'=>'user/password', 'show'=>1],
  45. ]
  46. ],
  47. 'bonus'=>[
  48. 'name'=>'奖金管理',
  49. 'class' => '',
  50. 'icon'=>'el-icon-coin',
  51. 'controller'=>'bonus',
  52. 'action'=>'',
  53. 'routePath'=>'bonus',
  54. 'show'=>1,
  55. 'child'=>[
  56. ['name'=>'最新奖金', 'class'=>'', 'icon'=>'', 'controller'=>'bonus', 'action'=>'new', 'routePath'=>'bonus/new', 'show'=>1,],
  57. ]
  58. ],
  59. 'config'=>[
  60. 'name'=>'设置',
  61. 'class' => '',
  62. 'icon'=>'el-icon-setting',
  63. 'controller'=>'config',
  64. 'action'=>'',
  65. 'routePath'=>'config',
  66. 'show'=>1,
  67. 'child'=>[
  68. ['name'=>'收货地址管理', 'class'=>'', 'icon'=>'', 'controller'=>'config', 'action'=>'receive-address-list', 'routePath'=>'config/receive-address-list', 'show'=>1,],
  69. ]
  70. ],
  71. ];