Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent d92cf0b5bc
commit a2df6d3200

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

@ -1759,7 +1759,7 @@ var Simple = function Simple(_ref) {
})
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
className: item !== null && item !== void 0 && item.standard_answer_show ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
children: showEditor ? /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z
// hidetoolBar={true}
// hidetoolBar={document.domain === "kepukehuan.educoder.net"}
@ -2056,7 +2056,7 @@ var Simple2_Simple = function Simple(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt30 mb20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
className: item !== null && item !== void 0 && item.standard_answer_show ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
children: "\u4F5C\u6587\u5185\u5BB9\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -2724,7 +2724,7 @@ var Fill = function Fill(_ref) {
// }, 200)
// }}
,
className: "".concat(item !== null && item !== void 0 && item.analysis ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '', " ").concat(componentsmodules.fillInput)
className: "".concat(item !== null && item !== void 0 && item.user_answer ? item !== null && item !== void 0 && item.user_answer_right ? "c-green" : "c-red" : '', " ").concat(componentsmodules.fillInput)
})
}), ((_saveStatusArr$index = saveStatusArr[index]) === null || _saveStatusArr$index === void 0 ? void 0 : _saveStatusArr$index.status) === "success" && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
@ -3130,9 +3130,6 @@ var Answer = function Answer(_ref) {
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var location = (0,_umi_production_exports.useLocation)();
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
@ -3262,6 +3259,7 @@ var Answer = function Answer(_ref) {
item.user_score = item !== null && item !== void 0 && item.is_right ? 1 : 0;
item.question_score = 1;
item.standard_answer = item === null || item === void 0 ? void 0 : item.answer_content;
item.user_answer_right = item === null || item === void 0 ? void 0 : item.is_right;
// 单选 多选 判断
if (['SINGLE', 'MULTIPLE', 'JUDGMENT'].includes(item === null || item === void 0 ? void 0 : item.question_type)) {
item === null || item === void 0 || item.question_choices.forEach(function (val1) {
@ -3285,9 +3283,6 @@ var Answer = function Answer(_ref) {
setShowBtn(true);
}
}, [knowledgeDialog]);
(0,_react_17_0_2_react.useEffect)(function () {
// showConfirm ? sign.current = true : signConfigFuc()
}, [showConfirm]);
var handleMessage = function handleMessage(data) {
if (data.data === 'backExercise') {
(0,util/* copyTextFuc */.RG)(" ", true);
@ -3327,23 +3322,26 @@ var Answer = function Answer(_ref) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (is_reset) {
setAnswerData({});
}
document.body.scrollIntoView();
setIsSpin(true);
_context2.next = 4;
_context2.next = 5;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params.exerciseId, "/subject_exercise_start.json"), {
method: 'GET',
params: {
is_reset: is_reset ? 1 : null
}
});
case 4:
case 5:
res = _context2.sent;
setIsSpin(false);
res.exercise_types = (res === null || res === void 0 ? void 0 : res.exercise_types) || (res === null || res === void 0 || (_res$exercise_scores = res.exercise_scores) === null || _res$exercise_scores === void 0 ? void 0 : _res$exercise_scores.exercise_types);
res.question_status = res.question_status || createItems((res === null || res === void 0 ? void 0 : res.exercise_question_types) || []);
setAnswerData(res);
setAnswerData(objectSpread2_default()({}, res));
return _context2.abrupt("return", res);
case 10:
case 11:
case "end":
return _context2.stop();
}
@ -3800,7 +3798,7 @@ var Answer = function Answer(_ref) {
signConfigFuc();
};
var setClassName = function setClassName(item, type) {
return item !== null && item !== void 0 && item.analysis ? "edu-".concat(type, "-").concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red") : '';
return item !== null && item !== void 0 && item.standard_answer_show ? "edu-".concat(type, "-").concat(item !== null && item !== void 0 && item.user_answer_right ? "green" : "red") : '';
};
var renderSingle = function renderSingle(item, key) {
var _item$question_choice, _item$standard_answer, _item$question_choice2;
@ -4620,6 +4618,9 @@ var Answer = function Answer(_ref) {
centered: true,
onOk: function onOk() {
initData(true);
setIsSubmitCode(false);
setoneindex(0);
settwoindex(0);
},
onCancel: function onCancel() {
_umi_production_exports.history.push("/paths/".concat(params.pathId));

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