import Layout from '@/layout'

const teamRouter = {
  path: '/team',
  component: Layout,
  redirect: 'noRedirect',
  name: 'teamSet',
  meta: {
    title: '代理管理',
    icon: 'team'
  },
  children: [
    {
      path: 'member',
      component: () => import('@/pages/team/member'),
      name: 'team_member',
      meta: {
        title: '代理列表',
        noCache: true,
        authList: [
          {
            name: '添加代理',
            value: '0'
          },
          {
            name: '搜索',
            value: '1'
          },
          {
            name: '修改代理信息',
            value: '2'
          }
        ],
        buttonAuthList: ['0', '1']
      }
    },
    {
      path: 'upgrade',
      component: () => import('@/pages/team/upgrade'),
      name: 'team_upgrade',
      meta: { title: '代理升级', noCache: true }
    },
    {
      path: 'shop',
      component: () => import('@/pages/team/shop'),
      name: 'team_shop',
      meta: { title: '店铺业绩', noCache: true }
    },
    {
      path: 'examine',
      component: () => import('@/pages/team/examine'),
      name: 'team_axamine',
      meta: { title: '审核管理', noCache: true }
    }
  ]
}

export default teamRouter
