feat: 首页、分类页加载数据逻辑重构

This commit is contained in:
R524809
2026-04-30 16:44:45 +08:00
parent c112c70bab
commit 7126d3a941
63 changed files with 805 additions and 433 deletions
@@ -16,7 +16,8 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'number-find',
title: '找数字,涂一涂',
subtitle: '在数字方阵中找出目标数字并涂色',
subtitle: '找出目标数字并涂色',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -26,7 +27,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'number-write',
title: '看数字,写一写',
subtitle: '按笔画顺序练习书写数字',
subtitle: '按笔画顺序书写数字',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -36,7 +37,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'number-coloring',
title: '按数字,涂颜色',
subtitle: '按指定数字给对应圆圈涂色',
subtitle: '按指定数字涂色',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -46,7 +47,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'counting-matching',
title: '数一数,连一连',
subtitle: '连线配对数字和对应数量图形',
subtitle: '连线配对数字和数量',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -56,7 +57,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'number-object-match',
title: '数物连线',
subtitle: '连线相同数量的物和数字',
subtitle: '连线数量相同的物和数字',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -66,7 +67,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'number-object-fill',
title: '数物填写',
subtitle: '数物品数量,填写对应数字',
subtitle: '数数量,填写对应数字',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -76,7 +77,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'counting-select',
title: '数一数,选一选',
subtitle: '数出物品数量,圈出正确答案',
subtitle: '数出数量,圈出正确答案',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -116,7 +117,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'missing-number',
title: '填上缺少的数字',
subtitle: '在数列中找出并填写缺失数字',
subtitle: '找出并填写缺失数字',
ageMin: 4,
ageMax: 6,
difficulty: 2,
@@ -146,7 +147,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'one-digit-addition',
title: '一位数加法',
subtitle: '通过圆点学习一位数加法运算',
subtitle: '通过圆点学习一位数加法',
ageMin: 4,
ageMax: 6,
difficulty: 2,
@@ -156,7 +157,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'addition-5',
title: '5以内加法',
subtitle: '图形化展示 5 以内加法',
subtitle: '图形化展示5以内加法',
ageMin: 3,
ageMax: 5,
difficulty: 1,
@@ -166,7 +167,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'addition-10',
title: '10以内加法',
subtitle: '图形化展示 10 以内加法',
subtitle: '图形化展示10以内加法',
ageMin: 4,
ageMax: 6,
difficulty: 2,
@@ -176,7 +177,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'subtraction-10',
title: '10以内减法',
subtitle: '图形化展示 10 以内减法',
subtitle: '图形化展示10以内减法',
ageMin: 4,
ageMax: 6,
difficulty: 2,
@@ -196,7 +197,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'make-ten',
title: '凑十法练习',
subtitle: '20 以内进位加法',
subtitle: '20以内进位加法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
@@ -206,7 +207,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'break-ten',
title: '破十法练习',
subtitle: '20 以内退位减法',
subtitle: '20以内退位减法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
@@ -216,7 +217,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'flat-ten',
title: '平十法练习',
subtitle: '20 以内退位减法',
subtitle: '20以内退位减法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
@@ -246,7 +247,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'practice-subtraction',
title: '减法运算',
subtitle: '10/20/50/100 以内减法',
subtitle: '10/20/50/100以内减法',
ageMin: 5,
ageMax: 8,
difficulty: 3,
@@ -256,7 +257,7 @@ const MATH_DRAW_DEFINITIONS = [
{
id: 'practice-mixed',
title: '混合运算',
subtitle: '10/20/50/100 以内加减法混合',
subtitle: '10/20/50/100以内加减法混合',
ageMin: 5,
ageMax: 8,
difficulty: 3,