import { Layout } from '@/utils/routerHelper'
const pre = 'marketing'

export default {
  path: `/${pre}`,
  component: Layout,
  name: `${pre}`,
  redirect: '/marketing/coupon',
  meta: {
    title: '营销管理',
    icon: 'vi-ep:setting',
    alwaysShow: true
  },
  children: [
    {
      path: 'coupon',
      name: `${pre}-coupon`,
      component: () => import('@/views/Marketing/coupon/index.vue'),
      meta: {
        title: '优惠券模板'
      },
    },
    {
      path: 'list',
      name: `${pre}-list`,
      component: () => import('@/views/Marketing/coupon/list.vue'),
      meta: {
        title: '优惠券列表'
      },
      
    },
    {
      path: 'get',
      name: `${pre}-get`,
      component: () => import('@/views/Marketing/coupon/get.vue'),
      meta: {
        title: '优惠券领取记录'
      },
      
    },
    {
      path: 'rechange',
      name: `${pre}-rechange`,
      component: () => import('@/views/Marketing/Rechange/Rechange.vue'),
      meta: {
        title: '充值设置'
      },
    },
  ]
}
