第三态:会但不稳——当天错了又对不算连对,次日再来一次(202 测试 + 41/22/21/29 冒烟)
This commit is contained in:
@@ -31,7 +31,7 @@ prototype/workbench/index.html ← 全部代码都在这一个文件里
|
||||
|---|---|---|
|
||||
| 工作台 | `#home` | 今天几道 / 本周毕业 / 消灭率 + 今日队列 + 这周那张纸 |
|
||||
| 今日训练 | `#train` | 一屏一道 → 判对错 → 解析三 tab → 举一反三 → 答题卡 |
|
||||
| 错题本 | `#wrong` | 全部错题,按状态筛(待复习 / 待讲清 / 已毕业 / 粗心) |
|
||||
| 错题本 | `#wrong` | 全部错题,按状态筛(待复习 / 会但不稳 / 待讲清 / 已毕业 / 粗心) |
|
||||
| 复习计划 | `#plan` | 未来 7 天每天要复习几道 |
|
||||
| 学情分析 | `#analysis` | 错因分布(E1–E6)+ 薄弱知识点 + 一周趋势 |
|
||||
| 周报与打印 | `#weekly` | 本周四个数字 + A5 预览 + 打印 |
|
||||
|
||||
@@ -112,6 +112,7 @@ h1{font-size:22px;margin:0 0 4px}
|
||||
.pill.c{background:var(--brand-soft);color:var(--brand-d)}
|
||||
.pill.g{background:var(--green-soft);color:var(--green)}
|
||||
.pill.b{background:var(--blue-soft);color:var(--blue)}
|
||||
.pill.o{background:var(--ochre-soft);color:var(--ochre)}
|
||||
.pill.gray{background:#F2EDE4;color:#7C7166}
|
||||
|
||||
/* ---------- 训练页 ---------- */
|
||||
@@ -170,6 +171,7 @@ h1{font-size:22px;margin:0 0 4px}
|
||||
|
||||
.result{margin-top:16px;border-radius:12px;padding:14px 16px;font-size:14px;line-height:1.7;display:none}
|
||||
.result.ok{display:block;background:var(--green-soft);border:1px solid #CFE3D6;color:#245744}
|
||||
.result.mid{display:block;background:var(--ochre-soft);border:1px solid #EFDCAE;color:#7A5410}
|
||||
.result.no{display:block;background:var(--red-soft);border:1px solid #F2D3CD;color:#8E2B23}
|
||||
.result b{font-size:15px}
|
||||
|
||||
@@ -531,7 +533,7 @@ td .t{font-family:"Consolas",monospace;font-size:13.5px}
|
||||
<div class="card stat">
|
||||
<div class="k">错题消灭率</div>
|
||||
<div class="v" id="sKill">36.4<small>%</small></div>
|
||||
<div class="t">目标 40% · 按已毕业 / 全部错题</div>
|
||||
<div class="t" id="sKillNote">目标 40% · 按已毕业 / 全部错题</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -714,6 +716,7 @@ td .t{font-family:"Consolas",monospace;font-size:13.5px}
|
||||
<button data-s="queued">待复习</button>
|
||||
<button data-s="recalled">已对一次</button>
|
||||
<button data-s="to_explain">待讲清</button>
|
||||
<button data-s="unstable">会但不稳</button>
|
||||
<button data-s="graduated">已毕业</button>
|
||||
<button data-s="careless">粗心小记</button>
|
||||
</div>
|
||||
@@ -906,8 +909,10 @@ const DEMO = {
|
||||
{ id: "m7", stem: "600 - 247 =", subject: "math", status: "graduated", status_zh: "已毕业", wrong_code: "E4", next_due: "—" },
|
||||
{ id: "m8", stem: "填量词:一( )书", subject: "chinese", status: "careless", status_zh: "粗心小记", wrong_code: "E4", next_due: "—" },
|
||||
{ id: "m9", stem: "128 + 275 =", subject: "math", status: "observing", status_zh: "观察中", wrong_code: "E4", next_due: "明天" },
|
||||
{ id: "m10", stem: "72 ÷ 8 =", subject: "math", status: "unstable", status_zh: "会但不稳", wrong_code: "E2", next_due: "明天" },
|
||||
{ id: "m11", stem: "看拼音写词:chūn tiān", subject: "chinese", status: "unstable", status_zh: "会但不稳", wrong_code: "E2", next_due: "明天" },
|
||||
],
|
||||
weekly: { numbers: { new_this_week: 9, graduated_this_week: 4, attempts_this_week: 21, review_days: 6, kill_rate: 36.4 },
|
||||
weekly: { numbers: { new_this_week: 9, graduated_this_week: 4, attempts_this_week: 21, review_days: 6, kill_rate: 36.4, unstable_total: 3 },
|
||||
weakest: ["E3 会但不熟", "E4 会但做错", "E2 概念没懂"],
|
||||
one_line: "本周新增 9 道,消灭 4 道,还有 5 道在队列里;最弱的是「会但不熟」,建议把间隔拉开到 3 天。",
|
||||
guardian_note: "孩子做错的题,先别讲,让他明天再做一遍。" },
|
||||
@@ -1104,7 +1109,7 @@ async function refresh() {
|
||||
const GRADE = ["一", "二", "三", "四", "五", "六"];
|
||||
const SUBJ = { math: "数学", chinese: "语文" };
|
||||
const JTYPE = { calc: "计算题", text: "填空题", choice: "选择题", manual: "自评题" };
|
||||
const STATUS_CLS = { graduated: "g", to_explain: "c", careless: "gray", queued: "", observing: "b", recalled: "b" };
|
||||
const STATUS_CLS = { graduated: "g", to_explain: "c", unstable: "o", careless: "gray", queued: "", observing: "b", recalled: "b" };
|
||||
|
||||
function renderAll() {
|
||||
setTimeout(() => petRender(), 0);
|
||||
@@ -1118,6 +1123,11 @@ function renderAll() {
|
||||
const n = w.numbers || {};
|
||||
document.getElementById("sGrad").innerHTML = (n.graduated_this_week || 0) + "<small>道</small>";
|
||||
document.getElementById("sKill").innerHTML = (n.kill_rate || 0) + "<small>%</small>";
|
||||
// 会但不稳:第三态写在这块小字里,不新开卡片(首页只放三个数)
|
||||
const un = n.unstable_total || 0;
|
||||
document.getElementById("sKillNote").textContent = un
|
||||
? `目标 40% · 另有 ${un} 道会但不稳`
|
||||
: "目标 40% · 按已毕业 / 全部错题";
|
||||
renderHomeQueue(); renderHomeWeekly(); renderTrain(); renderSheet();
|
||||
renderWrong(); renderPlan(); renderAnalysis(); renderWeekly(); renderGrad(); renderCareless(); renderKids();
|
||||
}
|
||||
@@ -1594,7 +1604,7 @@ async function submit() {
|
||||
else document.getElementById("qInput").focus();
|
||||
return;
|
||||
}
|
||||
let correct = null, detail = "";
|
||||
let correct = null, detail = "", unstableHint = null;
|
||||
if (S.demo) {
|
||||
if (isChoice) {
|
||||
correct = String(q.answer || "").toUpperCase() === val;
|
||||
@@ -1607,6 +1617,7 @@ async function submit() {
|
||||
try {
|
||||
const r = await api(`/api/mistakes/${q.id}/attempt`, { method: "POST", body: { child_id: S.cid, answer: val } });
|
||||
correct = r.correct; detail = r.detail || "";
|
||||
unstableHint = r.unstable_hint || null;
|
||||
q.status_zh = r.status_zh;
|
||||
if (r.answer != null) q.answer = String(r.answer);
|
||||
if (r.judge_type) q.judge_type = r.judge_type;
|
||||
@@ -1626,7 +1637,13 @@ async function submit() {
|
||||
box.innerHTML = `<b>这次不判</b><br>${esc(detail || "这题机器没有把握,标给家长。")}`;
|
||||
} else if (correct) {
|
||||
box.className = "result ok";
|
||||
box.innerHTML = `<b>对了</b><br>${esc(detail || "连续两次做对,就进「讲清」。")}`;
|
||||
if (unstableHint) {
|
||||
// 当天错了又对:不装作过了,也不打击——说清楚「明天再来一次」
|
||||
box.className = "result mid";
|
||||
box.innerHTML = `<b>会了,但还不稳</b><br>${esc(unstableHint)}`;
|
||||
} else {
|
||||
box.innerHTML = `<b>对了</b><br>${esc(detail || "连续两次做对,就进「讲清」。")}`;
|
||||
}
|
||||
S.results[S.idx] = true;
|
||||
} else {
|
||||
box.className = "result no";
|
||||
|
||||
Reference in New Issue
Block a user