
import Layout from '@/layout'
import { roterPre } from '@/settings'
const promoterRouter =
  {
    path: `${roterPre}/promoter`,
    name: 'promoter',
    meta: {
      icon: '',
      title: '设置'
    },
    alwaysShow: true,
    component: Layout,
    children: [
      {
        path: 'config',
        name: 'PromoterConfig',
        meta: {
          title: '分销配置',
          noCache: true
        },
        component: () => import('@/views/promoter/config/index')
      },
      {
        path: 'user',
        name: 'AccountsUser',
        meta: {
          title: '分销员列表',
          noCache: true
        },
        component: () => import('@/views/promoter/user/index')
      },
      {
        path: 'apply_formal',
        name: 'AccountsUserApplyFormal',
        meta: {
          title: '分销转正申请',
          noCache: true
        },
        component: () => import('@/views/promoter/user/apply_formal')
      },
      {
        path: 'orderList',
        name: 'OrderList',
        meta: {
          title: '分销订单',
          noCache: true
        },
        component: () => import('@/views/promoter/order/index')
      },
      {
        path: 'bank/:id?',
        name: 'PromoterBank',
        meta: {
          title: '页面设置',
          noCache: true
        },
        component: () => import('@/views/system/groupData/data')
      },
      {
        path: 'commission',
        name: 'commissionDes',
        meta: {
          title: '佣金说明',
          noCache: true
        },
        component: () => import('@/views/promoter/commission/index')
      },
      {
        path: 'gift',
        name: 'AccountsGift',
        meta: {
          title: '分销礼包',
          noCache: true
        },
        component: () => import('@/views/promoter/gift/index')
      },
      {
        path: 'membership_level',
        name: 'PromoterLevel',
        meta: {
          title: '分销等级',
          noCache: true
        },
        component: () => import('@/views/promoter/membershipLevel/index')
      },
      {
        path: 'distribution',
        name: 'distributionRules',
        meta: {
          title: '分销等级规则',
          noCache: true
        },
        component: () => import('@/views/promoter/distributionRules/index')
      }

    ]
  }

export default promoterRouter
