import Layout from '@/components/layout/layout';

export default [
  {
    path: '/card-package',
    component: Layout,
    redirect: '/card-package/list',
    children: [
      // 卡券包列表
      {
        path: 'list',
        component: () => import(/* webpackChunkName: "card-package" */'@/views/card-package/list.vue'),
      },
      // 新增卡券包
      {
        path: 'add',
        component: () => import(/* webpackChunkName: "card-package" */'@/views/card-package/form.vue'),
        meta: {
          type: 'add',
          path: '/card-package/list'
        }
      },
      // 编辑卡券包
      {
        path: 'edit',
        component: () => import(/* webpackChunkName: "card-package" */'@/views/card-package/form.vue'),
        meta: {
          type: 'edit',
          path: '/card-package/list'
        }
      },
      // 卡券包领取记录
      {
        path: 'send-list',
        component: () => import(/* webpackChunkName: "card-package" */'@/views/card-package/send-list.vue'),
      },
      // 卡券包库存记录
      {
        path: 'stock-list',
        component: () => import(/* webpackChunkName: "card-package" */'@/views/card-package/stock-list.vue'),
        meta: {
          path: '/card-package/list'
        }
      },
    ],
  },
];