- 更新陈云、鲁迅、聂耳等故居的展品图片素材 - 更新拼图细节图片 - 优化学习地图底图和详情图 - 更新音频素材 - 优化各故居 store 和页面组件
721 lines
18 KiB
TypeScript
721 lines
18 KiB
TypeScript
/**
|
||
* 拼图碎片数据配置
|
||
* 存储每个碎片的标题、场景图片等数据
|
||
*/
|
||
|
||
export interface PuzzlePieceData {
|
||
/** 碎片标题 */
|
||
title: string
|
||
/** 对应的场景图片路径(相对于 puzzle/ 目录) */
|
||
detailImage: string
|
||
// 对应的场景路由
|
||
route: string
|
||
}
|
||
|
||
/**
|
||
* 每个故居的拼图碎片数据配置(每个故居碎片都是16块)
|
||
* 格式:{ residence: { pieceId: PuzzlePieceData } }
|
||
*/
|
||
export const puzzleDataConfig: Record<string, Record<number, PuzzlePieceData>> = {
|
||
chenyun: {
|
||
// 碎片1 - 示例数据,请根据实际情况修改
|
||
1: {
|
||
title: '水乡少年·艰辛成长',
|
||
detailImage: 'chenyun/details/1',
|
||
route: 'place1',
|
||
},
|
||
// 碎片2
|
||
2: {
|
||
title: '陈云就读\n青浦县立乙种商业学校',
|
||
detailImage: 'chenyun/details/2',
|
||
route: 'place2',
|
||
},
|
||
// 碎片3
|
||
3: {
|
||
title: '陈云就读颜安小学',
|
||
detailImage: 'chenyun/details/3',
|
||
route: 'place2',
|
||
},
|
||
// 碎片4
|
||
4: {
|
||
title: '陈云在\n上海商务印书馆当学徒',
|
||
detailImage: 'chenyun/details/4',
|
||
route: 'place3',
|
||
},
|
||
// 碎片5
|
||
5: {
|
||
title: '陈云加入中国共产党',
|
||
detailImage: 'chenyun/details/5',
|
||
route: 'place3',
|
||
},
|
||
// 碎片6
|
||
6: {
|
||
title: '陈云被选为\n中央政治局委员、常委',
|
||
detailImage: 'chenyun/details/6',
|
||
route: 'place4',
|
||
},
|
||
// 碎片7
|
||
7: {
|
||
title: '陈云任\n西北财经办事处副主任',
|
||
detailImage: 'chenyun/details/7',
|
||
route: 'place5',
|
||
},
|
||
// 碎片8
|
||
8: {
|
||
title: '陈云主持\n陕甘宁边区财政工作',
|
||
detailImage: 'chenyun/details/8',
|
||
route: 'place5',
|
||
},
|
||
// 碎片9
|
||
9: {
|
||
title: '恢复时期·经济奠基',
|
||
detailImage: 'chenyun/details/9',
|
||
route: 'place6',
|
||
},
|
||
// 碎片10
|
||
10: {
|
||
title: '银元之战',
|
||
detailImage: 'chenyun/details/10',
|
||
route: 'place7',
|
||
},
|
||
// 碎片11
|
||
11: {
|
||
title: '陈云起草的关于发展\n国民经济“一五”计划\n报告的手稿',
|
||
detailImage: 'chenyun/details/11',
|
||
route: 'place8',
|
||
},
|
||
// 碎片12
|
||
12: {
|
||
title: '陈云赴宝钢考察',
|
||
detailImage: 'chenyun/details/12',
|
||
route: 'place9',
|
||
},
|
||
// 碎片13
|
||
13: {
|
||
title: '体悟·银元之战',
|
||
detailImage: 'chenyun/details/13',
|
||
route: 'reflection',
|
||
},
|
||
// 碎片14
|
||
14: {
|
||
title: '体悟·米棉之战',
|
||
detailImage: 'chenyun/details/14',
|
||
route: 'reflection',
|
||
},
|
||
// 碎片15
|
||
15: {
|
||
title: '陈云经济思想的核心内容',
|
||
detailImage: 'chenyun/details/15',
|
||
route: 'internalization',
|
||
},
|
||
// 碎片16
|
||
16: {
|
||
title: '陈云给青年的精神指引',
|
||
detailImage: 'chenyun/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
huangyanpei: {
|
||
// 碎片1
|
||
1: {
|
||
title: '杰出的爱国民主人士黄炎培',
|
||
detailImage: 'huangyanpei/details/1',
|
||
route: 'place1',
|
||
},
|
||
// 碎片2
|
||
2: {
|
||
title: '南洋公学',
|
||
detailImage: 'huangyanpei/details/2',
|
||
route: 'place2',
|
||
},
|
||
// 碎片3
|
||
3: {
|
||
title: '川沙小学堂',
|
||
detailImage: 'huangyanpei/details/3',
|
||
route: 'place3',
|
||
},
|
||
// 碎片4
|
||
4: {
|
||
title: '开群女学课堂',
|
||
detailImage: 'huangyanpei/details/4',
|
||
route: 'place3',
|
||
},
|
||
// 碎片5
|
||
5: {
|
||
title: '杨斯盛创建浦东中学',
|
||
detailImage: 'huangyanpei/details/5',
|
||
route: 'place3',
|
||
},
|
||
// 碎片6
|
||
6: {
|
||
title: '职业教育\n和中华职业学校',
|
||
detailImage: 'huangyanpei/details/6',
|
||
route: 'place4',
|
||
},
|
||
// 碎片7
|
||
7: {
|
||
title: '中华职业教育社会址',
|
||
detailImage: 'huangyanpei/details/7',
|
||
route: 'place4',
|
||
},
|
||
// 碎片8
|
||
8: {
|
||
title: '抗敌后援会成立大会',
|
||
detailImage: 'huangyanpei/details/8',
|
||
route: 'place4',
|
||
},
|
||
// 碎片9
|
||
9: {
|
||
title: '中华职校组织义勇军',
|
||
detailImage: 'huangyanpei/details/9',
|
||
route: 'place4',
|
||
},
|
||
// 碎片10
|
||
10: {
|
||
title: '黄炎培与荣氏兄弟\n合作工人教育',
|
||
detailImage: 'huangyanpei/details/10',
|
||
route: 'place4',
|
||
},
|
||
// 碎片11
|
||
11: {
|
||
title: '黄炎培创建民盟',
|
||
detailImage: 'huangyanpei/details/11',
|
||
route: 'place5',
|
||
},
|
||
// 碎片12
|
||
12: {
|
||
title: '窑洞对',
|
||
detailImage: 'huangyanpei/details/12',
|
||
route: 'place5',
|
||
},
|
||
// 碎片13
|
||
13: {
|
||
title: '黄炎培参加第一届全国人大',
|
||
detailImage: 'huangyanpei/details/13',
|
||
route: 'place6',
|
||
},
|
||
// 碎片14
|
||
14: {
|
||
title: '黄炎培对浦东中学\n新生的教导',
|
||
detailImage: 'huangyanpei/details/14',
|
||
route: 'reflection2',
|
||
},
|
||
// 碎片15
|
||
15: {
|
||
title: '中华职业学校的立业之本',
|
||
detailImage: 'huangyanpei/details/15',
|
||
route: 'reflection4',
|
||
},
|
||
// 碎片16
|
||
16: {
|
||
title: '黄炎培的“实业救国”情怀',
|
||
detailImage: 'huangyanpei/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
sunzhongshan: {
|
||
1: {
|
||
title: '革命四杰',
|
||
detailImage: 'sunzhongshan/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '郑观应的推荐信',
|
||
detailImage: 'sunzhongshan/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '《申报》刊登孙中山就职\n临时大总统消息',
|
||
detailImage: 'sunzhongshan/details/3',
|
||
route: 'place1',
|
||
},
|
||
4: {
|
||
title: '《民立报》报道孙中山解职',
|
||
detailImage: 'sunzhongshan/details/4',
|
||
route: 'place1',
|
||
},
|
||
5: {
|
||
title: '中国铁路计划图',
|
||
detailImage: 'sunzhongshan/details/5',
|
||
route: 'place2',
|
||
},
|
||
6: {
|
||
title: '实业计划',
|
||
detailImage: 'sunzhongshan/details/6',
|
||
route: 'place2',
|
||
},
|
||
7: {
|
||
title: '护法运动',
|
||
detailImage: 'sunzhongshan/details/7',
|
||
route: 'place2',
|
||
},
|
||
8: {
|
||
title: '社会主义的精义',
|
||
detailImage: 'sunzhongshan/details/8',
|
||
route: 'place3',
|
||
},
|
||
9: {
|
||
title: '李大钊给胡适的信',
|
||
detailImage: 'sunzhongshan/details/9',
|
||
route: 'place3',
|
||
},
|
||
10: {
|
||
title: '中国国民党第一次\n全国代表大会宣言',
|
||
detailImage: 'sunzhongshan/details/10',
|
||
route: 'place3',
|
||
},
|
||
11: {
|
||
title: '国事遗嘱',
|
||
detailImage: 'sunzhongshan/details/11',
|
||
route: 'place4',
|
||
},
|
||
12: {
|
||
title: '第二次护法运动推理小游戏',
|
||
detailImage: 'sunzhongshan/details/12',
|
||
route: 'reflection1',
|
||
},
|
||
13: {
|
||
title: '国共合作推理小游戏',
|
||
detailImage: 'sunzhongshan/details/13',
|
||
route: 'reflection2',
|
||
},
|
||
14: {
|
||
title: '抱病北上推理小游戏',
|
||
detailImage: 'sunzhongshan/details/14',
|
||
route: 'reflection3',
|
||
},
|
||
15: {
|
||
title: '振兴中华对新时代\n青年的意义',
|
||
detailImage: 'sunzhongshan/details/15',
|
||
route: 'internalization',
|
||
},
|
||
16: {
|
||
title: '学习孙中山的精神',
|
||
detailImage: 'sunzhongshan/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
luxun: {
|
||
1: {
|
||
title: '鲁迅1927年南下\n广州时的照片',
|
||
detailImage: 'luxun/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '景云里旧居场景图',
|
||
detailImage: 'luxun/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '《且介亭杂文》',
|
||
detailImage: 'luxun/details/3',
|
||
route: 'place2',
|
||
},
|
||
4: {
|
||
title: '《中国人失掉自信力了吗》',
|
||
detailImage: 'luxun/details/4',
|
||
route: 'place2',
|
||
},
|
||
5: {
|
||
title: '《南腔北调集》',
|
||
detailImage: 'luxun/details/5',
|
||
route: 'place2',
|
||
},
|
||
6: {
|
||
title: '《故事新编》',
|
||
detailImage: 'luxun/details/6',
|
||
route: 'place3',
|
||
},
|
||
7: {
|
||
title: '《理水》手迹',
|
||
detailImage: 'luxun/details/7',
|
||
route: 'place3',
|
||
},
|
||
8: {
|
||
title: '书架上的翻译著作',
|
||
detailImage: 'luxun/details/8',
|
||
route: 'place3',
|
||
},
|
||
9: {
|
||
title: '《海上述林》书册',
|
||
detailImage: 'luxun/details/9',
|
||
route: 'place3',
|
||
},
|
||
10: {
|
||
title: '书册上的校订批注',
|
||
detailImage: 'luxun/details/10',
|
||
route: 'place3',
|
||
},
|
||
11: {
|
||
title: '瞿秋白对鲁迅的评价',
|
||
detailImage: 'luxun/details/11',
|
||
route: 'place4',
|
||
},
|
||
12: {
|
||
title: '鲁迅赠瞿秋白的对联',
|
||
detailImage: 'luxun/details/12',
|
||
route: 'place4',
|
||
},
|
||
13: {
|
||
title: '鲁迅全家与冯雪峰全家合影',
|
||
detailImage: 'luxun/details/13',
|
||
route: 'place4',
|
||
},
|
||
14: {
|
||
title: '鲁迅创作历程',
|
||
detailImage: 'luxun/details/14',
|
||
route: 'reflection',
|
||
},
|
||
15: {
|
||
title: '鲁迅精神的总结',
|
||
detailImage: 'luxun/details/15',
|
||
route: 'reflection3',
|
||
},
|
||
16: {
|
||
title: '鲁迅对青年的培养',
|
||
detailImage: 'luxun/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
maozedong: {
|
||
1: {
|
||
title: '毛泽东与陈独秀合影',
|
||
detailImage: 'maozedong/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '中共一大会址',
|
||
detailImage: 'maozedong/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '中共二大旧址',
|
||
detailImage: 'maozedong/details/3',
|
||
route: 'place2',
|
||
},
|
||
4: {
|
||
title: '《向导》周刊三篇文章',
|
||
detailImage: 'maozedong/details/4',
|
||
route: 'place2',
|
||
},
|
||
5: {
|
||
title: '中共三大召开',
|
||
detailImage: 'maozedong/details/5',
|
||
route: 'place3',
|
||
},
|
||
6: {
|
||
title: '孙中山手书名单',
|
||
detailImage: 'maozedong/details/6',
|
||
route: 'place3',
|
||
},
|
||
7: {
|
||
title: '孙文越飞联合宣言',
|
||
detailImage: 'maozedong/details/7',
|
||
route: 'place3',
|
||
},
|
||
8: {
|
||
title: '毛泽东签发的两份\n中共四大通知',
|
||
detailImage: 'maozedong/details/8',
|
||
route: 'place4',
|
||
},
|
||
9: {
|
||
title: '中共四大遗址立碑处',
|
||
detailImage: 'maozedong/details/9',
|
||
route: 'place4',
|
||
},
|
||
10: {
|
||
title: '中国社会各阶级的分析',
|
||
detailImage: 'maozedong/details/10',
|
||
route: 'place4',
|
||
},
|
||
11: {
|
||
title: '湖南农民运动考察报告',
|
||
detailImage: 'maozedong/details/11',
|
||
route: 'place4',
|
||
},
|
||
12: {
|
||
title: '少一人的全家福',
|
||
detailImage: 'maozedong/details/12',
|
||
route: 'place4',
|
||
},
|
||
13: {
|
||
title: '筹备方向的定夺',
|
||
detailImage: 'maozedong/details/13',
|
||
route: 'reflection',
|
||
},
|
||
14: {
|
||
title: '基层声音的汇聚',
|
||
detailImage: 'maozedong/details/14',
|
||
route: 'reflection',
|
||
},
|
||
15: {
|
||
title: '毛泽东思想的确立',
|
||
detailImage: 'maozedong/details/15',
|
||
route: 'internalization',
|
||
},
|
||
16: {
|
||
title: '毛泽东思想活的灵魂',
|
||
detailImage: 'maozedong/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
nieer: {
|
||
1: {
|
||
title: '九·一八事变',
|
||
detailImage: 'nieer/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '聂耳发表了《中国歌舞短论》',
|
||
detailImage: 'nieer/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '聂耳加入左翼文艺团体',
|
||
detailImage: 'nieer/details/3',
|
||
route: 'place1',
|
||
},
|
||
4: {
|
||
title: '风云儿女胶片',
|
||
detailImage: 'nieer/details/4',
|
||
route: 'place2',
|
||
},
|
||
5: {
|
||
title: '志同道合',
|
||
detailImage: 'nieer/details/5',
|
||
route: 'place2',
|
||
},
|
||
6: {
|
||
title: '《义勇军进行曲》\n曲谱的手稿',
|
||
detailImage: 'nieer/details/6',
|
||
route: 'place3',
|
||
},
|
||
7: {
|
||
title: '聂耳在海外定稿曲谱',
|
||
detailImage: 'nieer/details/7',
|
||
route: 'place3',
|
||
},
|
||
8: {
|
||
title: '风云儿女上映',
|
||
detailImage: 'nieer/details/8',
|
||
route: 'place4',
|
||
},
|
||
9: {
|
||
title: '国歌选定',
|
||
detailImage: 'nieer/details/9',
|
||
route: 'place5',
|
||
},
|
||
10: {
|
||
title: '国歌入宪',
|
||
detailImage: 'nieer/details/10',
|
||
route: 'place5',
|
||
},
|
||
11: {
|
||
title: '国歌立法',
|
||
detailImage: 'nieer/details/11',
|
||
route: 'place5',
|
||
},
|
||
12: {
|
||
title: '新中国奏响国歌的场景(上)',
|
||
detailImage: 'nieer/details/12',
|
||
route: 'place6',
|
||
},
|
||
13: {
|
||
title: '新中国奏响国歌的场景(下)',
|
||
detailImage: 'nieer/details/13',
|
||
route: 'place6',
|
||
},
|
||
14: {
|
||
title: '定格阅兵瞬间',
|
||
detailImage: 'nieer/details/14',
|
||
route: 'reflection',
|
||
},
|
||
15: {
|
||
title: '聂耳「人民音乐家」',
|
||
detailImage: 'nieer/details/15',
|
||
route: 'internalization',
|
||
},
|
||
16: {
|
||
title: '国歌精神的当代传承',
|
||
detailImage: 'nieer/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
zhangleping: {
|
||
1: {
|
||
title: '童年的回忆\n(张乐平,1983)',
|
||
detailImage: 'zhangleping/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '张母的绣品',
|
||
detailImage: 'zhangleping/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '穷凶极恶的结果\n(张乐平,1937)',
|
||
detailImage: 'zhangleping/details/3',
|
||
route: 'place2',
|
||
},
|
||
4: {
|
||
title: '长沙大火前夕\n张乐平在街头墙上挥笔作画',
|
||
detailImage: 'zhangleping/details/4',
|
||
route: 'place2',
|
||
},
|
||
5: {
|
||
title: '侵略者的坟墓\n(张乐平,1938)',
|
||
detailImage: 'zhangleping/details/5',
|
||
route: 'place2',
|
||
},
|
||
6: {
|
||
title: '早期三毛',
|
||
detailImage: 'zhangleping/details/6',
|
||
route: 'place3',
|
||
},
|
||
7: {
|
||
title: '三毛成长(三毛流浪记)',
|
||
detailImage: 'zhangleping/details/7',
|
||
route: 'place3',
|
||
},
|
||
8: {
|
||
title: '三毛新生',
|
||
detailImage: 'zhangleping/details/8',
|
||
route: 'place3',
|
||
},
|
||
9: {
|
||
title: '张乐平和儿童互通书信',
|
||
detailImage: 'zhangleping/details/9',
|
||
route: 'place4',
|
||
},
|
||
10: {
|
||
title: '儿童园丁',
|
||
detailImage: 'zhangleping/details/10',
|
||
route: 'place4',
|
||
},
|
||
11: {
|
||
title: '朋友画我的瓷板画(右)',
|
||
detailImage: 'zhangleping/details/11',
|
||
route: 'place5',
|
||
},
|
||
12: {
|
||
title: '朋友画我的瓷板画(左)',
|
||
detailImage: 'zhangleping/details/12',
|
||
route: 'place5',
|
||
},
|
||
13: {
|
||
title: '名人留言板',
|
||
detailImage: 'zhangleping/details/13',
|
||
route: 'place5',
|
||
},
|
||
14: {
|
||
title: '创作心路',
|
||
detailImage: 'zhangleping/details/14',
|
||
route: 'reflection',
|
||
},
|
||
15: {
|
||
title: '艺术来源于生活',
|
||
detailImage: 'zhangleping/details/15',
|
||
route: 'internalization',
|
||
},
|
||
16: {
|
||
title: '核心创作理念',
|
||
detailImage: 'zhangleping/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
rongdesheng: {
|
||
1: {
|
||
title: '荣德生像',
|
||
detailImage: 'rongdesheng/details/1',
|
||
route: 'place1',
|
||
},
|
||
2: {
|
||
title: '民国时期上海的钱庄',
|
||
detailImage: 'rongdesheng/details/2',
|
||
route: 'place1',
|
||
},
|
||
3: {
|
||
title: '福新面粉厂',
|
||
detailImage: 'rongdesheng/details/3',
|
||
route: 'place2',
|
||
},
|
||
4: {
|
||
title: '“兵船”牌面粉商标',
|
||
detailImage: 'rongdesheng/details/4',
|
||
route: 'place2',
|
||
},
|
||
5: {
|
||
title: '上海申新第九纺织厂门楼\n(1933年旧照)',
|
||
detailImage: 'rongdesheng/details/5',
|
||
route: 'place2',
|
||
},
|
||
6: {
|
||
title: '“人钟牌”棉纱商标',
|
||
detailImage: 'rongdesheng/details/6',
|
||
route: 'place2',
|
||
},
|
||
7: {
|
||
title: '国际劳工局赞美\n申新三纺织厂劳工自治区',
|
||
detailImage: 'rongdesheng/details/7',
|
||
route: 'place2',
|
||
},
|
||
8: {
|
||
title: '上海申新一厂和八厂于\n1937年被日本飞机炸毁',
|
||
detailImage: 'rongdesheng/details/8',
|
||
route: 'place3',
|
||
},
|
||
9: {
|
||
title: '《人报》报道\n乐农氏再度捐助面粉一万包',
|
||
detailImage: 'rongdesheng/details/9',
|
||
route: 'place3',
|
||
},
|
||
10: {
|
||
title: '心正思无邪\n意诚言必中 题字',
|
||
detailImage: 'rongdesheng/details/10',
|
||
route: 'place3',
|
||
},
|
||
11: {
|
||
title: '荣德生被绑架新闻报道',
|
||
detailImage: 'rongdesheng/details/11',
|
||
route: 'place4',
|
||
},
|
||
12: {
|
||
title: '荣德生拒绝荣氏工业结构\n外迁的报道',
|
||
detailImage: 'rongdesheng/details/12',
|
||
route: 'place4',
|
||
},
|
||
13: {
|
||
title: '毛泽东主席、陈毅副总理在\n荣毅仁陪同下,参观公私合\n营上海申新第九纺织厂',
|
||
detailImage: 'rongdesheng/details/13',
|
||
route: 'place4',
|
||
},
|
||
14: {
|
||
title: '民生坚守',
|
||
detailImage: 'rongdesheng/details/14',
|
||
route: 'reflection',
|
||
},
|
||
15: {
|
||
title: '坚韧不拔',
|
||
detailImage: 'rongdesheng/details/15',
|
||
route: 'internalization',
|
||
},
|
||
16: {
|
||
title: '社会责任担当',
|
||
detailImage: 'rongdesheng/details/16',
|
||
route: 'internalization',
|
||
},
|
||
},
|
||
}
|
||
|
||
/**
|
||
* 获取碎片的数据配置
|
||
* @param residence 故居名称
|
||
* @param pieceId 碎片ID
|
||
* @returns 碎片数据,如果不存在则返回默认值
|
||
*/
|
||
export const getPuzzlePieceData = (residence: string, pieceId: number): PuzzlePieceData | null => {
|
||
const residenceConfig = puzzleDataConfig[residence]
|
||
const pieceData = residenceConfig?.[pieceId]
|
||
return pieceData || null
|
||
}
|