routes-common.ts 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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: '/shopAddress',
  53. name: 'shopAddress',
  54. component: () => import('@/views/cart/components/shop-address'),
  55. meta: {
  56. title: '收货地址'
  57. }
  58. },
  59. {
  60. path: '/addressOperation',
  61. name: 'addressOperation',
  62. component: () =>
  63. import('@/views/cart/components/shop-address/address-operation'),
  64. meta: {
  65. title: '收货地址'
  66. }
  67. },
  68. {
  69. path: '/goodsList',
  70. name: 'goodsList',
  71. component: () => import('@/views/shop-mall/goods-list/index'),
  72. meta: {
  73. title: '商品列表'
  74. }
  75. },
  76. {
  77. path: '/goodsDetail',
  78. name: 'goodsDetail',
  79. component: () => import('@/views/shop-mall/goods-detail'),
  80. meta: {
  81. title: '商品详情'
  82. }
  83. },
  84. {
  85. path: '/cart',
  86. name: 'cart',
  87. component: () => import('@/views/cart'),
  88. meta: {
  89. title: '购物车'
  90. }
  91. },
  92. {
  93. path: '/cartConfirm',
  94. name: 'cartConfirm',
  95. component: () => import('@/views/cart/cart-confirm'),
  96. meta: {
  97. title: '确认订单'
  98. }
  99. },
  100. {
  101. path: '/cartConfirmAgin',
  102. name: 'cartConfirmAgin',
  103. component: () => import('@/views/cart/cart-confirm-agin'),
  104. meta: {
  105. title: '确认订单'
  106. }
  107. },
  108. {
  109. path: '/shopOrderDetail',
  110. name: 'shopOrderDetail',
  111. component: () => import('@/views/shop-mall/shop-order-detail'),
  112. meta: {
  113. title: '订单详情'
  114. }
  115. },
  116. {
  117. path: '/shopTrade',
  118. name: 'shopTrade',
  119. component: () => import('@/views/shop-mall/shop-trade/trade-detail'),
  120. meta: {
  121. title: '交易详情'
  122. }
  123. },
  124. {
  125. path: '/scanLogin',
  126. name: 'scanLogin',
  127. component: () => import('@/views/scan-login/index'),
  128. meta: {
  129. title: '扫码登录'
  130. }
  131. },
  132. {
  133. path: '/music-songbook',
  134. component: () => import('@/views/music/search/header'),
  135. meta: {
  136. title: '乐谱顶部'
  137. },
  138. children: [
  139. {
  140. path: '/music-songbook/search',
  141. name: 'musicSearch',
  142. component: () => import('@/views/music/search'),
  143. meta: {
  144. title: '搜索结果'
  145. }
  146. },
  147. {
  148. path: '',
  149. name: 'musicSongbook',
  150. component: () => import('@/views/music/songbook'),
  151. meta: {
  152. title: '乐谱库'
  153. }
  154. }
  155. ]
  156. },
  157. {
  158. path: '/music-album',
  159. component: () => import('@/views/music/album/index'),
  160. meta: {
  161. title: '专辑'
  162. }
  163. },
  164. {
  165. path: '/music-album-detail/:id',
  166. name: 'music-album-detail',
  167. component: () => import('@/views/music/album-detail'),
  168. meta: {
  169. title: '专辑详情'
  170. }
  171. },
  172. {
  173. path: '/music-list',
  174. component: () => import('@/views/music/list'),
  175. meta: {
  176. title: '曲谱列表'
  177. }
  178. },
  179. {
  180. path: '/music-detail',
  181. component: () => import('@/views/music/music-detail'),
  182. meta: {
  183. title: '曲谱详情'
  184. }
  185. },
  186. {
  187. path: '/music-search',
  188. component: () => import('@/views/music/search'),
  189. meta: {
  190. title: '搜索结果'
  191. }
  192. },
  193. {
  194. path: '/music-personal',
  195. component: () => import('@/views/music/personal'),
  196. meta: {
  197. title: '我的乐谱'
  198. }
  199. },
  200. {
  201. path: '/look-album-list',
  202. component: () => import('@/views/music/look-album-list'),
  203. meta: {
  204. title: '查看专辑'
  205. }
  206. },
  207. {
  208. path: '/videoClass',
  209. name: 'videoClass',
  210. component: () => import('@/views/video-class/index'),
  211. meta: {
  212. title: '视频课'
  213. }
  214. },
  215. {
  216. path: '/liveClass',
  217. name: 'liveClass',
  218. component: () => import('@/views/live-class/index'),
  219. meta: {
  220. title: '直播课'
  221. }
  222. },
  223. {
  224. path: '/memberCenter',
  225. name: 'memberCenter',
  226. component: () => import('@/views/member-center/index'),
  227. meta: {
  228. title: '会员中心'
  229. }
  230. },
  231. {
  232. path: '/coupons',
  233. name: 'coupons',
  234. component: () => import('@/views/coupons/index'),
  235. meta: {
  236. title: '优惠券'
  237. }
  238. },
  239. {
  240. path: '/previewProtocol',
  241. name: 'previewProtocol',
  242. component: () => import('@/views/preview-protocol/index'),
  243. meta: {
  244. title: '酷乐秀用户注册协议'
  245. }
  246. },
  247. {
  248. path: '/awardActivity',
  249. name: 'awardActivity',
  250. component: () => import('@/views/award-activity/index'),
  251. meta: {
  252. title: '活动奖品'
  253. }
  254. },
  255. {
  256. path: '/creation',
  257. component: () => import('@/views/creation/index'),
  258. meta: {
  259. title: '作品详情'
  260. }
  261. },
  262. {
  263. path: '/creation-edit',
  264. component: () => import('@/views/creation/edit/index'),
  265. meta: {
  266. title: '编辑'
  267. }
  268. }
  269. ]
  270. // 不需要登录的路由
  271. export const rootRouter = [
  272. {
  273. path: '/registerProtocol',
  274. name: 'registerProtocol',
  275. component: () => import('@/views/protocol/register'),
  276. meta: {
  277. title: '注册协议'
  278. }
  279. },
  280. {
  281. path: '/privacyProtocol',
  282. name: 'privacyProtocol',
  283. component: () => import('@/views/protocol/privacy'),
  284. meta: {
  285. title: '酷乐秀隐私政策'
  286. }
  287. },
  288. {
  289. path: '/guide',
  290. name: 'guide',
  291. component: () => import('@/views/article-center/guide'),
  292. meta: {
  293. title: '投屏引导'
  294. }
  295. },
  296. {
  297. path: '/helpCenter',
  298. name: 'helpCenter',
  299. component: () => import('@/views/article-center/help-center')
  300. },
  301. {
  302. path: '/helpCenterDetail',
  303. name: 'helpCenterDetail',
  304. component: () => import('@/views/article-center/help-center-detail')
  305. },
  306. {
  307. path: '/special',
  308. name: 'special',
  309. component: () => import('@/views/article-center/special'),
  310. meta: {
  311. title: '资讯列表'
  312. }
  313. },
  314. {
  315. path: '/specialDetail',
  316. name: 'specialDetail',
  317. component: () => import('@/views/article-center/special-detail'),
  318. meta: {
  319. title: '资讯详情'
  320. }
  321. },
  322. {
  323. path: '/articleTheory',
  324. name: 'articleTheory',
  325. component: () => import('@/views/article-center/theory'),
  326. meta: {
  327. title: '乐理列表'
  328. }
  329. },
  330. {
  331. path: '/theoryDetail',
  332. name: 'theoryDetail',
  333. component: () => import('@/views/article-center/theory-detail'),
  334. meta: {
  335. title: '乐理详情'
  336. }
  337. },
  338. {
  339. path: '/contactus',
  340. name: 'contactus',
  341. component: () => import('@/views/contactus/index'),
  342. meta: {
  343. title: '联系我们'
  344. }
  345. },
  346. {
  347. path: '/shareLiveRoom',
  348. name: 'shareLiveRoom',
  349. component: () => import('@/teacher/share-page/share-live-room'),
  350. meta: {
  351. title: '直播间分享'
  352. }
  353. },
  354. {
  355. path: '/track-subject-song',
  356. component: () =>
  357. import('@/views/share-page/track-review-activity/subject-song'),
  358. meta: {
  359. title: '活动声部曲目'
  360. }
  361. },
  362. {
  363. path: '/tenantStudentRejest',
  364. component: () => import('@/views/tenantStudentRejest/index'),
  365. meta: {
  366. title: '机构学员注册'
  367. }
  368. },
  369. {
  370. path: '/tenantTeacherRejest',
  371. component: () => import('@/views/tenantTeacherRejest/index'),
  372. meta: {
  373. title: '机构老师注册'
  374. }
  375. },
  376. {
  377. path: '/shareCreation',
  378. component: () => import('@/views/creation/index-share'),
  379. meta: {
  380. title: '作品详情'
  381. }
  382. }
  383. ]