routes-common.ts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. component: () => import('@/views/music/album-detail'),
  150. meta: {
  151. title: '专辑详情'
  152. }
  153. },
  154. {
  155. path: '/music-list',
  156. component: () => import('@/views/music/list'),
  157. meta: {
  158. title: '曲谱列表'
  159. }
  160. },
  161. {
  162. path: '/music-search',
  163. component: () => import('@/views/music/search'),
  164. meta: {
  165. title: '搜索结果'
  166. }
  167. },
  168. {
  169. path: '/music-personal',
  170. component: () => import('@/views/music/personal'),
  171. meta: {
  172. title: '我的乐谱'
  173. }
  174. },
  175. {
  176. path: '/videoClass',
  177. name: 'videoClass',
  178. component: () => import('@/views/video-class/index'),
  179. meta: {
  180. title: '视频课'
  181. }
  182. },
  183. {
  184. path: '/liveClass',
  185. name: 'liveClass',
  186. component: () => import('@/views/live-class/index'),
  187. meta: {
  188. title: '直播课'
  189. }
  190. },
  191. {
  192. path: '/memberCenter',
  193. name: 'memberCenter',
  194. component: () => import('@/views/member-center/index'),
  195. meta: {
  196. title: '会员中心'
  197. }
  198. },
  199. {
  200. path: '/coupons',
  201. name: 'coupons',
  202. component: () => import('@/views/coupons/index'),
  203. meta: {
  204. title: '优惠券'
  205. }
  206. }
  207. ]
  208. // 不需要登录的路由
  209. export const rootRouter = [
  210. {
  211. path: '/registerProtocol',
  212. name: 'registerProtocol',
  213. component: () => import('@/views/protocol/register'),
  214. meta: {
  215. title: '注册协议'
  216. }
  217. },
  218. {
  219. path: '/privacyProtocol',
  220. name: 'privacyProtocol',
  221. component: () => import('@/views/protocol/privacy'),
  222. meta: {
  223. title: '酷乐秀隐私政策'
  224. }
  225. },
  226. {
  227. path: '/guide',
  228. name: 'guide',
  229. component: () => import('@/views/article-center/guide'),
  230. meta: {
  231. title: '投屏引导'
  232. }
  233. },
  234. {
  235. path: '/helpCenter',
  236. name: 'helpCenter',
  237. component: () => import('@/views/article-center/help-center')
  238. },
  239. {
  240. path: '/helpCenterDetail',
  241. name: 'helpCenterDetail',
  242. component: () => import('@/views/article-center/help-center-detail')
  243. },
  244. {
  245. path: '/special',
  246. name: 'special',
  247. component: () => import('@/views/article-center/special'),
  248. meta: {
  249. title: '资讯列表'
  250. }
  251. },
  252. {
  253. path: '/specialDetail',
  254. name: 'specialDetail',
  255. component: () => import('@/views/article-center/special-detail'),
  256. meta: {
  257. title: '资讯详情'
  258. }
  259. },
  260. {
  261. path: '/articleTheory',
  262. name: 'articleTheory',
  263. component: () => import('@/views/article-center/theory'),
  264. meta: {
  265. title: '乐理列表'
  266. }
  267. },
  268. {
  269. path: '/theoryDetail',
  270. name: 'theoryDetail',
  271. component: () => import('@/views/article-center/theory-detail'),
  272. meta: {
  273. title: '乐理详情'
  274. }
  275. }
  276. ]