routes.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. const routes = [
  2. {
  3. path: "/pages/login/login",
  4. name: 'login',
  5. meta: {
  6. title: '登录',
  7. },
  8. },{
  9. path: "/pages/login/xieyi",
  10. name: 'xieyi',
  11. meta: {
  12. title: '用户协议',
  13. },
  14. },{
  15. path: "/pages/login/mimi",
  16. name: 'mimi',
  17. meta: {
  18. title: '隐秘协议',
  19. },
  20. },
  21. {
  22. path: "/pages/login/resetpassword",
  23. name: 'resetpassword',
  24. meta: {
  25. title: '忘记密码',
  26. },
  27. },
  28. {
  29. path: "/pages/login/register",
  30. name: 'register',
  31. meta: {
  32. title: '注册',
  33. },
  34. },
  35. {
  36. path: "/pages/login/settled",
  37. name: 'settled',
  38. meta: {
  39. title: '申请入驻',
  40. },
  41. },
  42. {
  43. path: "/pages/login/loginOauth2",
  44. name: 'oauth2Login',
  45. meta: {
  46. title: 'oauth2登录',
  47. },
  48. },
  49. {
  50. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  51. path: '/pages/index/index',
  52. name: 'index',
  53. meta: {
  54. title: '主页',
  55. },
  56. },
  57. {
  58. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  59. path: '/pages/home/home',
  60. //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/
  61. name: 'home',
  62. meta: {
  63. title: '首页',
  64. },
  65. },
  66. {
  67. path: '/pages/user/people',
  68. name: 'people',
  69. meta: {
  70. title: '个人中心',
  71. },
  72. },
  73. {
  74. path: '/pages/user/userdetail',
  75. name: 'userdetail',
  76. meta: {
  77. title: '个人详情',
  78. },
  79. },
  80. {
  81. path: '/pages/user/useredit',
  82. name: 'useredit',
  83. meta: {
  84. title: '个人编辑',
  85. },
  86. },
  87. {
  88. path: '/pages/user/userexit',
  89. name: 'userexit',
  90. meta: {
  91. title: '退出',
  92. },
  93. },
  94. {
  95. path: '/pages/user/location',
  96. name: 'location',
  97. meta: {
  98. title: '定位',
  99. },
  100. },
  101. {
  102. path: '/pages/common/exit',
  103. name: 'exit',
  104. meta: {
  105. title: '退出',
  106. },
  107. },
  108. {
  109. path: '/pages/common/success',
  110. name: 'success',
  111. meta: {
  112. title: 'success',
  113. },
  114. },{
  115. path: '/pages/addressbook/address-book',
  116. name: 'addressBook',
  117. meta: {
  118. title: 'addressBook',
  119. },
  120. },
  121. {
  122. path: '/pages/addressbook/level-address-book',
  123. name: 'levelAddressBook',
  124. meta: {
  125. title: 'levelAddressBook',
  126. },
  127. },
  128. {
  129. path: '/pages/addressbook/member',
  130. name: 'member',
  131. meta: {
  132. title: 'member',
  133. },
  134. },
  135. {
  136. path: '/pages/addressbook/address-detail',
  137. name: 'addressDetail',
  138. meta: {
  139. title: 'addressDetail',
  140. },
  141. },
  142. {
  143. path: '/pages/annotation/annotationList',
  144. name: 'annotationList',
  145. meta: {
  146. title: '通知公告',
  147. },
  148. },
  149. {
  150. path: '/pages/annotation/annotationDetail',
  151. name: 'annotationDetail',
  152. meta: {
  153. title: '通知详情',
  154. },
  155. },
  156. {
  157. path: '/pages/common/helloWorld',
  158. name: 'helloWorld',
  159. meta: {
  160. title: 'helloWorld',
  161. },
  162. },
  163. ]
  164. export default routes