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

export default [
  {
    path: '/gift-manage', // 库存记录
    component: Layout,
    redirect: '/gift-manage/stock-record',
    children: [
      {
        path: 'stock-record',
        component: () => import('@/views/gift-manage/stock-record.vue'),
      },
      // {
      //   path: 'virtual-gift-detail',
      //   component: () => import('@/views/gift-manage/virtual-gift-detail.vue'),
      // }
    ],
  },
  // ****通用配置开始****
  {
    path: '/setting',
    component: Layout,
    redirect: '/setting/sales-return-setting',
    children: [
      {
        path: 'sales-return-setting', // 退货单设置
        component: () => import('@/views/gift-manage/sales-return-setting.vue'),
      },
      {
        path: 'address-lib-list', // 地址库管理
        component: () => import('@/views/gift-manage/address-lib-list.vue'),
      },
      {
        path: 'address-lib-add', // 新建地址库
        component: () => import('@/views/gift-manage/address-lib-form.vue'),
        meta: {
          type: 'add',
          path: '/settinge/address-lib-list'
        }
      },
      {
        path: 'address-lib-edit', // 编辑地址库
        component: () => import('@/views/gift-manage/address-lib-form.vue'),
        meta: {
          type: 'edit',
          path: '/settinge/address-lib-list'
        }
      },
      {
        path: 'pickup-list', // 自提点管理列表
        component: () => import('@/views/gift-manage/pickup-list.vue'),
      },
      {
        path: 'pickup-add', // 新建自提点
        component: () => import('@/views/gift-manage/pickup-form.vue'),
        meta: {
          type: 'add',
          path: '/setting/pickup-list'
        }
      },
      {
        path: 'pickup-edit', // 编辑自提点
        component: () => import('@/views/gift-manage/pickup-form.vue'),
        meta: {
          type: 'edit',
          path: '/setting/pickup-list'
        }
      },
    ],
  },
  // ****通用配置结束****
];