Commit 52cca651 authored by 李维's avatar 李维

添加多选组

parent 7442388e
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "77yjWGUj9L9JQjaUmQfZkb", "fileId": "77yjWGUj9L9JQjaUmQfZkb",
"sync": false "sync": false
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "b5NruuQ2FMSa9QQ8+ggECe", "fileId": "b5NruuQ2FMSa9QQ8+ggECe",
"sync": false "sync": false
...@@ -628,7 +628,7 @@ ...@@ -628,7 +628,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "c78utlbbBBIbF5yJGy3tEH", "fileId": "c78utlbbBBIbF5yJGy3tEH",
"sync": false "sync": false
...@@ -734,7 +734,7 @@ ...@@ -734,7 +734,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "64m9RZa4lCJIliv6Qy8ur/", "fileId": "64m9RZa4lCJIliv6Qy8ur/",
"sync": false "sync": false
...@@ -806,7 +806,7 @@ ...@@ -806,7 +806,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "c2OYwxDYFNA4nfuyx+ZyKN", "fileId": "c2OYwxDYFNA4nfuyx+ZyKN",
"sync": false "sync": false
...@@ -1120,7 +1120,7 @@ ...@@ -1120,7 +1120,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "71B7P00TRJhZTUdd+0GJM2", "fileId": "71B7P00TRJhZTUdd+0GJM2",
"sync": false "sync": false
...@@ -1230,7 +1230,7 @@ ...@@ -1230,7 +1230,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "79+0xTFFdMNbMPbs5f2wKl", "fileId": "79+0xTFFdMNbMPbs5f2wKl",
"sync": false "sync": false
...@@ -1335,7 +1335,7 @@ ...@@ -1335,7 +1335,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "1ayqMQF8pPIJsypD+Tj9hX", "fileId": "1ayqMQF8pPIJsypD+Tj9hX",
"sync": false "sync": false
...@@ -1414,7 +1414,7 @@ ...@@ -1414,7 +1414,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "43M0qAOatLAqpcP/cXI99s", "fileId": "43M0qAOatLAqpcP/cXI99s",
"sync": false "sync": false
...@@ -1486,7 +1486,7 @@ ...@@ -1486,7 +1486,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "a90SuvXyRNvZtZvMzm8tpA", "fileId": "a90SuvXyRNvZtZvMzm8tpA",
"sync": false "sync": false
...@@ -1497,7 +1497,7 @@ ...@@ -1497,7 +1497,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "6cmpk1VftCWKqsECTkvrhc", "fileId": "6cmpk1VftCWKqsECTkvrhc",
"sync": false "sync": false
...@@ -1540,7 +1540,7 @@ ...@@ -1540,7 +1540,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "8eZucYzN9MZr8kudP4es30", "fileId": "8eZucYzN9MZr8kudP4es30",
"sync": false "sync": false
...@@ -1565,7 +1565,7 @@ ...@@ -1565,7 +1565,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__id__": 0 "__uuid__": "5df55558-61c8-45bd-8838-81235266b1bb"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
......
...@@ -93,13 +93,13 @@ ...@@ -93,13 +93,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 634 "__id__": 638
}, },
{ {
"__id__": 635 "__id__": 639
}, },
{ {
"__id__": 636 "__id__": 640
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -22869,7 +22869,7 @@ ...@@ -22869,7 +22869,7 @@
"__id__": 616 "__id__": 616
}, },
{ {
"__id__": 631 "__id__": 635
} }
], ],
"_active": false, "_active": false,
...@@ -23105,6 +23105,12 @@ ...@@ -23105,6 +23105,12 @@
}, },
{ {
"__id__": 629 "__id__": 629
},
{
"__id__": 631
},
{
"__id__": 633
} }
], ],
"_active": true, "_active": true,
...@@ -23787,6 +23793,186 @@ ...@@ -23787,6 +23793,186 @@
"_atlas": null, "_atlas": null,
"_id": "f4EIsoWE9P6aWTCYU7/FMu" "_id": "f4EIsoWE9P6aWTCYU7/FMu"
}, },
{
"__type__": "cc.Node",
"_name": "icon_wrong",
"_objFlags": 0,
"_parent": {
"__id__": 616
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 632
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 45
},
"_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": "39N3KgYa9G/KoO4/lUgqtm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 631
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "934d254b-29c9-4987-a09b-314198835887"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6I4WPSptOLqUb0kY8Syte"
},
{
"__type__": "cc.Node",
"_name": "icon_right",
"_objFlags": 0,
"_parent": {
"__id__": 616
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 634
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 54,
"height": 49
},
"_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": "4biCQ3VDhFQ6kO4s9/kAAj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 633
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1ba51e0d-5386-4dc8-b837-9984da6987e7"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7brjZGrclPOL8ddRVffni9"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "audio",
...@@ -23796,7 +23982,7 @@ ...@@ -23796,7 +23982,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 632 "__id__": 636
} }
], ],
"_active": true, "_active": true,
...@@ -23854,13 +24040,13 @@ ...@@ -23854,13 +24040,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 631 "__id__": 635
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 633 "__id__": 637
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -23916,7 +24102,7 @@ ...@@ -23916,7 +24102,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 632 "__id__": 636
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
This diff is collapsed.
...@@ -135,4 +135,4 @@ ...@@ -135,4 +135,4 @@
// "typeArr": [] // "typeArr": []
// } // }
export const defaultData = {"hotZoneConfigArr":[{"linkHotZoneIndex":0,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"2","audio_url":"http://staging-teach.cdn.ireadabc.com/2bf96923b83ee0c5f20930386ce07384.mp3","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"1","isCorrect":true},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":2,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":2,"isCorrect":true},{"text":"","image_url":"","hotZoneIndex":null,"score":0,"selectHotZoneIndex":3}],"hotZoneType":"3","score":"2"},{"linkHotZoneIndex":4,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"4","inputText":"Hello World"},{"linkHotZoneIndex":9,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":10,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"}],"scoreConfigArr":[{"linkHotZoneIndex":7,"linkHotZoneIndexArr":[4,5,1]},{"linkHotZoneIndex":8,"linkHotZoneIndexArr":[2]}],"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5c84b987ea2291c8d6013fffd39dda32.png","rect":{"x":208.36755646817255,"y":0,"width":1361.264887063655,"height":1916}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-音频","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":505.14,"y":248.57,"width":51.78,"height":51.78}},{"index":1,"itemType":"rect","itemName":"1-1选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":260.6,"y":512.66,"width":46.04,"height":46.04}},{"index":2,"itemType":"rect","itemName":"2-1Alex","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":189.26,"y":659.38,"width":71.35,"height":42.58}},{"index":3,"itemType":"rect","itemName":"2-1Anna","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":269.81,"y":660.52,"width":89.75,"height":40.27}},{"index":4,"itemType":"rect","itemName":"3-1输入文本","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":567.86,"y":1207.14,"width":230.14,"height":44.88}},{"index":5,"itemType":"rect","itemName":"提交按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":768.9,"y":1737.78,"width":172.6,"height":51.78}},{"index":6,"itemType":"rect","itemName":"重做按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":399.37,"y":1740.94,"width":151.9,"height":47.18}},{"index":7,"itemType":"rect","itemName":"1得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":1197.33,"y":249.71,"width":85.15,"height":47.18}},{"index":8,"itemType":"rect","itemName":"2得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":1197.33,"y":598.4,"width":87.45,"height":44.88}},{"index":9,"itemType":"rect","itemName":"1-2选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":457.71,"y":513.38,"width":42.93,"height":42.93}},{"index":10,"itemType":"rect","itemName":"1-3选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.3890625,"imgScale":1,"mapScale":1.3890625,"rect":{"x":648.63,"y":511,"width":50,"height":50}}],"submitHotZoneIndex":5,"replayHotZoneIndex":6} export const defaultData = {"hotZoneConfigArr":[{"linkHotZoneIndex":0,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"2","audio_url":"http://staging-teach.cdn.ireadabc.com/2bf96923b83ee0c5f20930386ce07384.mp3","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"1","isCorrect":true},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":2,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":2,"isCorrect":true},{"text":"","image_url":"","hotZoneIndex":null,"score":0,"selectHotZoneIndex":3}],"hotZoneType":"3","score":"2"},{"linkHotZoneIndex":4,"contentList":[{"index":0,"text":"item-1"}],"hotZoneType":"5","inputText":"Hello World"},{"linkHotZoneIndex":9,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":10,"contentList":[{"index":0,"text":"1"},{"text":"2","image_url":"","hotZoneIndex":null,"score":0},{"text":"3","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":true}],"hotZoneType":"0","score":"1"},{"linkHotZoneIndex":1,"contentList":[{"index":0,"text":"item-1","selectHotZoneIndex":11,"isCorrect":true,"isCheck":true,"score":"4"},{"text":"","image_url":"","hotZoneIndex":null,"score":"3","selectHotZoneIndex":12,"isCorrect":true,"isCheck":true},{"text":"","image_url":"","hotZoneIndex":null,"score":"2","selectHotZoneIndex":13,"isCorrect":true,"isCheck":false}],"hotZoneType":"4"}],"scoreConfigArr":[{"linkHotZoneIndex":7,"linkHotZoneIndexArr":[4,5,1]},{"linkHotZoneIndex":8,"linkHotZoneIndexArr":[2]},{"linkHotZoneIndex":14,"linkHotZoneIndexArr":[6]}],"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5c84b987ea2291c8d6013fffd39dda32.png","rect":{"x":114.9517453798768,"y":0,"width":807.0965092402464,"height":1136}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-音频","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":299.5,"y":147.37,"width":30.7,"height":30.7}},{"index":1,"itemType":"rect","itemName":"1-1选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":154.51,"y":303.95,"width":27.3,"height":27.3}},{"index":2,"itemType":"rect","itemName":"2-1Alex","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":112.21,"y":390.95,"width":42.3,"height":25.25}},{"index":3,"itemType":"rect","itemName":"2-1Anna","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":159.97,"y":391.62,"width":53.21,"height":23.88}},{"index":4,"itemType":"rect","itemName":"3-1输入文本","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":336.69,"y":715.71,"width":136.45,"height":26.61}},{"index":5,"itemType":"rect","itemName":"提交按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":455.88,"y":1030.33,"width":102.33,"height":30.7}},{"index":6,"itemType":"rect","itemName":"重做按钮","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":236.78,"y":1032.21,"width":90.06,"height":27.97}},{"index":7,"itemType":"rect","itemName":"1得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":709.9,"y":148.05,"width":50.48,"height":27.97}},{"index":8,"itemType":"rect","itemName":"2得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":709.9,"y":354.79,"width":51.85,"height":26.61}},{"index":9,"itemType":"rect","itemName":"1-2选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":271.38,"y":304.38,"width":25.45,"height":25.45}},{"index":10,"itemType":"rect","itemName":"1-3选项","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":384.57,"y":302.97,"width":29.65,"height":29.65}},{"index":11,"itemType":"rect","itemName":"1-4","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":499.8,"y":302.98,"width":28.47,"height":28.47}},{"index":12,"itemType":"rect","itemName":"1-5","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":615.03,"y":302.3,"width":29.82,"height":29.82}},{"index":13,"itemType":"rect","itemName":"1-6","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":730.25,"y":302.98,"width":28.47,"height":28.47}},{"index":14,"itemType":"rect","itemName":"得分","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.81015625,"imgScale":1,"mapScale":0.81015625,"rect":{"x":714.66,"y":660.86,"width":36.6,"height":36.6}}],"submitHotZoneIndex":5,"replayHotZoneIndex":6,"isDebug":true}
\ No newline at end of file \ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3a1f81f0-1a93-48a3-91d5-10f6e3cb2110",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 70,
"height": 70,
"platformSettings": {},
"subMetas": {
"icon_right": {
"ver": "1.0.4",
"uuid": "1ba51e0d-5386-4dc8-b837-9984da6987e7",
"rawTextureUuid": "3a1f81f0-1a93-48a3-91d5-10f6e3cb2110",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 8,
"trimY": 10,
"width": 54,
"height": 49,
"rawWidth": 70,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bdee5803-b78d-42d3-8a66-fe73039a89b1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 70,
"height": 70,
"platformSettings": {},
"subMetas": {
"icon_wrong": {
"ver": "1.0.4",
"uuid": "934d254b-29c9-4987-a09b-314198835887",
"rawTextureUuid": "bdee5803-b78d-42d3-8a66-fe73039a89b1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 2,
"offsetY": -2.5,
"trimX": 17,
"trimY": 15,
"width": 40,
"height": 45,
"rawWidth": 70,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -47,11 +47,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -47,11 +47,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
} }
saveHotZone(group, e) { saveHotZone(group, e) {
console.log('e: ', e);
const {bgItem, hotZoneItemArr} = e; const {bgItem, hotZoneItemArr} = e;
group.bgItem = bgItem; group.bgItem = bgItem;
group.hotZoneItemArr = hotZoneItemArr; group.hotZoneItemArr = hotZoneItemArr;
this.save(); this.save();
this.nzMessageService.success('热区数据已保存');
} }
// 添加热区配置 // 添加热区配置
...@@ -60,24 +60,31 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -60,24 +60,31 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.item.hotZoneConfigArr = []; this.item.hotZoneConfigArr = [];
} }
this.item.hotZoneConfigArr.push({ this.item.hotZoneConfigArr.push({
linkHotZoneIndex: 1, linkHotZoneIndex: -1,
contentList: [ contentList: [
{
index: 0,
text: "item-1"
}
] ]
}) })
this.save() this.save()
} }
// 添加热区配置
deleteHotZoneConfig(index) {
if(!this.item.hotZoneConfigArr) {
this.item.hotZoneConfigArr = [];
return
}
this.item.hotZoneConfigArr.splice(index,1)
this.save()
}
// 添加热区内容配置 // 添加热区内容配置
addHotZoneConfigItem(it) { addHotZoneConfigItem(it) {
console.log(it.contentList)
if(!it.contentList) { if(!it.contentList) {
it.contentList = []; it.contentList = [];
} }
it.contentList = [ it.contentList = [
...it.contentList, ...it.contentList,
this.getDefaultConfigContentItem() this.getDefaultConfigContentItem()
...@@ -110,7 +117,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -110,7 +117,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
text: "", text: "",
image_url: "", image_url: "",
hotZoneIndex: null, hotZoneIndex: null,
score: 0 score: 0,
isCorrect: false,
isCheck: false
} }
} }
...@@ -148,11 +157,21 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -148,11 +157,21 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.item.scoreConfigArr = []; this.item.scoreConfigArr = [];
} }
this.item.scoreConfigArr.push({ this.item.scoreConfigArr.push({
linkHotZoneIndex: 1 linkHotZoneIndex: -1
}) })
this.save() this.save()
} }
// 删除分数组
deleteScoreConfig(index) {
if(!this.item.scoreConfigArr) {
this.item.scoreConfigArr = [];
return;
}
this.item.scoreConfigArr.splice(index, 1);
this.save()
}
// 复制数据 // 复制数据
copyChangeData() { copyChangeData() {
const jsonData = this.item; const jsonData = this.item;
...@@ -203,7 +222,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -203,7 +222,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
} }
onVideoUploadSuccess(e, item=null) { onVideoUploadSuccess(e, item=null) {
console.log(' in onVideoUploadSuccess')
if (!item) { if (!item) {
item = this.item; item = this.item;
} }
...@@ -217,7 +235,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -217,7 +235,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
save() { save() {
(<any>window).courseware.setData(this.item, null, this.saveKey); (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh(); this.refresh();
console.log('this.item = ' + JSON.stringify(this.item)); console.log(this.item)
} }
/** /**
......
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