// 我的资源
const MY_RESOURCES = [
    {
        path: '/education/myResources',
        name: 'myResources',
        component: resolve => require(['pages/education/schoolBasedResources/myResources/Index'], resolve),
        redirect: '/education/myResources/myUpload',
        children: [
            { // 我上传的
                path: '/education/myResources/myUpload',
                name: 'myUpload',
                component: resolve => require(['pages/education/schoolBasedResources/myResources/MyUpload'], resolve),
                meta: {
                    belongTo: 'myUpload',
                    showTabs: true,
                    title: '校本资源',
                    hidePrevPage: true
                }
            },
            { // 我上传的-文件夹列表
                path: '/education/myResources/myUpload/folderLevel',
                name: 'myUploadFolderLevel',
                component: resolve => require(['pages/education/schoolBasedResources/myResources/MyUploadFolderLevel'], resolve),
                meta: {
                    belongTo: 'myUploadFolderLevel'
                }
            },
            { // 我上传的-文件列表（非文件夹）
                path: '/education/myResources/myUpload/fileLevel',
                name: 'myUploadFileLevel',
                component: resolve => require(['pages/education/schoolBasedResources/myResources/MyUploadFileLevel'], resolve),
                meta: {
                    belongTo: 'myUploadFileLevel'
                }
            },
            { // 收藏分享
                path: '/education/myResources/favorShare',
                name: 'favorShare',
                component: resolve => require(['pages/education/schoolBasedResources/myResources/FavorShare'], resolve),
                meta: {
                    belongTo: 'favorShare',
                    showTabs: true,
                    title: '校本资源',
                    hidePrevPage: true
                }
            }
        ]
    }
]

// 学校资源
const SCHOOL_RESOURCES = [
    {
        path: '/education/schoolResources',
        name: 'schoolResources',
        component: resolve => require(['pages/education/schoolBasedResources/schoolResources/Index'], resolve),
        redirect: '/education/schoolResources/index',
        children: [
            { // 首页
                path: '/education/schoolResources/index',
                name: 'schoolResourcesIndex',
                component: resolve => require(['pages/education/schoolBasedResources/schoolResources/SchoolResources'], resolve),
                meta: {
                    belongTo: 'schoolResources',
                    title: '校本资源',
                    hidePrevPage: true
                }
            },
            { // 学校资源-文件夹列表
                path: '/education/schoolResources/folderLevel',
                name: 'schoolFolderLevel',
                component: resolve => require(['pages/education/schoolBasedResources/schoolResources/SchoolFolderLevel'], resolve),
                meta: {
                    belongTo: 'schoolFolderLevel'
                }
            },
            { // 学校资源-文件列表（非文件夹）
                path: '/education/schoolResources/fileLevel',
                name: 'schoolFileLevel',
                component: resolve => require(['pages/education/schoolBasedResources/schoolResources/SchoolFileLevel'], resolve),
                meta: {
                    belongTo: 'schoolFileLevel'
                }
            }
        ]
    }
]

// 共用页面
const SCHOOL_COMMON = [
    { // 文档详情
        path: '/education/documentDetail',
        name: 'documentDetail',
        component: resolve => require(['pages/education/schoolBasedResources/myResources/DocumentDetail'], resolve),
        meta: {
            belongTo: 'documentDetail'
        }
    },
    { // 分享页面
        path: '/education/share',
        name: 'share',
        component: resolve => require(['pages/education/schoolBasedResources/myResources/Share'], resolve),
        meta: {
            belongTo: 'share'
        }
    }
]
export default [
    ...MY_RESOURCES,
    ...SCHOOL_RESOURCES,
    ...SCHOOL_COMMON
]
