import mxConst from '@/common/mxConst'

export default {
    // NOTE: 方便本地配置的时候重用

    // 选科查询
    selectCourseQuery: {
        is: "mx-card-common",
        gutter: 0,
        lineSize: 1,
        containerClasses: ['mb15'],
        dataList: [{
            height: '112px',
            src: '/static/images/career/img_xuankechaxuxn.png',
            path: '/pages/career/select-course/index'
        }]
    },
    // 院校排名
    collegeRanking: {
        is: "mx-card-common",
        gutter: 0,
        lineSize: 1,
        containerClasses: ['ml12 mr12 rd6'],
        dataList: [{
            height: '103px',
            src: '/static/home/college-ranking@2x.png',
            path: '/pages/college-library/index/index?data=' + JSON.stringify({
                tab: 'rank'
            })
        }]
    },
    hollandGuide: {
        is: "test-guide-card",
        img: '/static/home/holland.png',
        title: '专业倾向测评',
        desc: 'Holland测评是一种基于职业兴趣的测评工具，根据被测者对六种职业兴趣类型的倾向性，提供对应的职业建议。',
        bgColor: '#D8EDFD',
        clazz: ['mx12'],
        path: '/pagesOther/pages/test-center/holland/holland',
        more: '/pagesOther/pages/test-center/list/list',
        moreNext: {type: 'holland'}
    },
    mbtiGuide: {
        is: "test-guide-card",
        img: '/static/home/mbti.png',
        title: '职业性格测评',
        desc: 'MBTI测评是一种基于人格类型的测评工具，根据被测者对四种人格维度的偏好程度，判断其人格类型并提供相关建议。',
        bgColor: '#D9E2FD',
        clazz: ['mx12'],
        path: '/pagesOther/pages/test-center/mbti/mbti',
        more: '/pagesOther/pages/test-center/list/list',
        moreNext: {type: 'mbti'}
    },
    multiwayGuide: {
        is: "test-guide-card",
        img: '/static/home/multiway-guide@2x.png',
        title: '多元升学路径规划',
        desc: '"多元录取"是新高考改革的核心,国家鼓励更多的学生能够结合自身的情况选择合适的升学路径,促进低分高就及科学的学业生涯规划。',
        bgColor: '#75DDBD',
        clazz: ['mx12'],
        path: '/pagesOther/pages/career/multiway/multiway',
        more: '/pagesOther/pages/career/multiway/history'
    },
    mentalHealthGuide: {
        is: "test-guide-card",
        img: '/static/home/mental-health.png',
        title: '中学生心理健康诊断测验',
        desc: '该测评是由华东师范大学心理学系教授周步成和其他心理学科研究人员，根据日本铃木清等人编制的"不安倾向诊断测验"进行修订，成为适应于我国中学学生标准化的《心理健康诊断测验》',
        bgColor: '#E1FCDF',
        clazz: ['mx12'],
        path: '/pagesOther/pages/test-center/mental-health/mental-health',
        more: '/pagesOther/pages/test-center/mental-health/history'
    },
    electiveGuide: {
        is: "test-guide-card",
        img: '/static/home/elective-guide@2x.png',
        title: '选科测评',
        desc: '新高考选科测评，从人生价值观、职业兴趣和知识兴趣三个维度，帮助你找到最适合的专业。',
        bgColor: '#9595dd',
        clazz: ['mx12'],
        path: '/pagesOther/pages/elective/test/index/index'
    },
    // 选科测评
    electiveTest: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        containerClasses: ['pl15', 'pr15', 'mb15'],
        itemClasses: ['rd8', 'relative'],
        header: {
            title: '选科测评',
            icon: '/static/images/elective/elective_block_select_icon.png',
        },
        titleBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatTitle,
                color: '#336699'
            }
        },
        titleMapper: {
            'name': 'text'
        },
        descBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatDesc,
                color: '#ff9966',
                opacity: 1,
                fontSize: '14px',
                fontFamily: 'PingFangSC-Regular, PingFang SC',
            }
        },
        descMapper: {
            'desc': 'text'
        },
        dataList: [{
            name: '',
            desc: '',
            src: '/static/images/elective/elective_block_test.png',
            path: '/pages/elective/test/index/index',
        }]
    },
    // 心理测评
    psychologyTest: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        containerClasses: ['pl15', 'pr15', 'mb15'],
        itemClasses: ['rd8', 'relative'],
        header: {
            title: '心理测评',
            icon: '/static/images/elective/elective_block_select_icon.png',
        },
        titleBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatTitle,
                color: '#336699'
            }
        },
        titleMapper: {
            'name': 'text'
        },
        dataList: [{
            name: '心理测评',
            src: '/static/images/elective/elective_block_test.png',
            path: '/pages/elective/test/index/index',
        }]
    },
    // 学业测评
    studyTest: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        containerClasses: ['pl15', 'pr15', 'mb15'],
        itemClasses: ['rd8', 'relative'],
        header: {
            title: '学业测评',
            icon: '/static/images/elective/elective_block_select_icon.png',
        },
        titleBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatTitle,
                color: '#336699'
            }
        },
        titleMapper: {
            'name': 'text'
        },
        dataList: [{
            name: '学业测评',
            src: '/static/images/elective/elective_block_test.png',
            path: '/pages/elective/test/index/index',
        }]
    },
    // 学科测评入口
    evaluationSummary: {
        is: 'mx-index-eval-summary',
        categories: function (vm, config) {
            return vm.storeGetterFilter(config.studentEvaluationTabs)
        }
    },
    // 同步视频
    videoSync: {
        is: 'mx-card-video-sync',
        lineSize: 2,
        itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'card-shadow'],
        header: {
            title: '视频课程',
            icon: "/static/images/home/icon_mingshijingjiang@2x.png",
            moreText: '所有视频>>',
            path: '/pages/video-center/index/index'
        },
        imgMapper: {
            'img': 'src'
        },
        titleBinder: {
            // 不要使用lineHeight，手机端在单行文本时不兼容，改用margin控制
            margin: '10px 0 5px 0',
            lines: 1,
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'section_name': 'text'
        },
        dataList: []
    },
    // 热门专业
    hotMajor: {
        is: 'MxCardHotMajor',
        lineSize: 2,
        class: ['bg-white rd6 ml12 mr12'],
        header: {
            title: '热门专业'
        },
        imgBinder: {
            height: '105px'
        },
        dataList: []
    },
    // 生涯视频
    videoCareer: {
        is: 'mx-card-video-career',
        ref: 'careerVideo',
        lineSize: 2,
        class: ['bg-white', 'rd6', 'ml12', 'mr12'],
        itemClasses: [],
        header: {
            title: '生涯课程',
            // icon: "/static/images/home/icon_video@2x.png",
            moreText: '查看全部 >',
            path: '/pages/career/index/career-list?type=1'
        },
        imgBinder: {
            classes: 'rd4'
        },
        imgMapper: {
            'pictUrl': 'src'
        },
        titleBinder: {
            // 不要使用lineHeight，手机端在单行文本时不兼容，改用margin控制
            margin: '10px 0 5px 0',
            lines: 1,
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'name': 'text'
        },
        descBinder: {
            lines: 1,
            prefixIcon: 'eye',
            customStyle: mxConst.commonStyle.blockNormalDesc
        },
        descMapper: {
            'plays': 'text'
        },
        dataList: []
    },
    gkzx: {
        is: 'mx-card-gkzx',
        lineSize: 1,
        itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'bd-b-1'],
        header: {
            title: '高考政策',
            icon: "/static/images/home/icon_video@2x.png",
            moreText: '更多>>',
            path: '/pages/career/volunteer/info/list?type=高考政策'
        },
        titleBinder: {
            // 不要使用lineHeight，手机端在单行文本时不兼容，改用margin控制
            margin: '10px 0 5px 0',
            lines: 1,
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'title': 'text'
        },
        dataList: []
    },
    videoGksp: {
        is: 'mx-card-video-gksp',
        lineSize: 2,
        class: ['bg-white', 'rd6', 'ml12', 'mr12'],
        itemClasses: [],
        header: {
            title: '高考政策',
            // icon: "/static/images/home/icon_video@2x.png",
            moreText: '查看全部 >',
            path: '/pages/career/volunteer/new-gkvideo?type=高考政策'
        },
        imgBinder: {
            mode: '',
            width: '100%',
            src: '/static/images/home/img_shegnyaguanli@2x.png' //default value
        },
        imgMapper: {
            'coverUrl': 'src'
        },
        titleBinder: {
            // 不要使用lineHeight，手机端在单行文本时不兼容，改用margin控制
            margin: '10px 0 5px 0',
            lines: 1,
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'title': 'text'
        },
        dataList: []
    },
    // 微课视频
    videoMicro: {
        is: 'mx-card-video-micro',
        lineSize: 2,
        itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'card-shadow'],
        header: {
            title: '微课视频',
            icon: "/static/images/home/icon_video@2x.png",
            moreText: '更多>>',
            path: '/pages/eval-center/personal-resource/index/index'
        },
        imgBinder: {
            mode: '',
            src: '/static/images/home/img_shegnyaguanli@2x.png' //default value
        },
        imgMapper: {
            'resourcesCoverUrl': 'src'
        },
        titleBinder: {
            // 不要使用lineHeight，手机端在单行文本时不兼容，改用margin控制
            margin: '10px 0 5px 0',
            lines: 1,
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'resourcesName': 'text'
        },
        dataList: []
    },
    // 生涯测评
    careerTest: {
        is: 'mx-card-common',
        lineSize: 2,
        itemClasses: ['rd4'],
        header: {
            title: '生涯测评',
            icon: '/static/images/home/icon_shengyaceping@2x.png',
            moreText: '测评记录>>',
            path: '/pagesOther/pages/test-center/list/list'
        },
        dataList: [{
            src: '/static/images/home/img_zhuanyexingquceping@2x.png',
            path: '/pagesOther/pages/test-center/holland/holland'
        }, {
            src: '/static/images/home/img_zhiyexingquceping@2x.png',
            path: '/pagesOther/pages/test-center/mbti/mbti'
        }],
    },
    // 智能练习
    intelligentExercise: {
        is: 'mx-card-common',
        lineSize: 2,
        itemClasses: ['rd4'],
        header: {
            title: '智能练习',
            icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
        },
        dataList: [{
            mode: '',
            src: '/static/images/home/img_tongbuzaixianlianxi@2x.png',
            path: '/pages/topic-center/sync-online/sync-online?tabIndex=0'
        }, {
            mode: '',
            src: '/static/images/home/img_zhishidianzaixianlianxi@2x.png',
            path: '/pages/topic-center/sync-online/sync-online?tabIndex=1'
        }],
    },
    paperWork: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        containerClasses: ['pl15', 'pr15', 'mb15'],
        itemClasses: ['rd8', 'relative'],
        header: {
            title: '在线作业',
            icon: '/static/images/topic-center/topic_center_icon_homework.png',
        },
        titleBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatTitle,
                color: '#608EDF'
            }
        },
        titleMapper: {
            'name': 'text'
        },
        descBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatDesc,
                color: '#FFA400',
                opacity: 1,
                fontSize: '14px',
                fontFamily: 'PingFangSC-Regular, PingFang SC',
            }
        },
        descMapper: {
            'desc': 'text'
        },
        dataList: [{
            name: '在线作业/视频作业/试卷作业',
            desc: 'HOMEWORK ONLINE',
            src: '/static/images/topic-center/topic_center_block_homework.png',
            path: '/pages/topic-center/homework/index',
        }]
    },
    paperWorkManage: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        containerClasses: ['pl15', 'pr15', 'mb15'],
        itemClasses: ['rd8', 'relative'],
        header: {
            title: '作业管理',
            icon: '/static/images/topic-center/topic_center_icon_homework.png',
        },
        titleBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatTitle,
                color: '#608EDF'
            }
        },
        titleMapper: {
            'name': 'text'
        },
        descBinder: {
            customStyle: {
                ...mxConst.commonStyle.blockFloatDesc,
                color: '#FFA400',
                opacity: 1,
                fontSize: '14px',
                fontFamily: 'PingFangSC-Regular, PingFang SC',
            }
        },
        descMapper: {
            'desc': 'text'
        },
        dataList: [{
            name: '发布作业/检查作业',
            desc: 'HOMEWORK MANAGEMENT',
            src: '/static/images/topic-center/topic_center_block_homework.png',
            path: '/pages/topic-center/homework/manage',
        }]
    },
    qualityPaper: {
        is: 'mx-card-common',
        lineSize: 2,
        itemClasses: ['rd4'],
        header: {
            title: '精品试卷',
            icon: "/static/images/home/icon_jingpinshijuan@2x.png",
        },
        dataList: [{
            mode: '',
            src: '/static/images/home/img_mingxiao@2x.png',
            path: '/pages/topic-center/best-paper/index/index?tabIndex=0'
        }, {
            mode: '',
            src: '/static/images/home/IMG_linianzhent@2x.png',
            path: '/pages/topic-center/best-paper/index/index?tabIndex=1'
        }]
    },
    // 高考志愿
    simulatedVolunteer: {
        is: "mx-card-common",
        lineSize: 1,
        gutter: 0,
        itemClasses: ['rd8', 'rel'],
        header: {
            title: '高考志愿',
            icon: '/static/images/career/icon_zhiyuan.png',
        },
        titleBinder: {
            customStyle: mxConst.commonStyle.blockFloatTitle
        },
        titleMapper: {
            'name': 'text'
        },
        descBinder: {
            customStyle: mxConst.commonStyle.blockFloatDesc
        },
        descMapper: {
            'desc': 'text'
        },
        dataList: [{
            name: '志愿填报',
            desc: 'SIMULATED VOLUNTEER',
            src: '/static/images/career/img_zhiyuantianbao.png',
            path: '/pages/voluntary/index/index',
        }]
    },
    // 高考志愿F4
    simulatedVolunteerF4: {
        is: "mx-card-common",
        lineSize: 4,
        itemClasses: ['fx-cen-cen'],
        imgBinder: {
            width: '64px',
            height: '64px',
        },
        titleBinder: {
            margin: '10px 0 0 0',
            lines: 1
        },
        titleMapper: {
            'name': 'text'
        },
        dataList: [{
            name: '招生计划',
            src: '/static/images/career/icon_gaokaomingci.png',
            path: '/pages/career/volunteer/plan/index'
        }, {
            name: '批次控制线',
            src: '/static/images/career/icon_kongzhixian.png',
            path: '/pages/career/volunteer/batch'
        }, {
            name: '一分一段',
            src: '/static/images/career/icon_yifenyiduan.png',
            path: '/pages/career/volunteer/yfyd'
        }, {
            name: '投档线',
            src: '/static/images/career/icon_toudangxian.png',
            path: '/pages/career/volunteer/admission-line'
        }]
    },
    // 3库
    collegeMajorVocation: {
        is: "mx-card-common",
        lineSize: 3,
        itemClasses: ['fx-cen-cen'],
        header: {
            title: "院校专业",
            icon: "/static/images/career/icon_star.png",
        },
        imgBinder: {
            width: '64px',
            height: '64px',
        },
        titleBinder: {
            margin: '10px 0 0 0',
            lines: 1
        },
        titleMapper: {
            'name': 'text'
        },
        dataList: [{
            name: '院校库',
            src: '/static/images/career/icon_yuanxiaoku.png',
            path: '/pages/college-library/index/index'
        }, {
            name: '专业库',
            src: '/static/images/career/icon_zhuanyeku.png',
            path: '/pages/major-library/index/index'
        }, {
            name: '职业库',
            src: '/static/images/career/icon_zhiyeku.png',
            path: '/pages/vocation-library/index/index'
        }]
    },
    // 大数据选科
    elective: {
        is: "mx-card-common",
        lineSize: 2,
        itemClasses: ['fx-cen-cen'],
        header: {
            title: "大数据选科",
            icon: "/static/images/career/icon_star.png",
        },
        imgBinder: {
            width: '96px',
            height: '96px',
        },
        titleBinder: {
            margin: '10px 0 0 0',
            customStyle: mxConst.commonStyle.blockNormalTitle
        },
        titleMapper: {
            'name': 'text'
        },
        dataList: function (vm, config) {
            return vm.storeGetterFilter(config.indexElectiveBlockOptions)
        }
    },
    // 精准ai助学
    PreciseAi: {
        is: 'mx-card-common',
        lineSize: 2,
        itemClasses: ['rd4'],
        header: {
            title: '精准AI助学',
            icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
        },
        dataList: [{
            mode: '',
            src: '/static/images/home/precise_micro.png',
            path: '/pages/eval-center/ai/preciseAi/microVideo/index'
        }, {
            mode: '',
            src: '/static/images/home/precise_pratise.png',
            path: '/pages/eval-center/ai/preciseAi/practise/index'
        }],
    },
    // 普通ai助学
    CommonAi: {
        is: 'mx-card-common',
        lineSize: 2,
        itemClasses: ['rd4'],
        header: {
            title: '普通AI助学',
            icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
        },
        dataList: [{
            mode: '',
            src: '/static/images/home/common_micro.png',
            path: '/pages/eval-center/ai/commonAi/microVideo/index'
        }, {
            mode: '',
            src: '/static/images/home/common_pratise.png',
            path: '/pages/eval-center/ai/commonAi/practise/index'
        }],
    }
}
