import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/card',
  name: 'card',
  meta,
  redirect: { name: 'card-user' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'user', name: `${pre}user`, component: () => import('@/views/card/user'), meta: { meta, title: '卡户管理',cache:true } },
    { path: 'setFunc', name: `${pre}setFunc`, component: () => import('@/views/card/setFunc'), meta: { meta, title: '功能设置',cache:true } },
    { path: 'addressCode', name: `${pre}addressCode`, component: () => import('@/views/card/addressCode'), meta: { meta, title: '地区编码',cache:true } },
    { path: 'kindCard', name: `${pre}kindCard`, component: () => import('@/views/card/kindCard'), meta: { meta, title: '卡种编码',cache:true } },
    { path: 'manageCost', name: `${pre}manageCost`, component: () => import('@/views/card/manageCost'), meta: { meta, title: '成本管理',cache:true } },
    { path: 'recharge', name: `${pre}recharge`, component: () => import('@/views/card/recharge'), meta: { meta, title: '充值汇总',cache:true } },
  ])('card-')
}