routes-common.ts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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-search',
  164. component: () => import('@/views/music/search'),
  165. meta: {
  166. title: '搜索结果'
  167. }
  168. },
  169. {
  170. path: '/music-personal',
  171. component: () => import('@/views/music/personal'),
  172. meta: {
  173. title: '我的乐谱'
  174. }
  175. },
  176. {
  177. path: '/videoClass',
  178. name: 'videoClass',
  179. component: () => import('@/views/video-class/index'),
  180. meta: {
  181. title: '视频课'
  182. }
  183. },
  184. {
  185. path: '/liveClass',
  186. name: 'liveClass',
  187. component: () => import('@/views/live-class/index'),
  188. meta: {
  189. title: '直播课'
  190. }
  191. },
  192. {
  193. path: '/memberCenter',
  194. name: 'memberCenter',
  195. component: () => import('@/views/member-center/index'),
  196. meta: {
  197. title: '会员中心'
  198. }
  199. },
  200. {
  201. path: '/coupons',
  202. name: 'coupons',
  203. component: () => import('@/views/coupons/index'),
  204. meta: {
  205. title: '优惠券'
  206. }
  207. },
  208. {
  209. path: '/previewProtocol',
  210. name: 'previewProtocol',
  211. component: () => import('@/views/preview-protocol/index'),
  212. meta: {
  213. title: '酷乐秀平台服务协议'
  214. }
  215. }
  216. ]
  217. // 不需要登录的路由
  218. export const rootRouter = [
  219. {
  220. path: '/registerProtocol',
  221. name: 'registerProtocol',
  222. component: () => import('@/views/protocol/register'),
  223. meta: {
  224. title: '注册协议'
  225. }
  226. },
  227. {
  228. path: '/privacyProtocol',
  229. name: 'privacyProtocol',
  230. component: () => import('@/views/protocol/privacy'),
  231. meta: {
  232. title: '酷乐秀隐私政策'
  233. }
  234. },
  235. {
  236. path: '/guide',
  237. name: 'guide',
  238. component: () => import('@/views/article-center/guide'),
  239. meta: {
  240. title: '投屏引导'
  241. }
  242. },
  243. {
  244. path: '/helpCenter',
  245. name: 'helpCenter',
  246. component: () => import('@/views/article-center/help-center')
  247. },
  248. {
  249. path: '/helpCenterDetail',
  250. name: 'helpCenterDetail',
  251. component: () => import('@/views/article-center/help-center-detail')
  252. },
  253. {
  254. path: '/special',
  255. name: 'special',
  256. component: () => import('@/views/article-center/special'),
  257. meta: {
  258. title: '资讯列表'
  259. }
  260. },
  261. {
  262. path: '/specialDetail',
  263. name: 'specialDetail',
  264. component: () => import('@/views/article-center/special-detail'),
  265. meta: {
  266. title: '资讯详情'
  267. }
  268. },
  269. {
  270. path: '/articleTheory',
  271. name: 'articleTheory',
  272. component: () => import('@/views/article-center/theory'),
  273. meta: {
  274. title: '乐理列表'
  275. }
  276. },
  277. {
  278. path: '/theoryDetail',
  279. name: 'theoryDetail',
  280. component: () => import('@/views/article-center/theory-detail'),
  281. meta: {
  282. title: '乐理详情'
  283. }
  284. },
  285. {
  286. path: '/contactus',
  287. name: 'contactus',
  288. component: () => import('@/views/contactus/index'),
  289. meta: {
  290. title: '联系我们'
  291. }
  292. },
  293. {
  294. path: '/shareLiveRoom',
  295. name: 'shareLiveRoom',
  296. component: () => import('@/teacher/share-page/share-live-room'),
  297. meta: {
  298. title: '直播间分享'
  299. }
  300. },
  301. {
  302. path: '/track-subject-song',
  303. component: () =>
  304. import('@/views/share-page/track-review-activity/subject-song'),
  305. meta: {
  306. title: '活动声部曲目'
  307. }
  308. }
  309. ]