组卷
1.说明
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| requestID | number | 是 | 开始ID |
| task | taskType[] | 是 | 题目taskType的数组 |
2.taskType 类型说明
ts
interface taskType {
"title": string, //题目必填
"comp": "dapei"|"fillDan"|"select"|"fillselect", //组件类型 select 选择题,fillselect多选填空题,fillDan单项填空题 ,dapei搭配
"daan": string[][]|string[], //答案
"subtitle": string, //小题目
"selectOption":string[], //选项
"isDuo":number, //是否多选 2未多选
"cls": "small", //如果要缩小就把这个跟上
"requestId": number, //一般有程序填 人工可以留空
"id": number,//一般有程序填 人工可以留空
}interface taskType {
"title": string, //题目必填
"comp": "dapei"|"fillDan"|"select"|"fillselect", //组件类型 select 选择题,fillselect多选填空题,fillDan单项填空题 ,dapei搭配
"daan": string[][]|string[], //答案
"subtitle": string, //小题目
"selectOption":string[], //选项
"isDuo":number, //是否多选 2未多选
"cls": "small", //如果要缩小就把这个跟上
"requestId": number, //一般有程序填 人工可以留空
"id": number,//一般有程序填 人工可以留空
}3.合起后数据样例
json
{
"requestID": 9000,
"task": [
{
"title": "形容词介词搭配",
"comp": "dapei",
"daan": [
[
"interested",
"in"
],
[
"wrong",
"with"
],
[
"determined",
"to"
],
[
"worried",
"about"
],
[
"famous",
"for"
]
]
}
,
{
"title": "用英文写出这句话 ",
"comp": "fillselect",
"subtitle": "学知识",
"selectOption": [
"study",
"learn",
"lession",
"book",
"acquire",
"knowledge"
],
"daan": [
"acquire",
"knowledge"
],
"isDuo": 2
},
{
"title": "选择正确的答案",
"comp": "select",
"subtitle": " 中国",
"selectOption": [
"China",
"English",
"Your"
],
"daan": [
"China"
]
},
{
"title": "翻译",
"comp": "fillDan",
"subtitle": "你想指出的是,有关“the”的使用规则有很多例外,因此即便记住这些规则也没有什么用。",
"daan": [
"What’s the point of remembering the rules of “the,” if there are many exceptions to them?"
],
"cls": "small"
}
]
}
{
"requestID": 9000,
"task": [
{
"title": "形容词介词搭配",
"comp": "dapei",
"daan": [
[
"interested",
"in"
],
[
"wrong",
"with"
],
[
"determined",
"to"
],
[
"worried",
"about"
],
[
"famous",
"for"
]
]
}
,
{
"title": "用英文写出这句话 ",
"comp": "fillselect",
"subtitle": "学知识",
"selectOption": [
"study",
"learn",
"lession",
"book",
"acquire",
"knowledge"
],
"daan": [
"acquire",
"knowledge"
],
"isDuo": 2
},
{
"title": "选择正确的答案",
"comp": "select",
"subtitle": " 中国",
"selectOption": [
"China",
"English",
"Your"
],
"daan": [
"China"
]
},
{
"title": "翻译",
"comp": "fillDan",
"subtitle": "你想指出的是,有关“the”的使用规则有很多例外,因此即便记住这些规则也没有什么用。",
"daan": [
"What’s the point of remembering the rules of “the,” if there are many exceptions to them?"
],
"cls": "small"
}
]
}4.各组件样题
dapei
json
{
"title": "形容词介词搭配",
"comp": "dapei",
"cls": "small", //如果字太多 把这加上
"daan": [
[
"interested",
"in"
],
[
"wrong",
"with"
],
[
"determined",
"to"
],
[
"worried",
"about"
],
[
"famous",
"for"
]
]
}{
"title": "形容词介词搭配",
"comp": "dapei",
"cls": "small", //如果字太多 把这加上
"daan": [
[
"interested",
"in"
],
[
"wrong",
"with"
],
[
"determined",
"to"
],
[
"worried",
"about"
],
[
"famous",
"for"
]
]
}fillselect
json
{
"title": "用英文写出这句话 ",
"comp": "fillselect",
"subtitle": "学知识",
"selectOption": [
"study",
"learn",
"lession",
"book",
"acquire",
"knowledge"
],
"daan": [
"acquire",
"knowledge"
],
"isDuo": 2
}{
"title": "用英文写出这句话 ",
"comp": "fillselect",
"subtitle": "学知识",
"selectOption": [
"study",
"learn",
"lession",
"book",
"acquire",
"knowledge"
],
"daan": [
"acquire",
"knowledge"
],
"isDuo": 2
}select
json
{
"title": "选择正确的答案",
"comp": "select",
"subtitle": " 中国",
"selectOption": [
"China",
"English",
"Your"
],
"daan": [
"China"
]
}{
"title": "选择正确的答案",
"comp": "select",
"subtitle": " 中国",
"selectOption": [
"China",
"English",
"Your"
],
"daan": [
"China"
]
}fillDan
json
{
"title": "翻译",
"comp": "fillDan",
"subtitle": "你想指出的是,有关“the”的使用规则有很多例外,因此即便记住这些规则也没有什么用。",
"daan": [
"What’s the point of remembering the rules of “the,” if there are many exceptions to them?"
],
"cls": "small"
}{
"title": "翻译",
"comp": "fillDan",
"subtitle": "你想指出的是,有关“the”的使用规则有很多例外,因此即便记住这些规则也没有什么用。",
"daan": [
"What’s the point of remembering the rules of “the,” if there are many exceptions to them?"
],
"cls": "small"
}fillDan 一提多空
如果文字 多 加上 ,"cls": "small"
json
{
"title": "多题填空",
"comp": "fillDan",
"subtitle": "知道:____<br>食物:_____",
"daan": ["know","food"]
}{
"title": "多题填空",
"comp": "fillDan",
"subtitle": "知道:____<br>食物:_____",
"daan": ["know","food"]
}5.项目地址
- https://github.com/Dooy/penly.cn 的
penly-h5github 龙飞已加到项目组了
HIGO