import Layout from '@/components/layout'
import Login from '@/views/login'
import page404 from '@/views/error/404'
import test from '@/test/storeInput'

//微信营销
import wechat from './modules/wechat'
//游戏营销
import game from './modules/game'
//短信营销
import message from './modules/message'
//卡券营销
import card from './modules/card'
//新卡券营销
import giccard from './modules/giccard'
//智能营销
import ecm from './modules/ecm'
//模板消息
import msg from './modules/msg'
//通话中心
import calllog from './modules/calllog'
//服务监督
import evaluation from './modules/evaluation'
//计费中心
import recharge from './modules/recharge'

export default [
  {
    path: '/',
    name: 'layout',
    component: Layout,
    redirect: '/wechat/record',
    children: [
      card,
      giccard,
      ecm,
      game,
      message,
      wechat,
      msg,
      calllog,
      recharge,
      evaluation,
    ]
  },
  {
    path: '/login',
    name: 'GIC登录',
    component: Login
  },
  {
    path: '*',
    name: '未知领域',
    component: page404
  },
  {
    path: '/test',
    name: '测试组件',
    component: test
  }
]
