const LAYOUT = () => import("@/layout/app/index.vue");
export const imRoutes = [
    {
        path: "/",
        name: "main",
        redirect: "im",
        component: LAYOUT,
        children: [
            {
                path: "/im",
                name: "im",
                meta: {
                    title: "router.Social",
                    keepAlive: false,
                    navbar: false,
                    tabbar: true,
                }, // 社交
                component: () => import("@/views/im/index.vue"),
            },
            {
                path: "/login",
                name: "login",
                component: () => import("@/views/login/login.vue"),
                meta: {
                    title: "router.Login",   // 登录
                }
            },
            {
                path: "chat",
                name: "chat",
                meta: {
                    title: "router.Social",
                    keepAlive: false,
                    navbar: false,
                    leftArrow: true,
                }, //  chat界面
                component: () => import("@/views/im/chat/index.vue"),
            },
            {
                path: "detail",
                name: "detail",
                meta: {
                    title: "router.ChatMessage",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  chat详情
                component: () => import("@/views/im/detail/index.vue"),
            },
            {
                path: "qrcode",
                name: "qrcode",
                meta: {
                    title: "router.GroupQRCode",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  二维码详情
                component: () => import("@/views/im/detail/qrcode/index.vue"),
            },
            {
                path: "chatLog",
                name: "chatLog",
                meta: {
                    title: "router.ChatMessage",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  聊天记录
                component: () => import("@/views/im/detail/chatLog/index.vue"),
            },
            {
                path: "addMember",
                name: "addMember",
                meta: {
                    title: "router.AddMember",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  添加成员
                component: () => import("@/views/im/detail/addMember/index.vue"),
            },
            {
                path: "createGroupChat",
                name: "createGroupChat",
                meta: {
                    title: "router.CreateGroupChat",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  创建群聊
                component: () => import("@/views/im/detail/addMember/index.vue"),
            },
            {
                path: "deleteMember",
                name: "deleteMember",
                meta: {
                    title: "router.SelectMembers",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  移出成员
                component: () => import("@/views/im/detail/deleteMember/index.vue"),
            },
            {
                path: "checkMember",
                name: "checkMember",
                meta: {
                    title: "router.GroupMembers",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  查看成员
                component: () => import("@/views/im/detail/checkMember/index.vue"),
            },
            {
                path: "contact",
                name: "contact",
                meta: {
                    title: "router.ContactList",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  通讯录
                component: () => import("@/views/im/contactList/index.vue"),
            },
            {
                path: "invitation",
                name: "invitation",
                meta: {
                    title: "router.NewInvitation",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  新邀请
                component: () => import("@/views/im/contactList/invitation/index.vue"),
            },
            {
                path: "group",
                name: "group",
                meta: {
                    title: "router.GroupChatList",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  群聊列表
                component: () => import("@/views/im/contactList/groupList/index.vue"),
            },
            // {
            //     path: "record",
            //     name: "record",
            //     meta: {
            //         title: "router.ReleaseRecord",
            //         keepAlive: false,
            //         navbar: true,
            //         leftArrow: true,
            //     }, //  发布记录
            //     component: () => import("@/views/im/releaseRecord/index.vue"),
            // },
            {
                path: "personal",
                name: "personal",
                meta: {
                    title: "router.PersonalInformation",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  个人信息
                component: () => import("@/views/im/personal/index.vue"),
            },
            {
                path: "search",
                name: "search",
                meta: {
                    title: "router.Search",
                    keepAlive: false,
                    navbar: true,
                    leftArrow: true,
                }, //  搜索页面
                component: () => import("@/views/im/search/index.vue"),
            },
            // {
            //     path: "publish",
            //     name: "publish",
            //     meta: {
            //         title: "router.Publish",
            //         keepAlive: false,
            //         navbar: true,
            //         leftArrow: true,
            //     }, //  朋友圈发布页面
            //     component: () => import("@/views/im/publish/index.vue"),
            // },
            // {
            //     path: "chatSearch",
            //     name: "chatSearch",
            //     meta: {
            //         title: "router.Search",
            //         keepAlive: false,
            //         navbar: true,
            //         leftArrow: true,
            //     }, //  聊天搜索或者朋友圈搜索页面
            //     component: () => import("@/views/im/chatSearch/index.vue"),
            // },
            // {
            //     path: "/videoPlayer",
            //     name: "videoPlayer",
            //     meta: {
            //         title: "",
            //         keepAlive: false,
            //         navbar: false,
            //         leftArrow: true,
            //     }, //  聊天搜索或者朋友圈搜索页面
            //     component: () => import("@/views/im/videoPlayer/index.vue"),
            // },
        ]
    }
]


