routes-common.ts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. // 需要登录的路由
  2. export const router = [
  3. {
  4. path: '/orderDetail',
  5. name: 'orderDetail',
  6. component: () => import('@/views/order-detail/index'),
  7. meta: {
  8. title: '订单详情'
  9. }
  10. },
  11. {
  12. path: '/tradeDetail',
  13. name: 'tradeDetail',
  14. component: () => import('@/views/trade/trade-detail'),
  15. meta: {
  16. title: '交易详情'
  17. }
  18. },
  19. {
  20. path: '/goodsOrder',
  21. name: 'goodsOrder',
  22. component: () => import('@/views/goods-order/index'),
  23. meta: {
  24. title: '商品订单'
  25. }
  26. },
  27. {
  28. path: '/afterSale',
  29. name: 'afterSale',
  30. component: () => import('@/views/goods-order/after-sale'),
  31. meta: {
  32. title: '售后服务'
  33. }
  34. },
  35. {
  36. path: '/afterService',
  37. name: 'afterService',
  38. component: () => import('@/views/after-service/index'),
  39. meta: {
  40. title: '售后服务'
  41. }
  42. },
  43. {
  44. path: '/shopMall',
  45. name: 'shopMall',
  46. component: () => import('@/views/shop-mall/index'),
  47. meta: {
  48. title: '商城'
  49. }
  50. },
  51. {
  52. path: '/goodsList',
  53. name: 'goodsList',
  54. component: () => import('@/views/shop-mall/goods-list/index'),
  55. meta: {
  56. title: '商品列表'
  57. }
  58. },
  59. {
  60. path: '/goodsDetail',
  61. name: 'goodsDetail',
  62. component: () => import('@/views/shop-mall/goods-detail'),
  63. meta: {
  64. title: '商品详情'
  65. }
  66. },
  67. {
  68. path: '/cart',
  69. name: 'cart',
  70. component: () => import('@/views/cart'),
  71. meta: {
  72. title: '购物车'
  73. }
  74. },
  75. {
  76. path: '/cartConfirm',
  77. name: 'cartConfirm',
  78. component: () => import('@/views/cart/cart-confirm'),
  79. meta: {
  80. title: '确认订单'
  81. }
  82. },
  83. {
  84. path: '/cartConfirmAgin',
  85. name: 'cartConfirmAgin',
  86. component: () => import('@/views/cart/cart-confirm-agin'),
  87. meta: {
  88. title: '确认订单'
  89. }
  90. },
  91. {
  92. path: '/shopOrderDetail',
  93. name: 'shopOrderDetail',
  94. component: () => import('@/views/shop-mall/shop-order-detail'),
  95. meta: {
  96. title: '订单详情'
  97. }
  98. },
  99. {
  100. path: '/shopTrade',
  101. name: 'shopTrade',
  102. component: () => import('@/views/shop-mall/shop-trade/trade-detail'),
  103. meta: {
  104. title: '交易详情'
  105. }
  106. },
  107. {
  108. path: '/scanLogin',
  109. name: 'scanLogin',
  110. component: () => import('@/views/scan-login/index'),
  111. meta: {
  112. title: '扫码登录'
  113. }
  114. },
  115. {
  116. path: '/music-songbook',
  117. component: () => import('@/views/music/search/header'),
  118. meta: {
  119. title: '乐谱顶部'
  120. },
  121. children: [
  122. {
  123. path: '/music-songbook/search',
  124. name: 'musicSearch',
  125. component: () => import('@/views/music/search'),
  126. meta: {
  127. title: '搜索结果'
  128. }
  129. },
  130. {
  131. path: '',
  132. name: 'musicSongbook',
  133. component: () => import('@/views/music/songbook'),
  134. meta: {
  135. title: '乐谱库'
  136. }
  137. }
  138. ]
  139. },
  140. {
  141. path: '/music-album',
  142. component: () => import('@/views/music/album/index'),
  143. meta: {
  144. title: '专辑'
  145. }
  146. },
  147. {
  148. path: '/music-album-detail/:id',
  149. name: 'music-album-detail',
  150. component: () => import('@/views/music/album-detail'),
  151. meta: {
  152. title: '专辑详情'
  153. }
  154. },
  155. {
  156. path: '/music-list',
  157. component: () => import('@/views/music/list'),
  158. meta: {
  159. title: '曲谱列表'
  160. }
  161. },
  162. {
  163. path: '/music-detail',
  164. component: () => import('@/views/music/music-detail'),
  165. meta: {
  166. title: '曲谱详情'
  167. }
  168. },
  169. {
  170. path: '/music-search',
  171. component: () => import('@/views/music/search'),
  172. meta: {
  173. title: '搜索结果'
  174. }
  175. },
  176. {
  177. path: '/music-personal',
  178. component: () => import('@/views/music/personal'),
  179. meta: {
  180. title: '我的乐谱'
  181. }
  182. },
  183. {
  184. path: '/look-album-list',
  185. component: () => import('@/views/music/look-album-list'),
  186. meta: {
  187. title: '查看专辑'
  188. }
  189. },
  190. {
  191. path: '/videoClass',
  192. name: 'videoClass',
  193. component: () => import('@/views/video-class/index'),
  194. meta: {
  195. title: '视频课'
  196. }
  197. },
  198. {
  199. path: '/liveClass',
  200. name: 'liveClass',
  201. component: () => import('@/views/live-class/index'),
  202. meta: {
  203. title: '直播课'
  204. }
  205. },
  206. {
  207. path: '/memberCenter',
  208. name: 'memberCenter',
  209. component: () => import('@/views/member-center/index'),
  210. meta: {
  211. title: '会员中心'
  212. }
  213. },
  214. {
  215. path: '/coupons',
  216. name: 'coupons',
  217. component: () => import('@/views/coupons/index'),
  218. meta: {
  219. title: '优惠券'
  220. }
  221. },
  222. {
  223. path: '/previewProtocol',
  224. name: 'previewProtocol',
  225. component: () => import('@/views/preview-protocol/index'),
  226. meta: {
  227. title: '酷乐秀用户注册协议'
  228. }
  229. },
  230. {
  231. path: '/awardActivity',
  232. name: 'awardActivity',
  233. component: () => import('@/views/award-activity/index'),
  234. meta: {
  235. title: '活动奖品'
  236. }
  237. }
  238. ]
  239. // 不需要登录的路由
  240. export const rootRouter = [
  241. {
  242. path: '/registerProtocol',
  243. name: 'registerProtocol',
  244. component: () => import('@/views/protocol/register'),
  245. meta: {
  246. title: '注册协议'
  247. }
  248. },
  249. {
  250. path: '/privacyProtocol',
  251. name: 'privacyProtocol',
  252. component: () => import('@/views/protocol/privacy'),
  253. meta: {
  254. title: '酷乐秀隐私政策'
  255. }
  256. },
  257. {
  258. path: '/guide',
  259. name: 'guide',
  260. component: () => import('@/views/article-center/guide'),
  261. meta: {
  262. title: '投屏引导'
  263. }
  264. },
  265. {
  266. path: '/helpCenter',
  267. name: 'helpCenter',
  268. component: () => import('@/views/article-center/help-center')
  269. },
  270. {
  271. path: '/helpCenterDetail',
  272. name: 'helpCenterDetail',
  273. component: () => import('@/views/article-center/help-center-detail')
  274. },
  275. {
  276. path: '/special',
  277. name: 'special',
  278. component: () => import('@/views/article-center/special'),
  279. meta: {
  280. title: '资讯列表'
  281. }
  282. },
  283. {
  284. path: '/specialDetail',
  285. name: 'specialDetail',
  286. component: () => import('@/views/article-center/special-detail'),
  287. meta: {
  288. title: '资讯详情'
  289. }
  290. },
  291. {
  292. path: '/articleTheory',
  293. name: 'articleTheory',
  294. component: () => import('@/views/article-center/theory'),
  295. meta: {
  296. title: '乐理列表'
  297. }
  298. },
  299. {
  300. path: '/theoryDetail',
  301. name: 'theoryDetail',
  302. component: () => import('@/views/article-center/theory-detail'),
  303. meta: {
  304. title: '乐理详情'
  305. }
  306. },
  307. {
  308. path: '/contactus',
  309. name: 'contactus',
  310. component: () => import('@/views/contactus/index'),
  311. meta: {
  312. title: '联系我们'
  313. }
  314. },
  315. {
  316. path: '/shareLiveRoom',
  317. name: 'shareLiveRoom',
  318. component: () => import('@/teacher/share-page/share-live-room'),
  319. meta: {
  320. title: '直播间分享'
  321. }
  322. },
  323. {
  324. path: '/track-subject-song',
  325. component: () =>
  326. import('@/views/share-page/track-review-activity/subject-song'),
  327. meta: {
  328. title: '活动声部曲目'
  329. }
  330. },
  331. {
  332. path: '/tenantStudentRejest',
  333. component: () => import('@/views/tenantStudentRejest/index'),
  334. meta: {
  335. title: '机构学员注册'
  336. }
  337. },
  338. {
  339. path: '/tenantTeacherRejest',
  340. component: () => import('@/views/tenantTeacherRejest/index'),
  341. meta: {
  342. title: '机构老师注册'
  343. }
  344. }
  345. ]