Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent d7cec2ffbf
commit 56a6eed668

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.81535a8a.js"></script>
<script src="/react/build/umi.500b61dd.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -2012,7 +2012,7 @@ var Answer = function Answer(_ref) {
case 0:
paramsData = {
questionId: currentQuestion.question_id,
exercise_choice_id: [0, 1, 2].includes(currentQuestion.question_type) ? currentQuestion.user_answer : undefined
exercise_choice_id: [0, 2].includes(currentQuestion.question_type) ? currentQuestion.user_answer[0] : currentQuestion.question_type == 1 ? currentQuestion.user_answer : undefined
};
if ([3, 8].includes(currentQuestion.question_type)) {
// 填空题
@ -2068,9 +2068,9 @@ var Answer = function Answer(_ref) {
children: ["\u7B54\u9898\u7ED3\u679C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
marginLeft: 12,
color: item !== null && item !== void 0 && item.user_answer_right ? '#29A64F' : '#E53333'
color: item !== null && item !== void 0 && item.user_answer_is_right ? '#29A64F' : '#E53333'
},
children: item !== null && item !== void 0 && item.user_answer_right ? "\u7B54\u5BF9\u4E86" : "\u7B54\u9519\u4E86"
children: item !== null && item !== void 0 && item.user_answer_is_right ? "\u7B54\u5BF9\u4E86" : "\u7B54\u9519\u4E86"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -2181,14 +2181,10 @@ var Answer = function Answer(_ref) {
case 5:
if (res.question_undo !== 0 || res.oj_undo !== 0) {
tip = '';
if (res.question_undo !== 0 && res.oj_undo !== 0) {
tip = "\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(res.oj_undo, " \u4E2A").concat((answerData === null || answerData === void 0 || (_answerData$exercise_ = answerData.exercise_question_types) === null || _answerData$exercise_ === void 0 || (_answerData$exercise_ = _answerData$exercise_.find(function (item) {
if (res.question_undo !== 0) {
tip = "\u5171$\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(res.oj_undo, " \u4E2A").concat((answerData === null || answerData === void 0 || (_answerData$exercise_ = answerData.exercise_question_types) === null || _answerData$exercise_ === void 0 || (_answerData$exercise_ = _answerData$exercise_.find(function (item) {
return item.question_type == 6;
})) === null || _answerData$exercise_ === void 0 ? void 0 : _answerData$exercise_.name) || "编程题");
} else if (res.question_undo !== 0 && res.oj_undo === 0) {
tip = "\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210");
} else if (res.question_undo === 0 && res.oj_undo !== 0) {
tip = "\u6709 ".concat(res.oj_undo, " \u7F16\u7A0B\u9898\u672A\u5B8C\u6210");
}
es_modal/* default */.Z.confirm({
width: 530,

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save