serviceCenter.js 1.69 KB
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];