Commit 31ab18fe authored by 李维's avatar 李维

完成文字选项多选

parent 370448c0
......@@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "SelectModal",
"_name": "MultipleSelectModal",
"_objFlags": 0,
"_parent": null,
"_children": [
......@@ -27,11 +27,11 @@
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 92
}
],
"_prefab": {
"__id__": 81
"__id__": 93
},
"_opacity": 255,
"_color": {
......@@ -213,16 +213,19 @@
},
{
"__id__": 21
},
{
"__id__": 82
}
],
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 90
}
],
"_prefab": {
"__id__": 79
"__id__": 91
},
"_opacity": 255,
"_color": {
......@@ -823,13 +826,13 @@
"__id__": 22
},
{
"__id__": 40
"__id__": 44
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 77
"__id__": 81
},
"_opacity": 255,
"_color": {
......@@ -854,7 +857,7 @@
"ctor": "Float64Array",
"array": [
0,
-60,
0,
0,
0,
0,
......@@ -893,14 +896,14 @@
"_active": false,
"_components": [
{
"__id__": 37
"__id__": 41
},
{
"__id__": 38
"__id__": 42
}
],
"_prefab": {
"__id__": 39
"__id__": 43
},
"_opacity": 255,
"_color": {
......@@ -965,16 +968,19 @@
},
{
"__id__": 31
},
{
"__id__": 35
}
],
"_active": false,
"_components": [
{
"__id__": 35
"__id__": 39
}
],
"_prefab": {
"__id__": 36
"__id__": 40
},
"_opacity": 255,
"_color": {
......@@ -1272,7 +1278,7 @@
},
{
"__type__": "cc.Node",
"_name": "line_bottom",
"_name": "icon_check",
"_objFlags": 0,
"_parent": {
"__id__": 23
......@@ -1290,6 +1296,145 @@
"_prefab": {
"__id__": 34
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 53,
"height": 45
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
523.5,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8fcb817c-a3a2-4aea-a1a6-e29786d3fc05"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"alignMode": 1,
"_target": {
"__id__": 23
},
"_alignFlags": 32,
"_left": 0,
"_right": 50,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cd0aa97a-eede-42a5-a8a9-30201fa30f98"
},
"fileId": "a7Suen4WhMdLzcXnBbknJp",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "line_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 36
},
{
"__id__": 37
}
],
"_prefab": {
"__id__": 38
},
"_opacity": 128,
"_color": {
"__type__": "cc.Color",
......@@ -1342,7 +1487,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 35
},
"_enabled": true,
"_materials": [
......@@ -1374,7 +1519,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 35
},
"_enabled": true,
"alignMode": 1,
......@@ -1567,20 +1712,20 @@
},
"_children": [
{
"__id__": 41
"__id__": 45
},
{
"__id__": 58
"__id__": 62
}
],
"_active": false,
"_components": [
{
"__id__": 75
"__id__": 79
}
],
"_prefab": {
"__id__": 76
"__id__": 80
},
"_opacity": 255,
"_color": {
......@@ -1634,36 +1779,36 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 44
},
"_children": [
{
"__id__": 42
"__id__": 46
},
{
"__id__": 45
"__id__": 49
},
{
"__id__": 48
"__id__": 52
},
{
"__id__": 51
"__id__": 55
}
],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 58
},
{
"__id__": 55
"__id__": 59
},
{
"__id__": 56
"__id__": 60
}
],
"_prefab": {
"__id__": 57
"__id__": 61
},
"_opacity": 255,
"_color": {
......@@ -1717,17 +1862,17 @@
"_name": "icon_right",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 45
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 47
}
],
"_prefab": {
"__id__": 44
"__id__": 48
},
"_opacity": 255,
"_color": {
......@@ -1781,7 +1926,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 46
},
"_enabled": true,
"_materials": [
......@@ -1824,17 +1969,17 @@
"_name": "icon_laugh",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 45
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 46
"__id__": 50
}
],
"_prefab": {
"__id__": 47
"__id__": 51
},
"_opacity": 255,
"_color": {
......@@ -1888,7 +2033,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -1931,17 +2076,17 @@
"_name": "text_true",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 45
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 49
"__id__": 53
}
],
"_prefab": {
"__id__": 50
"__id__": 54
},
"_opacity": 255,
"_color": {
......@@ -1995,7 +2140,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2039,17 +2184,17 @@
"_name": "text_yes",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 45
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 52
"__id__": 56
}
],
"_prefab": {
"__id__": 53
"__id__": 57
},
"_opacity": 255,
"_color": {
......@@ -2103,7 +2248,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 55
},
"_enabled": true,
"_materials": [
......@@ -2147,7 +2292,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 45
},
"_enabled": true,
"_materials": [
......@@ -2177,7 +2322,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 45
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2245,7 +2390,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 45
},
"_enabled": true,
"alignMode": 1,
......@@ -2283,36 +2428,36 @@
"_name": "wrong",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 44
},
"_children": [
{
"__id__": 59
"__id__": 63
},
{
"__id__": 62
"__id__": 66
},
{
"__id__": 65
"__id__": 69
},
{
"__id__": 68
"__id__": 72
}
],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 75
},
{
"__id__": 72
"__id__": 76
},
{
"__id__": 73
"__id__": 77
}
],
"_prefab": {
"__id__": 74
"__id__": 78
},
"_opacity": 255,
"_color": {
......@@ -2366,17 +2511,17 @@
"_name": "icon_wrong",
"_objFlags": 0,
"_parent": {
"__id__": 58
"__id__": 62
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 64
}
],
"_prefab": {
"__id__": 61
"__id__": 65
},
"_opacity": 255,
"_color": {
......@@ -2430,7 +2575,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 63
},
"_enabled": true,
"_materials": [
......@@ -2473,17 +2618,17 @@
"_name": "icon_cry",
"_objFlags": 0,
"_parent": {
"__id__": 58
"__id__": 62
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 63
"__id__": 67
}
],
"_prefab": {
"__id__": 64
"__id__": 68
},
"_opacity": 255,
"_color": {
......@@ -2537,7 +2682,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 66
},
"_enabled": true,
"_materials": [
......@@ -2580,17 +2725,17 @@
"_name": "text_false",
"_objFlags": 0,
"_parent": {
"__id__": 58
"__id__": 62
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 66
"__id__": 70
}
],
"_prefab": {
"__id__": 67
"__id__": 71
},
"_opacity": 255,
"_color": {
......@@ -2644,7 +2789,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 69
},
"_enabled": true,
"_materials": [
......@@ -2688,17 +2833,17 @@
"_name": "text_no",
"_objFlags": 0,
"_parent": {
"__id__": 58
"__id__": 62
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 69
"__id__": 73
}
],
"_prefab": {
"__id__": 70
"__id__": 74
},
"_opacity": 255,
"_color": {
......@@ -2752,7 +2897,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -2796,7 +2941,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 62
},
"_enabled": true,
"_materials": [
......@@ -2826,7 +2971,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 62
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2894,7 +3039,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 62
},
"_enabled": true,
"alignMode": 1,
......@@ -2932,7 +3077,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 44
},
"_enabled": true,
"alignMode": 1,
......@@ -2978,6 +3123,327 @@
"fileId": "6cmpk1VftCWKqsECTkvrhc",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "footer",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [
{
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 87
},
{
"__id__": 88
}
],
"_prefab": {
"__id__": 89
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1200,
"height": 120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-190,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "btn_ok",
"_objFlags": 0,
"_parent": {
"__id__": 82
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 84
},
{
"__id__": 85
}
],
"_prefab": {
"__id__": 86
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 77,
"height": 77
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a738dfde-4b13-49ab-a440-2310834c2692"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cd0aa97a-eede-42a5-a8a9-30201fa30f98"
},
"fileId": "68PzXtnstNq41kc3SjpGfN",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
},
"_enabled": true,
"alignMode": 1,
"_target": {
"__id__": 6
},
"_alignFlags": 4,
"_left": 0,
"_right": 0,
"_top": 380,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "514b53e7-dff5-4f5f-b85d-5b12abff8873"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "cd0aa97a-eede-42a5-a8a9-30201fa30f98"
},
"fileId": "a3mTfGuq9Jo69jsMZZnuX8",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
......@@ -3029,9 +3495,10 @@
"__id__": 1
},
"_enabled": true,
"titleName": "请选择答案",
"titleName": "请选择答案(可能有多个选项)",
"width": 1000,
"headerHeight": 150,
"headerHeight": 120,
"footerHeight": 120,
"optionHeight": 120,
"_id": ""
},
......
......@@ -10,13 +10,16 @@ const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property({displayName: "标题内容", })
titleName: string = "请选择答案";
titleName: string = "请选择答案(可能有多个选项)";
@property({type: cc.Float, displayName: "窗口宽度", })
width: number = 1000;
@property({type: cc.Float, displayName: "标题高度", })
headerHeight: number = 150;
headerHeight: number = 120;
@property({type: cc.Float, displayName: "底栏高度", })
footerHeight: number = 120;
@property({type: cc.Float, displayName: "选项高度", })
optionHeight: number = 120;
......@@ -40,9 +43,11 @@ export default class NewClass extends cc.Component {
const center = cc.find("center", this.node);
const header = cc.find("center/header", this.node);
const list = cc.find("center/list", this.node);
const footer = cc.find("center/footer", this.node);
center.width = this.width;
header.width = this.width;
footer.width = this.width;
list.width = this.width;
this.node.x = 0;
......@@ -91,13 +96,15 @@ export default class NewClass extends cc.Component {
const list = cc.find("center/list", this.node);
if(type == "textList") {
this.initTitle("请选择答案");
this.initTitle("请选择答案(可能有多个选项)");
const listLayout = cc.find("center/list/layout_options", this.node);
const itemTemplate = cc.find("center/list/layout_options/item_tempate", this.node);
const buttonOK = cc.find("center/footer/btn_ok", this.node);
listLayout.active = true;
option.forEach((item, index) => {
const optionNode = cc.instantiate(itemTemplate);
const check = cc.find("icon_check", optionNode)
// 第一个选项不显示顶部分隔条
if(index == 0) {
cc.find("line_top", optionNode).active = false;
......@@ -105,17 +112,23 @@ export default class NewClass extends cc.Component {
optionNode.name = `option_${index}`
const text = cc.find("text", optionNode);
text.getComponent(cc.Label).string = item.label;
check.active = item.selected;
optionNode.on("click", ()=>{
this.node.emit("onSelected", item);
this.hide();
item.selected = item.selected ? false : true;
check.active = item.selected;
})
optionNode.active = true;
listLayout.addChild(optionNode);
});
center.height = option.length * this.optionHeight + this.headerHeight;
center.height = option.length * this.optionHeight + this.headerHeight + this.footerHeight;
list.height = option.length * this.optionHeight;
listLayout.height = option.length * this.optionHeight;
buttonOK.off("click")
buttonOK.on("click", ()=>{
this.node.emit("onSelected", option);
this.hide();
})
} else {
const rightWrongLayout = cc.find("center/list/layout_right_wrong", this.node);
const rightIcon = cc.find("right/icon_right", rightWrongLayout);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2873,6 +2873,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return validater
}
// 设置文字选项 多选
setTextOptionListMultiple(contentData, debugMode=false) {
// 存放子校验器
const subValidater = [];
......@@ -2909,6 +2910,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
index: index,
label: option.optionShowText ? option.optionShowText : option.text,
value: option.text,
selected: false,
selectedLabel: "",
strikeOutNode: null
})
});
......@@ -2919,7 +2922,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const resultRect = this.newRectNode(hotZoneItemData, layer_2, debugMode);
this.newDecorativeFrame(hotZoneItemData, layer_1, "#FFFFFF", "#6dbef6", debugMode);
const rect = this.newRectNode(hotZoneItemData, layer_4, debugMode);
let selectData = JSON.parse(JSON.stringify(optionList))
resultRects.push({
detail: {
contentType: TEXT_SELECT,
......@@ -2949,11 +2952,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
if(rect.cleanLast) {
lastText = rect.cleanLast()
}
let selectData = await this.asyncShowMultipleSelectModal(optionList, "textList");
const _selectData = await this.asyncShowMultipleSelectModal(selectData, "textList");
// 如果点击了取消 则还原上次显示
// TODO:selectData.label 为显示的文本,比如用户选择了A、B、D三个选项,那么selectData.label的值就是 A/B/D
const inputLabel = this.newInputTextNode(selectData?selectData.label:lastText, 0);
if(_selectData) {
selectData = _selectData
}
let selectedLabels = [];
selectData.forEach(opItem => {
if(opItem.selected) {
selectedLabels.push(opItem.label)
}
});
let showLabel = ""
if(selectData.length > 0) {
showLabel = selectedLabels.join("/");
} else {
showLabel = lastText;
}
const inputLabel = this.newInputTextNode(showLabel, 0);
inputLabel.x = rect.width / 2;
inputLabel.y = rect.height / 2;
......@@ -2961,7 +2981,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
rect.cleanLast = () => {
inputLabel.destroy();
if(selectData) {
return selectData.label;
return showLabel;
} else {
return lastText
}
......@@ -2977,9 +2997,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
contentType: TEXT_SELECT,
configIndex: contentData.index,
contentIndex: index,
currentSelectIndex: selectData.indexArr,
currentSelectText: selectData.label,
correctSelectIndex: index,
currentSelectIndex: [],
currentSelectText: showLabel,
correctSelectIndex: option.selectOptionListIndexArr,
correctSelectText: option.text,
right: true
},
......@@ -2988,6 +3008,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
allRight: true,
score: 0
}
const currentSelectIndexArr = [];
const correctSelectTextArr = [];
let right = false;
if(contentData.useSelectOptionList) {
......@@ -2996,10 +3018,31 @@ export default class SceneComponent extends MyCocosSceneComponent {
// selectData.indexArr - 当前用户选择的序号数组
// 需要修改线面的这行代码的逻辑,判断两个数组的元素完全相同 right = true
// right = selectData.indexArr == option.selectOptionListIndexArr;
let allRight = true;
option.selectOptionListIndexArr.forEach(opIndex => {
if(selectData[opIndex]) {
if(!selectData[opIndex].selected) {
allRight = false;
}
correctSelectTextArr.push(selectData[opIndex].label)
}
});
selectData.forEach((selItem, index) => {
if(selItem.selected) {
currentSelectIndexArr.push(index)
}
});
right = allRight;
} else {
right = selectData.index == index
}
result.detail.currentSelectIndex = currentSelectIndexArr;
result.detail.correctSelectText = correctSelectTextArr.join("/");
// 选择数据的索引 和 当前索引是否相等 判断是否选择正确
if(right) {
// 正确 返回分数
......
export const defaultData = {"header_image_url":"http://teach.cdn.ireadabc.com/0c665ba2bd00c1ca993f9b65c4f66e21.jpg","bgItem":{"url":"http://teach.cdn.ireadabc.com/cd2a911668720040d5d17b415d907dad.jpg","rect":{"x":0,"y":1349.7377777777779,"width":956,"height":2296.5244444444443}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-橡皮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":181.46,"y":261.83,"width":23.26,"height":23.26}},{"index":1,"itemType":"rect","itemName":"1-终点-尺子2","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":392.5,"y":237.19,"width":19.3,"height":22.06}},{"index":2,"itemType":"rect","itemName":"1-书","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":537.61,"y":207.01,"width":23.26,"height":23.26}},{"index":3,"itemType":"rect","itemName":"1-钢笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":713.59,"y":504.81,"width":23.26,"height":23.26}},{"index":4,"itemType":"rect","itemName":"1-铅笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":170.57,"y":339.09,"width":23.26,"height":23.26}},{"index":5,"itemType":"rect","itemName":"1-尺子","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":315.37,"y":207.31,"width":23.26,"height":23.26}},{"index":6,"itemType":"rect","itemName":"1-背包","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":270.88,"y":590.03,"width":23.26,"height":23.26}},{"index":7,"itemType":"rect","itemName":"1-上色-橡皮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":301.91,"y":277.26,"width":67.27,"height":115.05}},{"index":8,"itemType":"rect","itemName":"1-上色-尺子","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":401.6,"y":265.64,"width":61.15,"height":161.03}},{"index":9,"itemType":"rect","itemName":"1-上色-书","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":515.71,"y":248.32,"width":154.92,"height":152.88}},{"index":10,"itemType":"rect","itemName":"1-上色-钢笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":486.15,"y":354.31,"width":59.11,"height":106}},{"index":11,"itemType":"rect","itemName":"1-上色-铅笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":342.8,"y":349.26,"width":58.2,"height":56.43}},{"index":12,"itemType":"rect","itemName":"1-上色-背包","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":102.94,"y":408.33,"width":148.8,"height":195.68}},{"index":13,"itemType":"rect","itemName":"1-终点-橡皮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":360.33,"y":339.7,"width":17.47,"height":17.47}},{"index":14,"itemType":"rect","itemName":"1-终点-背包","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":218.29,"y":584.24,"width":19.3,"height":19.3}},{"index":15,"itemType":"rect","itemName":"1-终点-书","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":558.45,"y":248.68,"width":17.47,"height":17.47}},{"index":16,"itemType":"rect","itemName":"1-终点-钢笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":564.89,"y":425.66,"width":17.47,"height":17.47}},{"index":17,"itemType":"rect","itemName":"1-终点-铅笔","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":287.24,"y":359.01,"width":17.47,"height":17.47}},{"index":18,"itemType":"rect","itemName":"1-终点-尺子","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":430.19,"y":231.22,"width":27.58,"height":27.58}},{"index":19,"itemType":"rect","itemName":"1-结果","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":525.35,"y":127.33,"width":23.91,"height":23.91}},{"index":20,"itemType":"rect","itemName":"2-draw-chari1","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":197.14,"y":834.76,"width":91.94,"height":91.94}},{"index":21,"itemType":"rect","itemName":"2-draw-chari2","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":308.84,"y":835.69,"width":91.94,"height":91.94}},{"index":22,"itemType":"rect","itemName":"2-draw-chari3","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":414.57,"y":838.44,"width":91.94,"height":91.94}},{"index":23,"itemType":"rect","itemName":"2-draw-guitar","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":612.69,"y":817.76,"width":142.5,"height":142.5}},{"index":24,"itemType":"rect","itemName":"2-draw-table","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":320.34,"y":966.23,"width":134.23,"height":134.23}},{"index":25,"itemType":"rect","itemName":"2-draw-dargon","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":535,"y":967.15,"width":130.54,"height":130.54}},{"index":26,"itemType":"rect","itemName":"2-1-listen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":519.83,"y":1311.44,"width":27.58,"height":27.58}},{"index":27,"itemType":"rect","itemName":"2-1-a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":182.43,"y":1467.73,"width":19.3,"height":19.3}},{"index":28,"itemType":"rect","itemName":"2-1-b","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":400.32,"y":1468.66,"width":19.3,"height":19.3}},{"index":29,"itemType":"rect","itemName":"2-1-c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":604.87,"y":1468.66,"width":19.3,"height":19.3}},{"index":30,"itemType":"rect","itemName":"2-1-d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":188.86,"y":1647,"width":19.3,"height":19.3}},{"index":31,"itemType":"rect","itemName":"2-1-e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":384.69,"y":1647,"width":19.3,"height":19.3}},{"index":32,"itemType":"rect","itemName":"2-1-f","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":585.57,"y":1647.46,"width":19.3,"height":19.3}},{"index":33,"itemType":"rect","itemName":"2-1-g","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":794.71,"y":1647,"width":19.3,"height":19.3}},{"index":34,"itemType":"rect","itemName":"2-2-1","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":355.27,"y":1751.82,"width":23.91,"height":23.91}},{"index":35,"itemType":"rect","itemName":"2-2-2","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":295.05,"y":1795.03,"width":23.91,"height":23.91}},{"index":36,"itemType":"rect","itemName":"2-2-3","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":297.35,"y":1839.15,"width":23.91,"height":23.91}},{"index":37,"itemType":"rect","itemName":"2-2-4","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":316.65,"y":1881.44,"width":23.91,"height":23.91}},{"index":38,"itemType":"rect","itemName":"2-2-5","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":289.99,"y":1924.65,"width":23.91,"height":23.91}},{"index":39,"itemType":"rect","itemName":"2-2-a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":514.31,"y":1754.11,"width":23.91,"height":23.91}},{"index":40,"itemType":"rect","itemName":"2-2-b","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":513.39,"y":1792.26,"width":23.91,"height":23.91}},{"index":41,"itemType":"rect","itemName":"2-2-c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":515.69,"y":1839.15,"width":23.91,"height":23.91}},{"index":42,"itemType":"rect","itemName":"2-2-d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":514.77,"y":1880.07,"width":23.91,"height":23.91}},{"index":43,"itemType":"rect","itemName":"2-2-e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":515.69,"y":1924.65,"width":23.91,"height":23.91}},{"index":44,"itemType":"rect","itemName":"2-2-结果","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":620.04,"y":1703.09,"width":29.41,"height":29.41}},{"index":45,"itemType":"rect","itemName":"1-result_chari","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":394.85,"y":716.68,"width":34.69,"height":34.69}},{"index":46,"itemType":"rect","itemName":"1-result_table","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":381.58,"y":759.54,"width":34.69,"height":34.69}},{"index":47,"itemType":"rect","itemName":"1-result_guitar","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":740.72,"y":718.72,"width":34.69,"height":34.69}},{"index":48,"itemType":"rect","itemName":"2-result_dargon","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":866.22,"y":764.64,"width":34.69,"height":34.69}},{"index":49,"itemType":"rect","itemName":"1-result_pen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":621.35,"y":536.09,"width":34.69,"height":34.69}},{"index":50,"itemType":"rect","itemName":"1-result_bag","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.746875,"imgScale":1,"mapScale":0.746875,"rect":{"x":155.08,"y":616.7,"width":34.69,"height":34.69}}],"hotZoneConfigArr":[{"hotZoneType":"14","linkHotZoneIndex":11,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"14","linkHotZoneIndex":8,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"14","linkHotZoneIndex":9,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"14","linkHotZoneIndex":10,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"14","linkHotZoneIndex":7,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"14","linkHotZoneIndex":12,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"6","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[{"uuid":"ad785ab6-579a-4062-bf4b-283ac05258cb","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":0,"selectEndHotZoneIndex":13,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"54e469ec-bae0-4a57-b945-a373efb31ace","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":2,"selectEndHotZoneIndex":15,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"6977a576-bf2b-4010-a56c-442bbc7579bf","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":3,"selectEndHotZoneIndex":16,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"4ec8cda9-f296-4068-90a3-8224e9302663","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":5,"selectEndHotZoneIndex":18,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"5ce29f82-4613-4b01-b8b6-69ac6371fabe","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":6,"selectEndHotZoneIndex":14,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"d13a0caf-5a46-40c3-8d28-23e45a67b5b0","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":4,"selectEndHotZoneIndex":17,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false}],"linkResultShowHotZoneIndex":19},{"hotZoneType":"15","linkHotZoneIndex":20,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_blue"],"linkResultShowHotZoneIndex":45},{"hotZoneType":"15","linkHotZoneIndex":21,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_blue"],"linkResultShowHotZoneIndex":45},{"hotZoneType":"15","linkHotZoneIndex":22,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_blue"],"linkResultShowHotZoneIndex":45},{"hotZoneType":"15","linkHotZoneIndex":23,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_red"],"linkResultShowHotZoneIndex":47},{"hotZoneType":"15","linkHotZoneIndex":24,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_yellow"],"linkResultShowHotZoneIndex":46},{"hotZoneType":"15","linkHotZoneIndex":25,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_green"],"linkResultShowHotZoneIndex":48},{"hotZoneType":"2","linkHotZoneIndex":26,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":27,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"a","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":28,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"d","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":29,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"g","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":30,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"f","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":31,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"b","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":32,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"e","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":33,"audio_url":"","video_url":"","score":"1","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"c","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"6","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[{"uuid":"00089a06-cd00-4f30-b73c-ea8c6b53824f","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":34,"selectEndHotZoneIndex":40,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"a8f5aa64-e0de-49e3-bcc2-215079b3ecc8","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":35,"selectEndHotZoneIndex":39,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"6a25ab58-e87a-404f-b617-0ddd9c239521","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":36,"selectEndHotZoneIndex":43,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"c3b51d25-940e-4c75-af10-521130affff1","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":37,"selectEndHotZoneIndex":42,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false},{"uuid":"e24cb3ba-a10e-4c89-847b-5cd890030df3","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"1","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":38,"selectEndHotZoneIndex":41,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false}],"linkResultShowHotZoneIndex":44},{"hotZoneType":"","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]},{"hotZoneType":"","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[]}],"scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]}],"footer_image_url":"http://teach.cdn.ireadabc.com/d9c663628b45fff78be6076d6b48fe5c.jpg","alignMode":"left","lastModify":"2023-05-10T02:39:29.045Z","ratingSystem":null}
\ No newline at end of file
export const defaultData ={"alignMode":"left","scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0]}],"lastModify":"2023-05-10T11:43:49.430Z","hotZoneConfigArr":[{"hotZoneType":"17","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":true,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[{"text":"A","optionShowText":""},{"text":"B","optionShowText":""},{"text":"C","optionShowText":""},{"text":"D","optionShowText":""}],"contentList":[{"uuid":"aed81b71-c0b1-4dc9-810f-6b7c82e56a4b","text":"","selectOptionListIndex":"","selectOptionListIndexArr":[0,1],"optionShowText":"","image_url":"","hotZoneIndex":null,"score":"3","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false,"painterOnCenter":false,"selectHotZoneIndex":0},{"uuid":"d13dd08e-689c-405e-a8f1-2928d5d0107b","text":"","selectOptionListIndex":"","selectOptionListIndexArr":[1,3],"optionShowText":"","image_url":"","hotZoneIndex":null,"score":"2","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":null,"selectEndHotZoneIndex_1":null,"selectStartHotZoneIndex_2":null,"selectEndHotZoneIndex_2":null,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false,"painterOnCenter":false,"selectHotZoneIndex":1}]}],"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/8f0e978323b610ede55dd049574f5860.jpg","rect":{"x":0,"y":957.875,"width":1350,"height":3080.25}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-1","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":191,"y":2277.13,"width":56,"height":56}},{"index":1,"itemType":"rect","itemName":"1-2","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":336,"y":2278.13,"width":56,"height":56}}],"header_image_url":"http://staging-teach.cdn.ireadabc.com/2f46155edecb83ec07066be02bb792ad.jpg","footer_image_url":"http://staging-teach.cdn.ireadabc.com/d9c663628b45fff78be6076d6b48fe5c.jpg"}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment