mall.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // ********************************************************************************************************************
  2. // 商城
  3. // ********************************************************************************************************************
  4. const Mall = () => import('views/mall/Mall')
  5. const Overview = () => import('views/mall/Overview')
  6. const Cart = () => import('views/mall/Cart')
  7. const Fav = () => import('views/mall/Fav')
  8. const Order = () => import('views/mall/Order')
  9. const ConfirmOrder = () => import('views/mall/ConfirmOrder')
  10. const Visit = () => import('views/mall/Visit')
  11. const Pay = () => import('views/mall/Pay')
  12. const Product = () => import('views/mall/Product')
  13. const MyProduct = () => import('views/mall/MyProduct')
  14. export default {
  15. path: '/mall',
  16. name: 'Mall',
  17. component: Mall,
  18. meta: { needAuth: false },
  19. children: [
  20. {
  21. path: '',
  22. name: '概览',
  23. component: Overview,
  24. meta: { needAuth: false }
  25. },
  26. {
  27. path: '/mall/cart',
  28. name: '购物车',
  29. component: Cart,
  30. meta: { needAuth: false }
  31. },
  32. {
  33. path: '/mall/fav',
  34. name: '收藏夹',
  35. component: Fav,
  36. meta: { needAuth: false }
  37. },
  38. {
  39. path: '/mall/order',
  40. name: '订单',
  41. component: Order,
  42. meta: { needAuth: false }
  43. },
  44. {
  45. path: '/mall/order/confirm',
  46. name: 'ConfirmOrder',
  47. component: ConfirmOrder,
  48. meta: { needAuth: false }
  49. },
  50. {
  51. path: '/mall/visit',
  52. name: '浏览记录',
  53. component: Visit,
  54. meta: { needAuth: false }
  55. },
  56. {
  57. path: '/mall/pay',
  58. name: 'Pay',
  59. component: Pay,
  60. meta: { needAuth: false }
  61. },
  62. {
  63. path: '/mall/item',
  64. name: 'Product',
  65. component: Product,
  66. meta: { needAuth: false }
  67. },
  68. {
  69. path: '/mall/myproduct',
  70. name: 'MyProduct',
  71. component: MyProduct,
  72. meta: { needAuth: false }
  73. }
  74. ]
  75. }