fix: startTopic恢复+英语作文5篇追加, Playwright 36/36 PASS

This commit is contained in:
hangshuo652
2026-06-29 14:25:46 +08:00
parent 6e337c3d8a
commit 3ffea7236a
+14 -1
View File
@@ -741,7 +741,11 @@ const ESSAYS = [
{id:"es08",title:"XX的滋味",prompt:"请以\"XX的滋味\"为题,写一篇400字左右的记叙文(XX自行补充,如成长的滋味、成功的滋味等)。",hint:"滋味可以是口感,更可以是内心的感受。结合具体事例来写。"}, {id:"es08",title:"XX的滋味",prompt:"请以\"XX的滋味\"为题,写一篇400字左右的记叙文(XX自行补充,如成长的滋味、成功的滋味等)。",hint:"滋味可以是口感,更可以是内心的感受。结合具体事例来写。"},
{id:"es09",title:"那一刻,我长大了",prompt:"请以\"那一刻,我长大了\"为题,写一篇500字左右的记叙文。",hint:"选择一个人生中让你突然成长的瞬间,详细描写当时的情景和心理变化。"}, {id:"es09",title:"那一刻,我长大了",prompt:"请以\"那一刻,我长大了\"为题,写一篇500字左右的记叙文。",hint:"选择一个人生中让你突然成长的瞬间,详细描写当时的情景和心理变化。"},
{id:"es10",title:"我眼中的________",prompt:"请以\"我眼中的________\"为题,写一篇400字左右的文章(横线上填写一个人、一件事或一个地方)。",hint:"写出你独特的观察和感受,让读者通过你的眼睛看到不一样的世界。"} {id:"es10",title:"我眼中的________",prompt:"请以\"我眼中的________\"为题,写一篇400字左右的文章(横线上填写一个人、一件事或一个地方)。",hint:"写出你独特的观察和感受,让读者通过你的眼睛看到不一样的世界。"}
]; , {id:"es11",title:"My Favorite Subject",prompt:"Write about your favorite subject at school (60-80 words). Why do you like it?",hint:"Include: subject name, reason, what you learn."},
{id:"es12",title:"My Best Friend",prompt:"Write about your best friend (60-80 words). Describe appearance and personality.",hint:"Include: name, appearance, personality, what you do together."},
{id:"es13",title:"A Happy Day",prompt:"Write about a happy day in your life (60-80 words). What happened?",hint:"Use past tense. Include: when, where, who, what happened."},
{id:"es14",title:"My Weekend Plan",prompt:"Write about your weekend plan (60-80 words). What are you going to do?",hint:"Use be going to or will."},
{id:"es15",title:"Introduce Yourself",prompt:"Write a short passage introducing yourself (60-80 words).",hint:"Cover: name, age, hobbies, family, dream."}];
// === READING COMPREHENSION (阅读理解题库) === // === READING COMPREHENSION (阅读理解题库) ===
const READINGS = [ const READINGS = [
{id:"r01",title:"忆冼星海(节选)",author:"茅盾",passage:"和洗星海见面的时候,已经是在听过他作品的演奏、读过了他那万余言的自传以后。那一次我所听到的《黄河大合唱》,据说是小规模的。那次演奏的指挥是一位青年音乐家,朋友告诉我,洗星海就是那位青年音乐家的老师。\n\n从歌咏队的缝隙里望见洗星海的身躯并不高大,但一副健壮而英俊的面孔却令人感到一种勇毅的力量。他的肤色被热带地区的阳光晒成了棕色。他的眼睛放射出一种沉毅的光彩,他的声音清晰而有力。\n\n我们谈了许多,他给我看他的乐谱,也给我看他写下的一些诗。从他的谈话中,我感觉到他是一个具有强烈民族自尊心的人,一个把自己的艺术与祖国的命运紧密相连的人。", {id:"r01",title:"忆冼星海(节选)",author:"茅盾",passage:"和洗星海见面的时候,已经是在听过他作品的演奏、读过了他那万余言的自传以后。那一次我所听到的《黄河大合唱》,据说是小规模的。那次演奏的指挥是一位青年音乐家,朋友告诉我,洗星海就是那位青年音乐家的老师。\n\n从歌咏队的缝隙里望见洗星海的身躯并不高大,但一副健壮而英俊的面孔却令人感到一种勇毅的力量。他的肤色被热带地区的阳光晒成了棕色。他的眼睛放射出一种沉毅的光彩,他的声音清晰而有力。\n\n我们谈了许多,他给我看他的乐谱,也给我看他写下的一些诗。从他的谈话中,我感觉到他是一个具有强烈民族自尊心的人,一个把自己的艺术与祖国的命运紧密相连的人。",
@@ -1109,6 +1113,15 @@ function swMode(m){
} }
function goPage(p){pg=p;r();} function goPage(p){pg=p;r();}
// === TOPIC GRID (专项练习) === // === TOPIC GRID (专项练习) ===
function startTopic(tp){
selCh[sub]='';
var qs=Q.filter(function(q){return q.sub===sub&&q.topic===tp&&conv[q.id]===undefined;});
if(!qs.length){$('mn').innerHTML='<div class="ni">🎉 该知识点已全部掌握!</div>';upd();return;}
var h='<button class="cf" style="margin:8px 12px;padding:5px 14px;border:none;border-radius:4px;background:#e63946;color:#fff;cursor:pointer;font-size:11px;font-family:Orbitron,sans-serif" onclick="swMode(\'topic\')">← 返回知识点列表</button>';
qs.forEach(function(q,i){h+=renderCard(q,i,true);});
$('mg').className='mg';$('mn').innerHTML=h;upd();
}
function renderTopicGrid(){ function renderTopicGrid(){
$('ep').className='exam-picker';$('eh').className='exam-hdr'; $('ep').className='exam-picker';$('eh').className='exam-hdr';
var tps=Object.keys(topicsBySub[sub]||{}); var tps=Object.keys(topicsBySub[sub]||{});