serviceCenter.js
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export const ServerCenterEnum = {
// 企业通知
companyNotice: 8,
// 长课程学习
longCourse: 6,
// 优秀案例学习
case: 7,
};
export const ServerCenterKeyEnum = {
// 企业通知
8: "companyNotice",
// 长课程学习
6: "longCourse",
// 优秀案例学习
7: "case",
};
export const ReminderTypeEnum = {
FIRST: 1,
PROGRESS: 2,
};
// 弹窗文字
export const dialogOptions = {
// 长课程
[ServerCenterEnum.longCourse]: {
// 首次提醒
1: {
title: "学习提醒",
message: (text) => `您有新的长课程学习任务:${text},请及时查看。`,
confirmButtonText: "去学习",
type: ServerCenterEnum.longCourse,
},
// 进度提醒
2: {
title: "学习提醒",
message: (text) => `您有未完成的学习任务:${text}即将到期,抓紧时间完成哦!`,
confirmButtonText: "去学习",
type: ServerCenterEnum.longCourse,
},
},
// 优秀案例
[ServerCenterEnum.case]: {
1: {
title: "学习提醒",
message: (text) => `您有新的优秀案例学习任务:${text},请及时查看。`,
confirmButtonText: "去学习",
type: ServerCenterEnum.case,
},
2: {
title: "学习提醒",
message: (text) => `您有未完成的学习任务:${text}即将到期,抓紧时间完成哦!`,
confirmButtonText: "去学习",
type: ServerCenterEnum.case,
},
},
// 企业通知
[ServerCenterEnum.companyNotice]: {
1: {
title: "企业通知",
message: (text) => `您有新的企业通知:${text},请及时查看。`,
confirmButtonText: "去查看",
type: ServerCenterEnum.companyNotice,
},
},
};
export const noticeSort = [ServerCenterEnum.longCourse, ServerCenterEnum.case, ServerCenterEnum.companyNotice];