/*
 * 电商-路由表
 * */
import portalLayout from '@/components/shoppingmall/shopLayout/portalLayout.vue'
import shopmallLayout from '@/components/shoppingmall/shopLayout/shopLayout.vue'
import home from './home'
import goodsClass from './goodsClass'
import order from './order'
import personalCenter from './personalCenter'
import goods from './goods'

export default [{
  path: '/shop',
  redirect: '/shop/shopHome',
  component: portalLayout,
  // component: layout3,
  children: [
    ...home,
    // 商品列表
    ...goodsClass,
    // 订单
    ...order
  ]
},
{ // 电商直采
  path: '/personalCenter',
  component: shopmallLayout,
  children: [
    ...personalCenter,
    ...goods
  ]
},
{ // 电商协议
  path: '/shopProtocol',
  component: shopmallLayout,
  children: [
    ...personalCenter,
    ...goods
  ]
},
{ // 我的账户
  path: '/myAccount',
  component: shopmallLayout,
  children: [
    ...personalCenter,
    ...goods
  ]
},
// 客服电话页
{
  path: '/navbarAdd',
  component: () =>
    import('@/views/shoppingmall/customerManage/navbar-add')
},
// 帮助中心页
{
  path: '/helpCenter',
  component: () =>
    import('@/views/shoppingmall/customerManage/helpCenter')
},
// 登录
{
  path: '/shopLogin',
  component: () =>
    import('@/views/shoppingmall/shopLogin/login.vue')
}
]
