
// wechat 微信营销
import wechat from '../../views/wechat/index'
import wechatRecord from '../../views/wechat/record'
import wechatTemp from '../../views/wechat/temp'
import imgTextTemp from '../../components/libs/imgTextTemp'
import imgTemp from '../../components/libs/imgTemp'
import audioTemp from '../../components/libs/audioTemp'
import videoTemp from '../../components/libs/videoTemp'
import videoAddEdit from '../../components/libs/videoTemp/addEdit'

import wechatAddRecord from '../../views/wechat/addRecord'
import editor from '../../views/wechat/editor'


export default {
  path: 'wechat',
  name: '微信营销',
  component: wechat,
  redirect: 'wechat/record',
  meta: {},
  children: [
    {
      path: 'record',
      name: '发送记录',
      component: wechatRecord,
      meta: {}
    },
    {
      path: 'record/add',
      name: '新建群发',
      component: wechatAddRecord,
      meta: {type:'add'}
    },
    {
      path: 'record/edit/:id',
      name: '编辑群发',
      component: wechatAddRecord,
      meta: {type:'edit'}
    },
    {
      path: 'record/add/:id',
      name: '使用图文群发',
      component: wechatAddRecord,
      meta: {type:'imgText'}
    },
    {
      path: 'editor/:id',
      name: '编辑图文',
      component: editor,
      meta: {type: 'edit'}
    },
    {
      path: 'editor',
      name: '新建图文',
      component: editor,
      meta: {type: 'add'}
    },
    {
      path: 'temp',
      name: '素材库',
      component: wechatTemp,
      redirect: 'temp/imgtext',
      meta: {},
      children: [
        {
          path: 'imgtext',
          name: '图文',
          component: imgTextTemp,
          meta: {}
        },
        {
          path: 'img',
          name: '图片',
          component: imgTemp,
          meta: {}
        },
        {
          path: 'audio',
          name: '语音',
          component: audioTemp,
          meta: {}
        },
        {
          path: 'video',
          name: '视频',
          component: videoTemp,
          meta: {}
        },
        {
          path: 'video/add',
          name: '新增视频',
          component: videoAddEdit,
          meta: {
            type:'add'
          }
        },
        {
          path: 'video/edit/:id',
          name: '编辑视频',
          component: videoAddEdit,
          meta: {
            type:'edit'
          }
        },
      ]
    }
  ]
};
