text: import App from '../APP'
  
  const dialogue = r => require.ensure([], () => r(require('../frames/dialogue/dialogue')), 'dialogue')
  const singlechat = r => require.ensure([], () => r(require('../frames/conversation/singlechat')), 'singlechat')
  const groupchat = r => require.ensure([], () => r(require('../frames/conversation/groupchat')), 'groupchat')
  const chatmessage = r => require.ensure([], () => r(require('../frames/conversation/chatmessage/chatmessage')), 'chatmessage')
  const groupchatmessage = r => require.ensure([], () => r(require('../frames/conversation/chatmessage/groupchatmessage')), 'groupchatmessage')
  const addressbook = r => require.ensure([], () => r(require('../frames/addressbook/addressbook')), 'addressbook')
  const details = r => require.ensure([], () => r(require('../frames/addressbook/details/details')), 'details')
  const more = r => require.ensure([], () => r(require('../frames/addressbook/details/more/more')), 'more')
  const find = r => require.ensure([], () => r(require('../frames/find/find')), 'find')
  const friendcircle = r => require.ensure([], () => r(require('../frames/find/friendcircle/friendcircle')), 'friendcircle')
  const miniapps = r => require.ensure([], () => r(require('../frames/find/miniapps/miniapps')), 'miniapps')
  const me = r => require.ensure([], () => r(require('../frames/me/me')), 'me')
  const personaldetails = r => require.ensure([], () => r(require('../frames/me/personaldetails/personaldetails')), 'personaldetails')
  const photoalbum = r => require.ensure([], () => r(require('../frames/me/photoalbum/photoalbum')), 'photoalbum')
  const collect = r => require.ensure([], () => r(require('../frames/me/collect/collect')), 'collect')
  const wallet = r => require.ensure([], () => r(require('../frames/me/wallet/wallet')), 'wallet')
  const cardbag = r => require.ensure([], () => r(require('../frames/me/cardbag/cardbag')), 'cardbag')
  
  const computer = r => require.ensure([], () => r(require('../frames/computer/computer')), 'computer')
  const transfer = r => require.ensure([], () => r(require('../frames/transfer/transfer')), 'transfer')
  const settings = r => require.ensure([], () => r(require('../frames/me/settings/settings')), 'settings')
  const search = r => require.ensure([], () => r(require('../frames/search/search')), 'search')
  const newmessage = r => require.ensure([], () => r(require('../frames/me/settings/detailset/newmessage')), 'newmessage')
  const disturbance = r => require.ensure([], () => r(require('../frames/me/settings/detailset/disturbance')), 'disturbance')
  const chat = r => require.ensure([], () => r(require('../frames/me/settings/detailset/chat')), 'chat')
  const privacy = r => require.ensure([], () => r(require('../frames/me/settings/detailset/privacy')), 'privacy')
  const currency = r => require.ensure([], () => r(require('../frames/me/settings/detailset/currency')), 'currency')
  const aboutwc = r => require.ensure([], () => r(require('../frames/me/settings/detailset/aboutwc')), 'aboutwc')
  const help = r => require.ensure([], () => r(require('../frames/me/settings/detailset/help')), 'help')
  const login = r => require.ensure([], () => r(require('../frames/me/settings/detailset/login')), 'login')
  const registry = r => require.ensure([], () => r(require('../frames/me/settings/detailset/registry')), 'registry')
  const before = r => require.ensure([], () => r(require('../frames/me/settings/detailset/before')), 'before')
  const face = r => require.ensure([], () => r(require('../frames/conversation/chatmessage/foot/index')), 'index')
  const voice = r => require.ensure([], () => r(require('../frames/conversation/chatmessage/wechatfooter')), 'voice')
  const qrcode = r => require.ensure([], () => r(require('../frames/me/settings/detailset/qrcode')), 'qrcode')
  const saoyisao = r => require.ensure([], () => r(require('../frames/find/saoyisao')), 'saoyisao')
  const yaoyiyao = r => require.ensure([], () => r(require('../frames/find/yaoyiyao')), 'yaoyiyao')
  // 商城路由配置
  export default [{
    path: '/',
    component: App,
    children: [
      // /before
      {path: '', redirect: '/find'},   //地址为空时跳转dialogue页面
      {path: '/dialogue', component: dialogue},//对话列表页
      {path: '/login', component: login},//对话列表页
      {path: '/registry', component: registry},
      {path: '/before', component: before},
      {path: '/voice', component: voice},
      {path: '/qrcode', component: qrcode},
      {path: '/saoyisao', component: saoyisao},
      {path: '/yaoyiyao', component: yaoyiyao},
      {
        path: '/singlechat/:id',
        component: singlechat,
        children: [
          {
            path: '/singlechat/chatmessage',
            component: chatmessage,
          },
          {
            path: "/singlechat/face",
            component: face
          }
        ]
      },		//单人对话详情页
      {
        path: '/groupchat',
        component: groupchat,
        children: [
          {
            path: '/groupchat/groupchatmessage',
            component: groupchatmessage,
          }
        ]
      },			//群聊
      {
        path: '/addressbook', component: addressbook, meta: {keepAlive: true},
        children: [
          {
            path: '/addressbook/details/:id',
            component: details,		//详细资料
            children: [
              {
                path: '/addressbook/details/more',
                component: more,		//更多
              }
            ]
          }
        ]
  
      },	//通讯录
      {
        path: '/find', component: find,
        children: [
          {
            path: '/find/friendcircle',
            component: friendcircle, //朋友圈
          },
          {
            path: '/find/miniapps',
            component: miniapps, //小程序
          },
        ]
      },	//发现
      {path: '/search', component: search},	//发现
      {
        path: '/me', component: me,
        children: [
          {
            path: '/me/settings', component: settings,//设置
            children: [
              {
                path: '/me/settings/newmessage',
                component: newmessage,
              },	//新消息提醒
              {
                path: '/me/settings/disturbance',
                component: disturbance,
              },	//勿扰模式
              {
                path: '/me/settings/chat',
                component: chat,
              },	//聊天
              {
                path: '/me/settings/privacy',
                component: privacy,
              },	//隐私
              {
                path: '/me/settings/currency',
                component: currency,
              },	//通用
              {
                path: '/me/settings/aboutwc',
                component: aboutwc,
              },	//关于微信
              {
                path: '/me/settings/help',
                component: help,
              },	//帮助与反馈
              {
                path: '/me/settings/login',
                component: login,
              }	//退出
            ]
          },
          {
            path: '/me/personaldetails', component: personaldetails,		//个人信息
          },
          {
            path: '/me/cardbag', component: cardbag,		//卡包
          },
          {
            path: '/me/photoalbum', component: photoalbum,		//相册
          },
          {
            path: '/me/collect', component: collect,		//我的收藏
          },
          {
            path: '/me/wallet', component: wallet,		//钱包
          },
        ]
      },	//我
      {path: '/computer', component: computer},	//电脑登录
      {path: '/transfer', component: transfer},	//文件传送助手
    ]
  }]
  