merchant.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. if (!window.VueRouter) Vue.use(VueRouter)
  4. const routesMerchant = [
  5. //商户管理
  6. {
  7. path: '/merchant',
  8. component: () => import('../views/Layout.vue'),
  9. children: [
  10. //登记
  11. {
  12. path: 'check',
  13. component: () => import('../views/Layout.vue'),
  14. children: [
  15. //搜索
  16. {
  17. path: 'search',
  18. name: 'MerchantCheckSearch',
  19. component: () => import('../views/Merchant/Check/Search.vue'),
  20. meta: {
  21. title: '搜索',
  22. }
  23. },
  24. //搜索结果
  25. {
  26. path: 'searchResult',
  27. name: 'MerchantCheckSearchResult',
  28. component: () => import('../views/Merchant/Check/SearchResult.vue'),
  29. meta: {
  30. title: '搜索结果',
  31. }
  32. },
  33. //登记结果
  34. {
  35. path: 'result',
  36. name: 'MerchantCheckResult',
  37. component: () => import('../views/Merchant/Check/Result.vue'),
  38. meta: {
  39. title: '登记结果',
  40. }
  41. },
  42. ]
  43. },
  44. //历史记录
  45. {
  46. path: 'history',
  47. component: () => import('../views/Layout.vue'),
  48. children: [
  49. //记录列表
  50. {
  51. path: 'list',
  52. name: 'MerchantHistoryList',
  53. component: () => import('../views/Merchant/History/List.vue'),
  54. meta: {
  55. title: '记录列表',
  56. }
  57. },
  58. //记录详情
  59. {
  60. path: 'info',
  61. name: 'MerchantHistoryInfo',
  62. component: () => import('../views/Merchant/History/Info.vue'),
  63. meta: {
  64. title: '记录详情',
  65. }
  66. },
  67. ]
  68. },
  69. ]
  70. },
  71. ]
  72. export default routesMerchant