import Layout from '@/components/layout';
import pageLimit from '@/views/error/limit';
import page401 from '@/views/error/401';
import page403 from '@/views/error/403';
import page404 from '@/views/error/404';
import page500 from '@/views/error/500';
import activityCenter from '@/views/activityCenter';

//微信营销
import wechat from './modules/wechat';
//游戏营销
import game from './modules/game';
//短信营销
import message from './modules/message';
//卡券营销
import card from './modules/card';
//智能营销
import ecm, { scan } from './modules/ecm';
//模板消息
import msg from './modules/msg';
//通话中心
import calllog from './modules/calllog';
//服务监督
import evaluation from './modules/evaluation';
//计费中心
import recharge from './modules/recharge';
//e袋洗
import ewash from './modules/ewash';
//数据对话
import activity from './modules/activity';
//兑换码
import cdKey from './modules/cdKey';
//弹窗推广
import pop from './modules/pop';
// ai营销
import ai from './modules/ai';
//签到
import signIn from './modules/signIn';
export default [
  {
    path: '/',
    name: 'layout',
    component: Layout,
    redirect: '/marketing-app-list',
    children: [
      {
        path: '/marketing-app-list',
        name: '营销活动',
        component: activityCenter
      },
      card,
      ecm,
      scan,
      game,
      message,
      wechat,
      msg,
      calllog,
      recharge,
      evaluation,
      ewash,
      activity,
      cdKey,
      pop,
      signIn,
      ai
    ]
  },
  {
    path: '/401',
    name: '未授权',
    component: page401
  },
  {
    path: '/403',
    name: '禁止访问',
    component: page403
  },
  {
    path: '/500',
    name: '系统错误',
    component: page500
  },
  {
    path: '/limit',
    name: '页面限流',
    component: pageLimit
  },
  {
    path: '*',
    name: '未知领域',
    component: page404
  }
];
