Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
DG_FAF
Commits
52cca651
Commit
52cca651
authored
Feb 20, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加多选组
parent
7442388e
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
476 additions
and
89 deletions
+476
-89
SelectModal.prefab
assets/DG_FAF/prefabs/SelectModal/SelectModal.prefab
+13
-13
DG_FAF.fire
assets/DG_FAF/scene/DG_FAF.fire
+194
-8
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+133
-34
defaultData_DG_FAF.ts
assets/DG_FAF/script/defaultData_DG_FAF.ts
+1
-1
icon_right.png
assets/DG_FAF/textures/icon_right.png
+0
-0
icon_right.png.meta
assets/DG_FAF/textures/icon_right.png.meta
+36
-0
icon_wrong.png
assets/DG_FAF/textures/icon_wrong.png
+0
-0
icon_wrong.png.meta
assets/DG_FAF/textures/icon_wrong.png.meta
+36
-0
form.component.html
form_angular/src/app/form/form.component.html
+33
-21
form.component.ts
form_angular/src/app/form/form.component.ts
+30
-12
No files found.
assets/DG_FAF/prefabs/SelectModal/SelectModal.prefab
View file @
52cca651
...
@@ -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
...
...
assets/DG_FAF/scene/DG_FAF.fire
View file @
52cca651
...
@@ -93,13 +93,13 @@
...
@@ -93,13 +93,13 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 63
4
"__id__": 63
8
},
},
{
{
"__id__": 63
5
"__id__": 63
9
},
},
{
{
"__id__": 6
36
"__id__": 6
40
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -22869,7 +22869,7 @@
...
@@ -22869,7 +22869,7 @@
"__id__": 616
"__id__": 616
},
},
{
{
"__id__": 63
1
"__id__": 63
5
}
}
],
],
"_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__": 63
2
"__id__": 63
6
}
}
],
],
"_active": true,
"_active": true,
...
@@ -23854,13 +24040,13 @@
...
@@ -23854,13 +24040,13 @@
"_name": "btn",
"_name": "btn",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 63
1
"__id__": 63
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 63
3
"__id__": 63
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -23916,7 +24102,7 @@
...
@@ -23916,7 +24102,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 63
2
"__id__": 63
6
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
assets/DG_FAF/scene/DG_FAF.ts
View file @
52cca651
This diff is collapsed.
Click to expand it.
assets/DG_FAF/script/defaultData_DG_FAF.ts
View file @
52cca651
...
@@ -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
assets/DG_FAF/textures/icon_right.png
0 → 100644
View file @
52cca651
998 Bytes
assets/DG_FAF/textures/icon_right.png.meta
0 → 100644
View file @
52cca651
{
"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
assets/DG_FAF/textures/icon_wrong.png
0 → 100644
View file @
52cca651
889 Bytes
assets/DG_FAF/textures/icon_wrong.png.meta
0 → 100644
View file @
52cca651
{
"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
form_angular/src/app/form/form.component.html
View file @
52cca651
This diff is collapsed.
Click to expand it.
form_angular/src/app/form/form.component.ts
View file @
52cca651
...
@@ -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
)
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment