// 短信营销
// import message from '../../views/message';
// import form from '../../views/message/form';
// import record from '../../views/message/record';
// import temp from '../../views/message/temp';
// import addTemp from '../../views/message/addTemp';
// import recordDetail from '../../views/message/detail';

export default {
  path: 'message',
  name: '短信营销',
  component: () => import(/* webpackChunkName: "message" */ '../../views/message'),
  meta: {},
  redirect: 'message/record',
  children: [
    {
      path: 'record',
      name: '短信群发',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/record'),
      meta: {
        path: '/message/record'
      }
    },
    {
      path: 'temp',
      name: '模板库',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/temp'),
      meta: {
        path: '/message/temp'
      }
    },
    {
      path: 'temp/add',
      name: '新增模板',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/addTemp'),
      meta: {
        type: 'add',
        path: '/message/temp'
      }
    },
    {
      path: 'temp/edit/:id',
      name: '编辑模板',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/addTemp'),
      meta: {
        type: 'edit',
        path: '/message/temp'
      }
    },
    {
      path: 'record/add',
      name: '新建群发',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/form'),
      meta: {
        path: '/message/record'
      }
    },
    {
      path: 'record/detail/:id',
      name: '短信群发详情',
      component: () => import(/* webpackChunkName: "message" */ '../../views/message/detail'),
      meta: {
        path: '/message/record'
      }
    }
  ]
};
