routerConfig.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. export const routerConfig = [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. { path: '/', redirect: '/welcome' },
  14. {
  15. path: '/',
  16. component: '../layouts/BasicLayout',
  17. routes: [
  18. {
  19. name: '欢迎',
  20. path: '/welcome',
  21. icon: 'smile',
  22. component: './Welcome',
  23. },
  24. {
  25. name: '数据统计',
  26. path: '/statistics',
  27. icon: 'dashboard',
  28. hideInMenu: true,
  29. routes: [
  30. {
  31. component: './404',
  32. },
  33. ]
  34. },
  35. {
  36. name: '我的家族',
  37. path: '/myfamily',
  38. icon: 'dashboard',
  39. component: './Family/FamilyDetails'
  40. // routes: [
  41. // { component: './Family/FamilyDetails', }
  42. // ]
  43. },
  44. {
  45. name: '家族管理',
  46. path: '/family',
  47. icon: 'cluster',
  48. routes: [
  49. {
  50. name: '技能认证列表',
  51. path: '/family/skillList',
  52. component: './Family/SkillAuditList'
  53. },
  54. {
  55. name: '技能订单列表',
  56. path: '/family/orderList',
  57. component: './Family/SkillOrderList'
  58. },
  59. {
  60. name: '语音速配记录',
  61. path: '/family/voiceChatList',
  62. component: './Family/VoiceChatList'
  63. },
  64. {
  65. name: '签约列表',
  66. path: '/family/memberAudit',
  67. component: './Family/MemberAuditList'
  68. },
  69. {
  70. name: '家族成员管理',
  71. path: '/family/management',
  72. component: './Family/Peoplemanagement'
  73. },
  74. {
  75. name: '成员详情',
  76. path: '/family/management/details',
  77. component: './Family/Userdetail',
  78. hideInMenu: true
  79. },
  80. ],
  81. },
  82. {
  83. name: '主播管理',
  84. path: '/anchors',
  85. icon: 'flag',
  86. hideInMenu: true,
  87. routes: [
  88. {
  89. name: '主播列表',
  90. path: '/anchors/list',
  91. component: './Anchors/AnchorList'
  92. },
  93. {
  94. name: '主播审核列表',
  95. path: '/anchors/auditlist',
  96. component: './Anchors/AnchorAuditList'
  97. },
  98. {
  99. name: '主播详情',
  100. path: '/anchors/list/details',
  101. component: './Anchors/AnchorDetail',
  102. hideInMenu: true
  103. },
  104. ],
  105. },
  106. {
  107. name: '语聊管理',
  108. path: '/chatRoom',
  109. icon: 'shop',
  110. routes: [
  111. {
  112. name: '房间列表',
  113. path: '/chatRoom/roomList',
  114. component: './ChatRoom/ChatRoomList',
  115. },
  116. {
  117. name: '房间详情',
  118. path: '/chatRoom/roomList/roomDetails',
  119. component: './ChatRoom/ChatRoomDetails',
  120. hideInMenu: true
  121. },
  122. {
  123. name: '房间流水',
  124. path: '/ChatRoom/chatRoomflow',
  125. component: './ChatRoom/ChatRoomflow'
  126. },
  127. // {
  128. // name: '电台主持流水',
  129. // path: '/ChatRoom/Radiohostflow',
  130. // component: './ChatRoom/Radiohostflow'
  131. // },
  132. ]
  133. },
  134. {
  135. name: '管理员管理',
  136. path: '/admin',
  137. icon: 'tool',
  138. routes: [
  139. {
  140. name: '管理员列表',
  141. path: '/admin/list',
  142. component: './Admin/AdminList',
  143. }
  144. ],
  145. },
  146. {
  147. name: '财务管理',
  148. path: '/money',
  149. icon: 'dollar',
  150. routes: [
  151. {
  152. name: '账户管理',
  153. path: '/money/withdraw',
  154. component: './Money/AccountList',
  155. },
  156. {
  157. name: '提现管理',
  158. path: '/money/withdraw/record',
  159. component: './Money/WithdrawRecord',
  160. },
  161. {
  162. name: '账户明细',
  163. path: '/money/accountdetails',
  164. component: './Money/Accountdetails'
  165. }
  166. ],
  167. },
  168. {
  169. name: '活动管理',
  170. path: '/activity',
  171. icon: 'flag',
  172. hideInMenu: true,
  173. routes: [
  174. {
  175. component: './404',
  176. },
  177. ],
  178. },
  179. {
  180. name: '系统管理',
  181. path: '/system',
  182. icon: 'setting',
  183. hideInMenu: true,
  184. routes: [
  185. {
  186. component: './404',
  187. },
  188. ],
  189. },
  190. {
  191. name: '财务管理',
  192. path: '/finance',
  193. icon: 'dollar',
  194. hideInMenu: true,
  195. routes: [
  196. {
  197. component: './404',
  198. },
  199. ],
  200. },
  201. ],
  202. },
  203. {
  204. component: './404',
  205. },
  206. ];