/* Layout */
import Layout from '@/layout'

const memberRoutes = [
  {
    path: '/member',
    component: Layout,
    alwaysShow: true,
    redirect: '/member/member-list',
    name: 'Member',
    meta: { title: '会员管理', noCache: true },
    children: [
      {
        path: 'member-list',
        component: () => import('@/views/admin/member'),
        name: 'MemberList',
        meta: { title: '会员列表', noCache: true }
      },
      {
        path: 'handsel',
        component: () => import('@/views/admin/member/handsel'),
        name: 'Handsel',
        meta: { title: '赠送会员', noCache: true },
        hidden: true
      },
      {
        path: 'service',
        component: () => import('@/views/admin/member/service'),
        name: 'Service',
        meta: { title: '配置定制化服务', noCache: true },
        hidden: true
      },
      {
        path: 'record',
        component: () => import('@/views/admin/member/record'),
        name: 'Record',
        meta: { title: '购买记录', noCache: true },
        hidden: true
      },
      {
        path: 'combo-edit',
        component: () => import('@/views/admin/member/settings/combo-edit'),
        name: 'ComboEdit',
        meta: { title: '会员套餐配置', noCache: true }
      },
      {
        path: 'service-edit',
        component: () => import('@/views/admin/member/settings/service-edit'),
        name: 'ServiceEdit',
        meta: { title: '会员服务配置', noCache: true }
      }
    ]
  }
]

export default memberRoutes
