|
|
|
|
@ -1671,7 +1671,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
|
|
|
|
|
} else {
|
|
|
|
|
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
|
|
|
|
|
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
|
|
|
|
|
document.location.href = '/user/login';
|
|
|
|
|
setLocationHref('/user/login');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -1753,7 +1753,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
|
|
|
|
|
} else {
|
|
|
|
|
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
|
|
|
|
|
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
|
|
|
|
|
document.location.href = '/user/login';
|
|
|
|
|
setLocationHref('/user/login');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -5295,7 +5295,7 @@ var Warehouse = function Warehouse(_ref) {
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
},
|
|
|
|
|
children: "\u4E0A\u4E00\u5173"
|
|
|
|
|
@ -5315,7 +5315,7 @@ var Warehouse = function Warehouse(_ref) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
if (taskData !== null && taskData !== void 0 && (_taskData$shixun = taskData.shixun) !== null && _taskData$shixun !== void 0 && _taskData$shixun.task_pass || (taskData === null || taskData === void 0 ? void 0 : taskData.game.status) === 2 || (taskData === null || taskData === void 0 || (_taskData$user2 = taskData.user) === null || _taskData$user2 === void 0 ? void 0 : _taskData$user2.identity) < 5) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -6697,12 +6697,12 @@ var dtFormat = 'YYYY-MM-DD HH:mm';
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
if (params.courseId && params.homeworkId) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(identifier).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(identifier).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(identifier).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(identifier).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
},
|
|
|
|
|
children: ["".concat(position, ". ").concat(name), ' ']
|
|
|
|
|
@ -6836,7 +6836,7 @@ var toShixun = /*#__PURE__*/function () {
|
|
|
|
|
if (newWindow) {
|
|
|
|
|
(0,util/* openNewWindow */.xg)(is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id));
|
|
|
|
|
} else {
|
|
|
|
|
window.location.href = is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id);
|
|
|
|
|
setLocationHref(is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
if (!is_jupyter) {
|
|
|
|
|
@ -9289,13 +9289,13 @@ function TipContent() {
|
|
|
|
|
//会有从课堂或者试卷中跳过来的情况,根据路由参数决定退出跳转的位置
|
|
|
|
|
function toShixun() {
|
|
|
|
|
if (params.courseId && params.homeworkId) {
|
|
|
|
|
location.href = "/classrooms/".concat(params.courseId, "/shixun_homework/").concat(params.homeworkId, "/detail");
|
|
|
|
|
setLocationHref("/classrooms/".concat(params.courseId, "/shixun_homework/").concat(params.homeworkId, "/detail"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (searchParams.get("type") === 'exercises') {
|
|
|
|
|
backExercise('back');
|
|
|
|
|
}
|
|
|
|
|
location.href = "/shixuns/".concat(identifier, "/challenges");
|
|
|
|
|
setLocationHref = setLocationHref("/shixuns/".concat(identifier, "/challenges"));
|
|
|
|
|
}
|
|
|
|
|
function onReset() {
|
|
|
|
|
return _onReset.apply(this, arguments);
|
|
|
|
|
@ -10688,12 +10688,12 @@ var run_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
if (params.courseId && params.homeworkId) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(prev_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(prev_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(prev_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(prev_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
},
|
|
|
|
|
className: footer_barmodules['ghost-link'],
|
|
|
|
|
@ -10705,12 +10705,12 @@ var run_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA
|
|
|
|
|
if (shixun.task_pass || game.status === 2 || (user === null || user === void 0 ? void 0 : user.identity) < 5) {
|
|
|
|
|
if (params.courseId && params.homeworkId) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return window.location.href = "/tasks/".concat(next_game).concat(location.search);
|
|
|
|
|
return setLocationHref("/tasks/".concat(next_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -11464,12 +11464,12 @@ var empiricgreen_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg
|
|
|
|
|
// history.push(`/tasks/${next_game}${location.search}`);
|
|
|
|
|
if (params.courseId && params.homeworkId) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search);
|
|
|
|
|
setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
window.location.href = "/tasks/".concat(next_game).concat(location.search);
|
|
|
|
|
setLocationHref("/tasks/".concat(next_game).concat(location.search));
|
|
|
|
|
}, 300);
|
|
|
|
|
}
|
|
|
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
|
|
|
@ -15931,7 +15931,8 @@ function tasks_reducer(state, action) {
|
|
|
|
|
}
|
|
|
|
|
(0,util/* bindPhone */.eF)({
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
window.location.href = '/';
|
|
|
|
|
setLocationHref("/");
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
_context6.next = 30;
|