routes-common.ts 6.7 KB

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