mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 18:06:48 +08:00
64 lines
1.9 KiB
JavaScript
64 lines
1.9 KiB
JavaScript
/*
|
|
* @Author: lixg lixg@dongwu-inc.com
|
|
* @Date: 2023-01-16 13:59:11
|
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
|
* @LastEditTime: 2023-02-28 16:38:39
|
|
* @FilePath: /stu_h5/src/api/CONST.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
export const PROJECT = 1;
|
|
export const ROUTER = 2;
|
|
export const COURSE = 3;
|
|
export const GROWTH = 4
|
|
|
|
export const TASK_TYPES = {
|
|
typeName: {
|
|
1: "在线",
|
|
2: "面授",
|
|
3: "案例",
|
|
4: "作业",
|
|
5: "考试",
|
|
6: "直播",
|
|
7: "外链",
|
|
8: "讨论",
|
|
9: "活动",
|
|
10: "测评",
|
|
11: "评估",
|
|
12: "投票",
|
|
13: "项目",
|
|
},
|
|
toName: {
|
|
1: "去上课",
|
|
2: "去上课",
|
|
3: "去阅读",
|
|
4: "去完成",
|
|
5: "去完成",
|
|
6: "去观看",
|
|
7: "去查看",
|
|
8: "去讨论",
|
|
9: "去签到",
|
|
10: "去完成",
|
|
11: "去完成",
|
|
12: "去投票",
|
|
13: "去完成",
|
|
},
|
|
|
|
path: {
|
|
1: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId) }), //在线
|
|
2: ({ targetId }) => setTimeout(() => { window.open(`${location.protocol}//${location.host}${import.meta.env.VITE_BASE_API}/stu/project/redirectDetail?courseId=${targetId}`, '_top')}),
|
|
3: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId) }), //案例
|
|
4: "/homeworkpage",
|
|
5: ({ examType }) => examType === 2 ? '/externalexam' : setTimeout(() => {(window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL)}), //考试
|
|
6: "/liveboradcast",
|
|
7: '/outerchain', //外联
|
|
8: "/discusspage",
|
|
9: "/activitiespage",
|
|
10: "/evaluation", //测评
|
|
11: "/investigatpage",
|
|
12: "/ballotpage",
|
|
13: "/projectdetails",
|
|
},
|
|
}
|
|
|
|
|