merchant.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: 'bind',
  13. name: 'MerchantBind',
  14. component: () => import('../views/Merchant/Bind.vue'),
  15. meta: {
  16. title: '绑定商户',
  17. }
  18. },
  19. //登记
  20. {
  21. path: 'check',
  22. component: () => import('../views/Layout.vue'),
  23. children: [
  24. //搜索
  25. {
  26. path: 'search',
  27. name: 'MerchantCheckSearch',
  28. component: () => import('../views/Merchant/Check/Search.vue'),
  29. meta: {
  30. title: '搜索',
  31. }
  32. },
  33. //搜索结果
  34. {
  35. path: 'searchResult',
  36. name: 'MerchantCheckSearchResult',
  37. component: () => import('../views/Merchant/Check/SearchResult.vue'),
  38. meta: {
  39. title: '搜索结果',
  40. }
  41. },
  42. //登记结果
  43. {
  44. path: 'result',
  45. name: 'MerchantCheckResult',
  46. component: () => import('../views/Merchant/Check/Result.vue'),
  47. meta: {
  48. title: '登记结果',
  49. }
  50. },
  51. ]
  52. },
  53. //历史记录
  54. {
  55. path: 'history',
  56. component: () => import('../views/Layout.vue'),
  57. children: [
  58. //记录列表
  59. {
  60. path: 'list',
  61. name: 'MerchantHistoryList',
  62. component: () => import('../views/Merchant/History/List.vue'),
  63. meta: {
  64. title: '记录列表',
  65. }
  66. },
  67. //记录详情
  68. {
  69. path: 'info',
  70. name: 'MerchantHistoryInfo',
  71. component: () => import('../views/Merchant/History/Info.vue'),
  72. meta: {
  73. title: '记录详情',
  74. }
  75. },
  76. ]
  77. },
  78. ]
  79. },
  80. ]
  81. export default routesMerchant