routes-common.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: '/helpCenter',
  45. name: 'helpCenter',
  46. component: () => import('@/views/article-center/help-center')
  47. },
  48. {
  49. path: '/helpCenterDetail',
  50. name: 'helpCenterDetail',
  51. component: () => import('@/views/article-center/help-center-detail')
  52. },
  53. {
  54. path: '/special',
  55. name: 'special',
  56. component: () => import('@/views/article-center/special'),
  57. meta: {
  58. title: '资讯列表'
  59. }
  60. },
  61. {
  62. path: '/specialDetail',
  63. name: 'specialDetail',
  64. component: () => import('@/views/article-center/special-detail'),
  65. meta: {
  66. title: '资讯详情'
  67. }
  68. },
  69. {
  70. path: '/articleTheory',
  71. name: 'articleTheory',
  72. component: () => import('@/views/article-center/theory'),
  73. meta: {
  74. title: '乐理列表'
  75. }
  76. },
  77. {
  78. path: '/theoryDetail',
  79. name: 'theoryDetail',
  80. component: () => import('@/views/article-center/theory-detail'),
  81. meta: {
  82. title: '乐理详情'
  83. }
  84. },
  85. {
  86. path: '/shopMall',
  87. name: 'shopMall',
  88. component: () => import('@/views/shop-mall/index'),
  89. meta: {
  90. title: '商城'
  91. }
  92. },
  93. {
  94. path: '/goodsList',
  95. name: 'goodsList',
  96. component: () => import('@/views/shop-mall/goods-list/index'),
  97. meta: {
  98. title: '商品列表'
  99. }
  100. },
  101. {
  102. path: '/goodsDetail',
  103. name: 'goodsDetail',
  104. component: () => import('@/views/shop-mall/goods-detail'),
  105. meta: {
  106. title: '商品详情'
  107. }
  108. },
  109. {
  110. path: '/cart',
  111. name: 'cart',
  112. component: () => import('@/views/cart'),
  113. meta: {
  114. title: '购物车'
  115. }
  116. },
  117. {
  118. path: '/cartConfirm',
  119. name: 'cartConfirm',
  120. component: () => import('@/views/cart/cart-confirm'),
  121. meta: {
  122. title: '确认订单'
  123. }
  124. },
  125. {
  126. path: '/cartConfirmAgin',
  127. name: 'cartConfirmAgin',
  128. component: () => import('@/views/cart/cart-confirm-agin'),
  129. meta: {
  130. title: '确认订单'
  131. }
  132. },
  133. {
  134. path: '/shopOrderDetail',
  135. name: 'shopOrderDetail',
  136. component: () => import('@/views/shop-mall/shop-order-detail'),
  137. meta: {
  138. title: '订单详情'
  139. }
  140. }
  141. ]
  142. // 不需要登录的路由
  143. export const rootRouter = [
  144. {
  145. path: '/registerProtocol',
  146. name: 'registerProtocol',
  147. component: () => import('@/views/protocol/register'),
  148. meta: {
  149. title: '注册协议'
  150. }
  151. },
  152. {
  153. path: '/privacyProtocol',
  154. name: 'privacyProtocol',
  155. component: () => import('@/views/protocol/privacy'),
  156. meta: {
  157. title: '酷乐秀隐私政策'
  158. }
  159. }
  160. ]