routes.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. const routes = [
  2. {
  3. path: "/",
  4. component: () => import("layouts/MainLayout.vue"),
  5. children: [{ path: "", component: () => import("pages/IndexPage.vue") }],
  6. },
  7. {
  8. path: "/guideintro",
  9. component: () => import("layouts/MainLayout.vue"),
  10. children: [
  11. { path: "", component: () => import("pages/GuideIntroPage.vue") },
  12. ],
  13. },
  14. {
  15. path: "/blog",
  16. component: () => import("layouts/MainLayout.vue"),
  17. children: [{ path: "", component: () => import("pages/BlogPage.vue") }],
  18. },
  19. {
  20. path: "/product",
  21. component: () => import("layouts/MainLayout.vue"),
  22. children: [
  23. { path: "", component: () => import("pages/TravelShopPage.vue") },
  24. ],
  25. },
  26. {
  27. path: "/destination",
  28. component: () => import("layouts/MainLayout.vue"),
  29. children: [
  30. { path: "", component: () => import("pages/DestinationPage.vue") },
  31. ],
  32. },
  33. {
  34. path: "/auth/login",
  35. component: () => import("layouts/MainLayout.vue"),
  36. children: [{ path: "", component: () => import("pages/LoginPage.vue") }],
  37. },
  38. {
  39. path: "/auth/register",
  40. component: () => import("layouts/MainLayout.vue"),
  41. children: [{ path: "", component: () => import("pages/RegisterPage.vue") }],
  42. },
  43. {
  44. path: "/product-detail/:skuGroupId",
  45. component: () => import("layouts/MainLayout.vue"),
  46. children: [
  47. { path: "", component: () => import("pages/ProductDetailPage.vue") },
  48. ],
  49. },
  50. {
  51. path: "/destination-detail/:destinationId",
  52. component: () => import("layouts/MainLayout.vue"),
  53. children: [
  54. { path: "", component: () => import("pages/DestinationDetailPage.vue") },
  55. ],
  56. },
  57. {
  58. path: "/blog-detail/:blogId",
  59. component: () => import("layouts/MainLayout.vue"),
  60. children: [
  61. { path: "", component: () => import("pages/BlogDetailPage.vue") },
  62. ],
  63. },
  64. {
  65. path: "/contact",
  66. component: () => import("layouts/MainLayout.vue"),
  67. children: [{ path: "", component: () => import("pages/ContactPage.vue") }],
  68. },
  69. {
  70. path: "/my-blogs",
  71. component: () => import("layouts/MainLayout.vue"),
  72. children: [{ path: "", component: () => import("pages/MyBlogsPage.vue") }],
  73. },
  74. {
  75. path: "/my-orders",
  76. component: () => import("layouts/MainLayout.vue"),
  77. children: [{ path: "", component: () => import("pages/MyOrdersPage.vue") }],
  78. },
  79. {
  80. path: "/user-info",
  81. component: () => import("layouts/MainLayout.vue"),
  82. children: [{ path: "", component: () => import("pages/UserInfoPage.vue") }],
  83. },
  84. {
  85. path: "/blog-create",
  86. component: () => import("layouts/MainLayout.vue"),
  87. children: [
  88. { path: "", component: () => import("pages/BlogCreatePage.vue") },
  89. ],
  90. },
  91. {
  92. path: "/blog-edit/:blogId",
  93. component: () => import("layouts/MainLayout.vue"),
  94. children: [{ path: "", component: () => import("pages/BlogEditPage.vue") }],
  95. },
  96. {
  97. path: "/order-detail/:orderId",
  98. component: () => import("layouts/MainLayout.vue"),
  99. children: [
  100. { path: "", component: () => import("pages/OrderDetailPage.vue") },
  101. ],
  102. },
  103. {
  104. path: "/book",
  105. component: () => import("layouts/MainLayout.vue"),
  106. children: [{ path: "", component: () => import("pages/BookPage.vue") }],
  107. },
  108. {
  109. path: "/alipay",
  110. component: () => import("layouts/MainLayout.vue"),
  111. children: [{ path: "", component: () => import("pages/AlipayPage.vue") }],
  112. },
  113. {
  114. path: "/wechatpay",
  115. component: () => import("layouts/MainLayout.vue"),
  116. children: [
  117. { path: "", component: () => import("pages/WechatpayPage.vue") },
  118. ],
  119. },
  120. {
  121. path: "/finishpay",
  122. component: () => import("layouts/MainLayout.vue"),
  123. children: [
  124. { path: "", component: () => import("pages/FinishpayPage.vue") },
  125. ],
  126. },
  127. {
  128. path: "/regvalidation/:regKey",
  129. component: () => import("layouts/MainLayout.vue"),
  130. children: [
  131. { path: "", component: () => import("pages/RegvalidationPage.vue") },
  132. ],
  133. },
  134. {
  135. path: "/regsuccess",
  136. component: () => import("layouts/MainLayout.vue"),
  137. children: [
  138. { path: "", component: () => import("pages/RegSuccessPage.vue") },
  139. ],
  140. },
  141. // Always leave this as last one,
  142. // but you can also remove it
  143. {
  144. path: "/:catchAll(.*)*",
  145. component: () => import("pages/ErrorNotFound.vue"),
  146. },
  147. ];
  148. export default routes;