|
@@ -14,6 +14,9 @@ export async function goToExamPage(item, callbacks = {}) {
|
|
|
if (item.conditionType == 1) {
|
|
if (item.conditionType == 1) {
|
|
|
if (item.examStudy && item.courseId) {
|
|
if (item.examStudy && item.courseId) {
|
|
|
// 学习课程 — 等待后续逻辑
|
|
// 学习课程 — 等待后续逻辑
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: `/pages_safetyEducationExamination/views/webViewPage/courseLearning?courseId=${item.courseId}&examId=${item.examId}`,
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
if (item.knowledgePointIds && item.knowledgePointIds.length > 0) {
|
|
if (item.knowledgePointIds && item.knowledgePointIds.length > 0) {
|
|
|
const ids = Array.isArray(item.knowledgePointIds)
|
|
const ids = Array.isArray(item.knowledgePointIds)
|
|
@@ -28,8 +31,10 @@ export async function goToExamPage(item, callbacks = {}) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else if (item.conditionType == 2) {
|
|
} else if (item.conditionType == 2) {
|
|
|
- // 学习课程 — 等待后续逻辑
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 学习课程
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: `/pages_safetyEducationExamination/views/webViewPage/courseLearning?courseId=${item.courseId}&examId=${item.examId}`,
|
|
|
|
|
+ });
|
|
|
} else if (item.conditionType == 3) {
|
|
} else if (item.conditionType == 3) {
|
|
|
if (item.mockExamId) {
|
|
if (item.mockExamId) {
|
|
|
const examData = encodeURIComponent(JSON.stringify(item));
|
|
const examData = encodeURIComponent(JSON.stringify(item));
|