routes.js 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/welcome',
  25. },
  26. {
  27. path: '/welcome',
  28. name: 'welcome',
  29. icon: 'smile',
  30. component: './Welcome',
  31. },
  32. {
  33. path: '/admin',
  34. name: 'admin',
  35. icon: 'crown',
  36. component: './Admin',
  37. authority: ['admin'],
  38. routes: [
  39. {
  40. path: '/admin/sub-page',
  41. name: 'sub-page',
  42. icon: 'smile',
  43. component: './Welcome',
  44. authority: ['admin'],
  45. },
  46. ],
  47. },
  48. {
  49. path: '/building',
  50. name: '项目管理',
  51. icon: 'control',
  52. component: '../layouts/BlankLayout',
  53. routes: [
  54. {
  55. path: '/building/list',
  56. name: '项目列表',
  57. component: './building/List',
  58. },
  59. {
  60. path: '/building/add',
  61. name: '项目维护',
  62. component: './building/Edit',
  63. hideInMenu: true,
  64. },
  65. {
  66. path: '/building/type',
  67. name: '项目类型',
  68. component: './building/type/index',
  69. },
  70. {
  71. path: '/building/type/edi',
  72. name: '项目类型编辑',
  73. hideInMenu: true,
  74. component: './building/type/edi',
  75. },
  76. {
  77. path: '/building/Developers',
  78. name: '品牌开发商',
  79. component: './building/Developers',
  80. },
  81. {
  82. path: '/building/Developers/Edit',
  83. name: '品牌开发商编辑',
  84. hideInMenu: true,
  85. component: './building/Developers/Edit',
  86. },
  87. ],
  88. },
  89. {
  90. path: '/customer',
  91. name: '客户管理',
  92. component: '../layouts/BlankLayout',
  93. routes: [
  94. {
  95. path: '/customer/customer/list',
  96. name: '客户列表',
  97. component: './customer/Customer/index',
  98. },
  99. {
  100. path: '/customer/customerlist/privateCustomerDetail',
  101. name: '私客详情',
  102. hideInMenu: true,
  103. component: './customer/Customer/PrivateCustomer/CustomerDetail',
  104. },
  105. // {
  106. // path: '/customer/customerlist/list',
  107. // name: '客户列表old',
  108. // component: './customer/customerlist/index copy.jsx',
  109. // },
  110. {
  111. path: '/customer/customerlist/customerDetail',
  112. name: '私客详情',
  113. hideInMenu: true,
  114. component: './customer/customerlist/customerDetail',
  115. },
  116. {
  117. path: '/customer/drift/list',
  118. name: '游客列表',
  119. component: './customer/drift/index',
  120. },
  121. {
  122. path: '/customer/customerlist/publicCustomerDetail',
  123. name: '公客详情',
  124. hideInMenu: true,
  125. component: './customer/customerlist/publicCustomerDetail',
  126. },
  127. {
  128. path: '/customer/recommend/list',
  129. name: '推荐记录',
  130. component: './customer/Recommend',
  131. },
  132. {
  133. path: '/customer/recommend/audit',
  134. name: '客户审核',
  135. hideInMenu: true,
  136. component: './customer/Recommend/audit',
  137. },
  138. ],
  139. },
  140. {
  141. path: '/carouselFigure',
  142. name: '资源位管理',
  143. component: '../layouts/BlankLayout',
  144. routes: [
  145. {
  146. path: '/carouselFigure/carouselFigureList',
  147. name: '轮播图',
  148. component: './carouselFigure/carouselFigureList',
  149. },
  150. {
  151. path: '/carouselFigure/editCarousel',
  152. name: '轮播图编辑',
  153. hideInMenu: true,
  154. component: './carouselFigure/editCarousel',
  155. },
  156. {
  157. path: '/carouselFigure/advertisingList',
  158. name: '开屏广告',
  159. component: './carouselFigure/advertisingList',
  160. },
  161. {
  162. path: '/carouselFigure/editAdvertising',
  163. name: '开屏广告编辑',
  164. hideInMenu: true,
  165. component: './carouselFigure/editAdvertising',
  166. },
  167. {
  168. path: '/carouselFigure/propagandaList',
  169. name: '宣传位',
  170. component: './carouselFigure/propagandaList',
  171. },
  172. {
  173. path: '/carouselFigure/propaganda',
  174. name: '宣传位编辑',
  175. hideInMenu: true,
  176. component: './carouselFigure/propaganda',
  177. },
  178. {
  179. path: '/carouselFigure/customImg/list',
  180. name: '其他',
  181. component: './carouselFigure/customImg/list',
  182. },
  183. {
  184. path: '/carouselFigure/customImg/edit',
  185. name: '其他编辑',
  186. hideInMenu: true,
  187. component: './carouselFigure/customImg/edit',
  188. },
  189. ],
  190. },
  191. {
  192. component: './404',
  193. },
  194. ],
  195. },
  196. {
  197. component: './404',
  198. },
  199. ],
  200. },
  201. {
  202. component: './404',
  203. },
  204. ]