router.config.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. export default [
  2. { path: '/', redirect: '/mall/home' },
  3. {
  4. path: '/download',
  5. component: './Download',
  6. },
  7. {
  8. path: '/error',
  9. component: './Error/Error',
  10. },
  11. // {
  12. // path: '/certificate',
  13. // name: '企业蓝V认证',
  14. // component: '../layouts/ActivityLayout',
  15. // routes: [
  16. // {
  17. // name: '企业蓝V认证',
  18. // path: '/certificate/source',
  19. // component: './Certificate/Certificate'
  20. // }
  21. // ]
  22. // },
  23. // {
  24. // path: '/paytypes',
  25. // component: '../layouts/NoLoginLayout',
  26. // routes: [
  27. // {
  28. // name: '微信支付',
  29. // path: '/paytypes/wechat',
  30. // component: './Pay/WechatPay'
  31. // }
  32. // ]
  33. // },
  34. // {
  35. // path: '/block',
  36. // name: '美丽乡村',
  37. // component: '../layouts/Village',
  38. // routes: [
  39. // {
  40. // name: '美丽乡村',
  41. // path: '/block/home',
  42. // component: './Village/Village',
  43. // },
  44. // {
  45. // name: '目的地美食',
  46. // path: '/block/prods',
  47. // component: './Village/VillageProds',
  48. // },
  49. // {
  50. // name: '美丽乡村',
  51. // path: '/block/content',
  52. // component: './Village/VillageContent',
  53. // }
  54. // ]
  55. // },
  56. {
  57. path: '/user',
  58. name: '用户',
  59. routes: [
  60. {
  61. name: '微信登录',
  62. path: '/user/login',
  63. component: './Login/Login',
  64. },
  65. {
  66. name: '手机登录',
  67. path: '/user/phoneLogin',
  68. component: './Login/PhoneLogin',
  69. },
  70. {
  71. name: '管家绑定',
  72. path: '/user/manager',
  73. component: './Login/ManagerBind',
  74. },
  75. ]
  76. },
  77. // {
  78. // path: '/vip',
  79. // name: '会员',
  80. // routes: [
  81. // {
  82. // name: '会员中心',
  83. // path: '/vip/pre',
  84. // component: './Vip/VipPre',
  85. // },
  86. // ]
  87. // },
  88. {
  89. path: '/product',
  90. name: '商品',
  91. component: '../layouts/LoginLayout',
  92. routes: [
  93. {
  94. path: '/product/comment',
  95. name: '商品评论列表',
  96. component: './Product/ProductCommentList'
  97. },
  98. {
  99. path: '/product/detail',
  100. name: '商品详情',
  101. component: './Product/ProductDetail'
  102. }
  103. ]
  104. },
  105. {
  106. path: '/mall',
  107. name: '商品',
  108. component: '../layouts/LoginLayout',
  109. routes: [
  110. {
  111. path: '/mall/home',
  112. name: '商城首页',
  113. component: './Mall/Home'
  114. },
  115. ]
  116. },
  117. {
  118. path: '/order',
  119. name: '订单',
  120. component: '../layouts/LoginLayout',
  121. routes: [
  122. {
  123. path: '/order/confirmBuy',
  124. name: '确认订单',
  125. component: './Order/ConfirmBuy'
  126. },
  127. {
  128. path: '/order/pay',
  129. name: '支付',
  130. component: './Order/Pay'
  131. },
  132. {
  133. name: '微信支付',
  134. path: '/order/wechatpay',
  135. component: './Pay/WechatPay'
  136. },
  137. {
  138. name: '订单列表',
  139. path: '/order/list',
  140. component: './Order/OrderList'
  141. },
  142. {
  143. path: '/order/detail',
  144. name: '订单详情',
  145. component: './Order/OrderDetail'
  146. },
  147. {
  148. path: '/order/refund',
  149. name: '选择退货商品',
  150. component: './Order/Refund'
  151. },
  152. {
  153. path: '/order/confirmRefund',
  154. name: '申请退款',
  155. component: './Order/ConfirmRefund'
  156. },
  157. {
  158. path: '/order/refundDetail',
  159. name: '退款详情',
  160. component: './Order/RefundDetail'
  161. },
  162. {
  163. path: '/order/comment',
  164. name: '发布评价',
  165. component: './Order/Comment'
  166. }
  167. ]
  168. },
  169. {
  170. path: '/pay',
  171. name: '支付',
  172. component: '../layouts/LoginLayout',
  173. routes: [
  174. {
  175. name: '支付宝支付',
  176. path: '/pay/ali',
  177. component: './Pay/AliPay'
  178. },
  179. ]
  180. },
  181. // {
  182. // path: '/article',
  183. // name: '内容',
  184. // component: '../layouts/NoLoginLayout',
  185. // routes: [
  186. // {
  187. // path: '/article/article',
  188. // name: '博文详情',
  189. // component: './Article/Article'
  190. // },
  191. // {
  192. // path: '/article/articleVideo',
  193. // name: '博文详情',
  194. // component: './Article/ArticleVideo'
  195. // }
  196. // ]
  197. // },
  198. {
  199. path: '/shipping',
  200. name: '收货信息',
  201. component: '../layouts/LoginLayout',
  202. routes: [
  203. {
  204. path: '/shipping/shippingList',
  205. name: '收货地址列表',
  206. component: './Shipping/ShippingList'
  207. },
  208. {
  209. path: '/shipping/add',
  210. name: '添加地址',
  211. component: './Shipping/AddShipping'
  212. },
  213. {
  214. path: '/shipping/update',
  215. name: '编辑地址',
  216. component: './Shipping/AddShipping'
  217. }
  218. ]
  219. },
  220. // {
  221. // path: '/activity',
  222. // component: '../layouts/ActivityLayout',
  223. // routes: [
  224. // {
  225. // path: '/activity/home',
  226. // component: './Activity/ActivityCover',
  227. // name: '嬉客创作大赛'
  228. // },
  229. // {
  230. // path: '/activity/main',
  231. // component: './Activity/Activity',
  232. // name: '嬉客创作大赛'
  233. // },
  234. // {
  235. // path: '/activity/explain',
  236. // component: './Activity/ActivityExplain',
  237. // //document: './src/documents/reg.ejs',
  238. // name: '活动说明'
  239. // },
  240. // {
  241. // path: '/activity/select',
  242. // component: './Activity/ActivitySelect',
  243. // name: '参赛作品'
  244. // },
  245. // {
  246. // path: '/activity/users',
  247. // component: './Activity/ActivityUsers',
  248. // name: '参赛选手'
  249. // },
  250. // {
  251. // path: '/activity/ranking',
  252. // component: './Activity/ActivityRanking',
  253. // name: '贡献榜'
  254. // },
  255. // {
  256. // path: '/activity/qcode',
  257. // component: './Activity/ActivityQcode',
  258. // name: '活动说明'
  259. // },
  260. // {
  261. // path: '/activity/join',
  262. // component: './Activity/ActivityJoin',
  263. // name: '我要参赛'
  264. // },
  265. // {
  266. // path: '/activity/video',
  267. // component: './Activity/ActivityVideo',
  268. // name: '我要参赛'
  269. // },
  270. // ]
  271. // },
  272. // {
  273. // path: '/app/guide',
  274. // component: './App/DownLoadGuide',
  275. // name: '下载APP'
  276. // },
  277. // {
  278. // path: '/app/pay',
  279. // component: './App/AppPay',
  280. // name: '支付'
  281. // }
  282. ]