backend.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
  3. $backend = [
  4. // ----------------------- 菜单配置 ----------------------- //
  5. 'config' => [
  6. // 菜单配置
  7. 'menu' => [
  8. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  9. 'icon' => 'fa fa-puzzle-piece',
  10. ],
  11. // 子模块配置
  12. 'modules' => [],
  13. ],
  14. // ----------------------- 快捷入口 ----------------------- //
  15. 'cover' => [],
  16. // ----------------------- 菜单配置 ----------------------- //
  17. 'menu' => [
  18. [
  19. 'title' => '数据概括',
  20. 'route' => 'data-overview/index',
  21. 'icon' => '',
  22. 'params' => [],
  23. 'child' => [],
  24. ],
  25. [
  26. 'title' => '商家明细',
  27. 'route' => 'merchant/index',
  28. 'icon' => '',
  29. 'params' => [],
  30. 'child' => [],
  31. ],
  32. [
  33. 'title' => '嗨值明细',
  34. 'route' => 'hi-value/index',
  35. 'icon' => '',
  36. 'params' => [],
  37. 'child' => [],
  38. ],
  39. [
  40. 'title' => '嗨贝明细',
  41. 'route' => 'hi-bei/index',
  42. 'icon' => '',
  43. 'params' => [],
  44. 'child' => [],
  45. ],
  46. [
  47. 'title' => '嗨贝销毁明细',
  48. 'route' => 'hi-bei/destory',
  49. 'icon' => '',
  50. 'params' => [],
  51. 'child' => [],
  52. ],
  53. [
  54. 'title' => '提现审核',
  55. 'route' => 'withdraw/index',
  56. 'icon' => '',
  57. 'params' => [],
  58. 'child' => [],
  59. ],
  60. [
  61. 'title' => '让利审核',
  62. 'route' => 'merchant/reduce-profit',
  63. 'icon' => '',
  64. 'params' => [],
  65. 'child' => [],
  66. ],
  67. [
  68. 'title' => '基础设置',
  69. 'route' => 'setting/index',
  70. 'icon' => '',
  71. 'params' => [],
  72. 'child' => [],
  73. ],
  74. ],
  75. // ----------------------- 权限配置 ----------------------- //
  76. 'authItem' => [
  77. [
  78. 'title' => '嗨购',
  79. 'name' => '',
  80. 'app_id' => 'backend',
  81. 'is_addon' => 1,
  82. 'addons_name' => 'HiGo',
  83. 'child' => [
  84. [
  85. 'title' => '数据概括',
  86. 'name' => 'data-overview/index',
  87. 'app_id' => 'backend',
  88. 'is_addon' => 1,
  89. 'addons_name' => 'HiGo',
  90. ],
  91. [
  92. 'title' => '商家明细',
  93. 'name' => 'merchant/index',
  94. 'app_id' => 'backend',
  95. 'is_addon' => 1,
  96. 'addons_name' => 'HiGo',
  97. ],
  98. [
  99. 'title' => '嗨值明细',
  100. 'name' => 'hi-value/index',
  101. 'app_id' => 'backend',
  102. 'is_addon' => 1,
  103. 'addons_name' => 'HiGo',
  104. ],
  105. [
  106. 'title' => '嗨贝明细',
  107. 'name' => 'hi-bei/index',
  108. 'app_id' => 'backend',
  109. 'is_addon' => 1,
  110. 'addons_name' => 'HiGo',
  111. ],
  112. [
  113. 'title' => '提现审核',
  114. 'name' => 'withdraw/index',
  115. 'app_id' => 'backend',
  116. 'is_addon' => 1,
  117. 'addons_name' => 'HiGo',
  118. ],
  119. [
  120. 'title' => '基础设置',
  121. 'name' => 'setting/index',
  122. 'app_id' => 'backend',
  123. 'is_addon' => 1,
  124. 'addons_name' => 'HiGo',
  125. ],
  126. [
  127. 'title' => '让利审核',
  128. 'name' => 'merchant/reduce-profit',
  129. 'app_id' => 'backend',
  130. 'is_addon' => 1,
  131. 'addons_name' => 'HiGo',
  132. 'child' => [],
  133. ],
  134. ]
  135. ]
  136. ],
  137. // ----------------------- APP链接 ----------------------- //
  138. // ----------------------- 事件处理 ----------------------- //
  139. ];
  140. return array_merge($common, $backend);