routes.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. const routes = [
  2. {
  3. path: "/pages/login/login",
  4. name: 'login',
  5. meta: {
  6. title: '登录',
  7. },
  8. },
  9. {
  10. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  11. path: '/pages/index/index',
  12. name: 'index',
  13. meta: {
  14. title: '主页',
  15. },
  16. },
  17. {
  18. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  19. path: '/pages/home/home',
  20. //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/
  21. name: 'home',
  22. meta: {
  23. title: '首页',
  24. },
  25. },
  26. {
  27. path: '/pages/test1/test1',
  28. name: 'test1',
  29. meta: {
  30. title: '测试1',
  31. },
  32. },
  33. {
  34. path: '/pages/user/people',
  35. name: 'people',
  36. meta: {
  37. title: '个人中心',
  38. },
  39. },
  40. {
  41. path: '/pages/user/userdetail',
  42. name: 'userdetail',
  43. meta: {
  44. title: '个人详情',
  45. },
  46. },
  47. {
  48. path: '/pages/user/useredit',
  49. name: 'useredit',
  50. meta: {
  51. title: '个人编辑',
  52. },
  53. },
  54. {
  55. path: '/pages/user/userexit',
  56. name: 'userexit',
  57. meta: {
  58. title: '退出',
  59. },
  60. },
  61. {
  62. path: '/pages/user/location',
  63. name: 'location',
  64. meta: {
  65. title: '定位',
  66. },
  67. },
  68. {
  69. path: '/pages/common/exit',
  70. name: 'exit',
  71. meta: {
  72. title: '退出',
  73. },
  74. },
  75. {
  76. path: '/pages/common/success',
  77. name: 'success',
  78. meta: {
  79. title: 'success',
  80. },
  81. },{
  82. path: '/pages/addressbook/address-book',
  83. name: 'addressBook',
  84. meta: {
  85. title: 'addressBook',
  86. },
  87. },
  88. {
  89. path: '/pages/addressbook/level-address-book',
  90. name: 'levelAddressBook',
  91. meta: {
  92. title: 'levelAddressBook',
  93. },
  94. },
  95. {
  96. path: '/pages/addressbook/member',
  97. name: 'member',
  98. meta: {
  99. title: 'member',
  100. },
  101. },
  102. {
  103. path: '/pages/addressbook/address-detail',
  104. name: 'addressDetail',
  105. meta: {
  106. title: 'addressDetail',
  107. },
  108. },
  109. {
  110. path: '/pages/annotation/annotationList',
  111. name: 'annotationList',
  112. meta: {
  113. title: '通知公告',
  114. },
  115. },
  116. {
  117. path: '/pages/annotation/annotationDetail',
  118. name: 'annotationDetail',
  119. meta: {
  120. title: '通知详情',
  121. },
  122. },
  123. {
  124. path: '/pages/common/helloWorld',
  125. name: 'helloWorld',
  126. meta: {
  127. title: 'helloWorld',
  128. },
  129. },
  130. ]
  131. export default routes