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
f42644eb
Commit
f42644eb
authored
May 05, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加二级连线题型
parent
f93e3ab1
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
479 additions
and
9 deletions
+479
-9
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+376
-6
defaultData_DG_FAF.ts
assets/DG_FAF/script/defaultData_DG_FAF.ts
+1
-1
main-es2015.js
form/main-es2015.js
+32
-0
main-es2015.js.map
form/main-es2015.js.map
+1
-1
main-es5.js
form/main-es5.js
+37
-0
main-es5.js.map
form/main-es5.js.map
+1
-1
form.component.ts
form_angular/src/app/form/form.component.ts
+31
-0
No files found.
assets/DG_FAF/scene/DG_FAF.ts
View file @
f42644eb
This diff is collapsed.
Click to expand it.
assets/DG_FAF/script/defaultData_DG_FAF.ts
View file @
f42644eb
export
const
defaultData
=
{
"
hotZoneConfigArr
"
:[{
"
hotZoneType
"
:
"
16
"
,
"
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
"
:
"
b6cd8072-9f74-40d0-9f89-bd67b52060f7
"
,
"
text
"
:
""
,
"
optionShowText
"
:
""
,
"
image_url
"
:
""
,
"
hotZoneIndex
"
:
null
,
"
score
"
:
"
6
"
,
"
isCorrect
"
:
false
,
"
isCheck
"
:
false
,
"
linkedShowText
"
:
""
,
"
selectStartHotZoneIndex
"
:
null
,
"
selectEndHotZoneIndex
"
:
null
,
"
selectEndHotZoneShowIndex
"
:
null
,
"
selectStartHotZoneIndex_1
"
:
0
,
"
selectEndHotZoneIndex_1
"
:
1
,
"
selectStartHotZoneIndex_2
"
:
2
,
"
selectEndHotZoneIndex_2
"
:
3
,
"
inputText
"
:
""
,
"
keyWordMatch
"
:
false
,
"
keyWordMatchInOrder
"
:
false
,
"
isCaseInsensitive
"
:
false
,
"
openAnswer
"
:
false
,
"
capitalizedFirstLetter
"
:
false
,
"
notAdaptContraction
"
:
false
,
"
textAlignLeft
"
:
false
}],
"
linkResultShowHotZoneIndex
"
:
4
},{
"
hotZoneType
"
:
"
15
"
,
"
linkHotZoneIndex
"
:
6
,
"
audio_url
"
:
""
,
"
video_url
"
:
""
,
"
score
"
:
"
66
"
,
"
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
"
,
"
color_orange
"
,
"
color_yellow
"
,
"
color_green
"
,
"
color_blue
"
,
"
color_purple
"
,
"
color_pink
"
],
"
drawingCheckStrictEqual
"
:
true
}],
"
bgItem
"
:{
"
rect
"
:{
"
x
"
:
124.37271750805587
,
"
y
"
:
0
,
"
width
"
:
1073.2545649838883
,
"
height
"
:
4996
},
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/d82192902671c1567c237f8b8b6c17b0.jpg
"
},
"
hotZoneItemArr
"
:[],
"
hotZoneBgSliceList
"
:[{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0e8c2d62dd2c2ce008a931ec24d87db9.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/6c9238d99ab6613e74e76cf817baae45.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3a159494342e25e0f4513108b065c22d.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/2f9451ae09101f0d0f30568814a30a53.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/5594532559d5cd73f2c08b8badbb25d9.png
"
}],
"
scoreConfigArr
"
:[{
"
linkHotZoneIndex
"
:
-
1
,
"
linkHotZoneIndexArr
"
:[
0
,
1
]}]}
export
const
defaultData
=
{
"
hotZoneConfigArr
"
:[{
"
hotZoneType
"
:
"
16
"
,
"
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
"
:
"
b6cd8072-9f74-40d0-9f89-bd67b52060f7
"
,
"
text
"
:
""
,
"
optionShowText
"
:
""
,
"
image_url
"
:
""
,
"
hotZoneIndex
"
:
null
,
"
score
"
:
"
6
"
,
"
isCorrect
"
:
false
,
"
isCheck
"
:
false
,
"
linkedShowText
"
:
""
,
"
selectStartHotZoneIndex
"
:
null
,
"
selectEndHotZoneIndex
"
:
null
,
"
selectEndHotZoneShowIndex
"
:
null
,
"
selectStartHotZoneIndex_1
"
:
0
,
"
selectEndHotZoneIndex_1
"
:
1
,
"
selectStartHotZoneIndex_2
"
:
2
,
"
selectEndHotZoneIndex_2
"
:
3
,
"
inputText
"
:
""
,
"
keyWordMatch
"
:
false
,
"
keyWordMatchInOrder
"
:
false
,
"
isCaseInsensitive
"
:
false
,
"
openAnswer
"
:
false
,
"
capitalizedFirstLetter
"
:
false
,
"
notAdaptContraction
"
:
false
,
"
textAlignLeft
"
:
false
},{
"
uuid
"
:
"
298f6e4b-639c-461d-a72b-1b57b0008cb7
"
,
"
text
"
:
""
,
"
optionShowText
"
:
""
,
"
image_url
"
:
""
,
"
hotZoneIndex
"
:
null
,
"
score
"
:
0
,
"
isCorrect
"
:
false
,
"
isCheck
"
:
false
,
"
linkedShowText
"
:
""
,
"
selectStartHotZoneIndex
"
:
null
,
"
selectEndHotZoneIndex
"
:
null
,
"
selectEndHotZoneShowIndex
"
:
null
,
"
selectStartHotZoneIndex_1
"
:
4
,
"
selectEndHotZoneIndex_1
"
:
5
,
"
selectStartHotZoneIndex_2
"
:
6
,
"
selectEndHotZoneIndex_2
"
:
7
,
"
inputText
"
:
""
,
"
keyWordMatch
"
:
false
,
"
keyWordMatchInOrder
"
:
false
,
"
isCaseInsensitive
"
:
false
,
"
openAnswer
"
:
false
,
"
capitalizedFirstLetter
"
:
false
,
"
notAdaptContraction
"
:
false
,
"
textAlignLeft
"
:
false
,
"
drawingCheckCorrectColors
"
:[],
"
drawingCheckStrictEqual
"
:
false
}],
"
linkResultShowHotZoneIndex
"
:
8
}],
"
bgItem
"
:{
"
rect
"
:{
"
x
"
:
138.37271750805587
,
"
y
"
:
0
,
"
width
"
:
1073.2545649838883
,
"
height
"
:
4996
},
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/d82192902671c1567c237f8b8b6c17b0.jpg
"
},
"
hotZoneItemArr
"
:[{
"
index
"
:
0
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
1
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
221.63
,
"
y
"
:
1235
,
"
width
"
:
28
,
"
height
"
:
28
}},{
"
index
"
:
1
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
2
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
274.63
,
"
y
"
:
1208
,
"
width
"
:
26
,
"
height
"
:
26
}},{
"
index
"
:
2
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
3
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
356.63
,
"
y
"
:
1206
,
"
width
"
:
26
,
"
height
"
:
26
}},{
"
index
"
:
3
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
4
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
404.63
,
"
y
"
:
1207
,
"
width
"
:
26
,
"
height
"
:
26
}},{
"
index
"
:
4
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
5
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
219.63
,
"
y
"
:
1266
,
"
width
"
:
32
,
"
height
"
:
32
}},{
"
index
"
:
5
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
6
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
266.63
,
"
y
"
:
1249
,
"
width
"
:
34
,
"
height
"
:
34
}},{
"
index
"
:
6
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
7
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
344.63
,
"
y
"
:
1252
,
"
width
"
:
32
,
"
height
"
:
32
}},{
"
index
"
:
7
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
8
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
396.63
,
"
y
"
:
1246
,
"
width
"
:
38
,
"
height
"
:
38
}},{
"
index
"
:
8
,
"
itemType
"
:
"
rect
"
,
"
itemName
"
:
"
9
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
1.0546875
,
"
imgScale
"
:
1
,
"
mapScale
"
:
1.0546875
,
"
rect
"
:{
"
x
"
:
75.63
,
"
y
"
:
1197
,
"
width
"
:
42
,
"
height
"
:
42
}}],
"
hotZoneBgSliceList
"
:[{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0e8c2d62dd2c2ce008a931ec24d87db9.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/6c9238d99ab6613e74e76cf817baae45.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3a159494342e25e0f4513108b065c22d.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/2f9451ae09101f0d0f30568814a30a53.png
"
},{
"
image_url
"
:
"
http://staging-teach.cdn.ireadabc.com/5594532559d5cd73f2c08b8badbb25d9.png
"
}],
"
scoreConfigArr
"
:[{
"
linkHotZoneIndex
"
:
-
1
,
"
linkHotZoneIndexArr
"
:[
0
]}]}
\ No newline at end of file
\ No newline at end of file
form/main-es2015.js
View file @
f42644eb
...
@@ -8800,6 +8800,38 @@ let FormComponent = /*@__PURE__*/ (() => {
...
@@ -8800,6 +8800,38 @@ let FormComponent = /*@__PURE__*/ (() => {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1}: 结果显示热区为空`);
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1}: 结果显示热区为空`);
}
}
break;
break;
// 2级连线组
case this.CONNECTION_2LEVEL:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
// 分数检查
if (contentItem.score != null && !isNaN(Number(contentItem.score)) && Number(contentItem.score) > 0) {
totalScore += Number(contentItem.score);
}
else {
scoreConfigErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 分数配置为0或者有异常`);
}
// 起点1热区配置检查
if (contentItem.selectStartHotZoneIndex_1 == null || contentItem.selectStartHotZoneIndex_1 == undefined || contentItem.selectStartHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线起点1热区为空`);
}
// 终点1热区配置检查
if (contentItem.selectEndHotZoneIndex_1 == null || contentItem.selectEndHotZoneIndex_1 == undefined || contentItem.selectEndHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线终点1热区为空`);
}
// 起点2热区配置检查
if (contentItem.selectStartHotZoneIndex_2 == null || contentItem.selectStartHotZoneIndex_2 == undefined || contentItem.selectStartHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线起点2热区为空`);
}
// 终点2热区配置检查
if (contentItem.selectEndHotZoneIndex_2 == null || contentItem.selectEndHotZoneIndex_2 == undefined || contentItem.selectEndHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线终点2热区为空`);
}
});
// 结果显示热区配置检查
if (hotZoneConfg.linkResultShowHotZoneIndex == null || hotZoneConfg.linkResultShowHotZoneIndex == undefined || hotZoneConfg.linkResultShowHotZoneIndex < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1}: 结果显示热区为空`);
}
break;
// 判断对错
// 判断对错
case this.RIGHT_OR_WRONG:
case this.RIGHT_OR_WRONG:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
...
...
form/main-es2015.js.map
View file @
f42644eb
This diff is collapsed.
Click to expand it.
form/main-es5.js
View file @
f42644eb
...
@@ -15681,6 +15681,43 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
...
@@ -15681,6 +15681,43 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, ": \u7ED3\u679C\u663E\u793A\u70ED\u533A\u4E3A\u7A7A"));
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, ": \u7ED3\u679C\u663E\u793A\u70ED\u533A\u4E3A\u7A7A"));
}
}
break;
// 2级连线组
case _this55.CONNECTION_2LEVEL:
hotZoneConfg.contentList.forEach(function (contentItem, contentIndex) {
// 分数检查
if (contentItem.score != null && !isNaN(Number(contentItem.score)) && Number(contentItem.score) > 0) {
totalScore += Number(contentItem.score);
} else {
scoreConfigErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u5206\u6570\u914D\u7F6E\u4E3A0\u6216\u8005\u6709\u5F02\u5E38"));
} // 起点1热区配置检查
if (contentItem.selectStartHotZoneIndex_1 == null || contentItem.selectStartHotZoneIndex_1 == undefined || contentItem.selectStartHotZoneIndex_1 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u8D77\u70B91\u70ED\u533A\u4E3A\u7A7A"));
} // 终点1热区配置检查
if (contentItem.selectEndHotZoneIndex_1 == null || contentItem.selectEndHotZoneIndex_1 == undefined || contentItem.selectEndHotZoneIndex_1 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u7EC8\u70B91\u70ED\u533A\u4E3A\u7A7A"));
} // 起点2热区配置检查
if (contentItem.selectStartHotZoneIndex_2 == null || contentItem.selectStartHotZoneIndex_2 == undefined || contentItem.selectStartHotZoneIndex_2 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u8D77\u70B92\u70ED\u533A\u4E3A\u7A7A"));
} // 终点2热区配置检查
if (contentItem.selectEndHotZoneIndex_2 == null || contentItem.selectEndHotZoneIndex_2 == undefined || contentItem.selectEndHotZoneIndex_2 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u7EC8\u70B92\u70ED\u533A\u4E3A\u7A7A"));
}
}); // 结果显示热区配置检查
if (hotZoneConfg.linkResultShowHotZoneIndex == null || hotZoneConfg.linkResultShowHotZoneIndex == undefined || hotZoneConfg.linkResultShowHotZoneIndex < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, ": \u7ED3\u679C\u663E\u793A\u70ED\u533A\u4E3A\u7A7A"));
}
break;
break;
// 判断对错
// 判断对错
form/main-es5.js.map
View file @
f42644eb
This diff is collapsed.
Click to expand it.
form_angular/src/app/form/form.component.ts
View file @
f42644eb
...
@@ -453,6 +453,37 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
...
@@ -453,6 +453,37 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 结果显示热区为空`
)
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 结果显示热区为空`
)
}
}
break
;
break
;
// 2级连线组
case
this
.
CONNECTION_2LEVEL
:
hotZoneConfg
.
contentList
.
forEach
((
contentItem
,
contentIndex
)
=>
{
// 分数检查
if
(
contentItem
.
score
!=
null
&&
!
isNaN
(
Number
(
contentItem
.
score
))
&&
Number
(
contentItem
.
score
)
>
0
)
{
totalScore
+=
Number
(
contentItem
.
score
);
}
else
{
scoreConfigErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
- 内容清单
${
contentIndex
+
1
}
: 分数配置为0或者有异常`
)
}
// 起点1热区配置检查
if
(
contentItem
.
selectStartHotZoneIndex_1
==
null
||
contentItem
.
selectStartHotZoneIndex_1
==
undefined
||
contentItem
.
selectStartHotZoneIndex_1
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
- 内容清单
${
contentIndex
+
1
}
: 连线起点1热区为空`
)
}
// 终点1热区配置检查
if
(
contentItem
.
selectEndHotZoneIndex_1
==
null
||
contentItem
.
selectEndHotZoneIndex_1
==
undefined
||
contentItem
.
selectEndHotZoneIndex_1
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
- 内容清单
${
contentIndex
+
1
}
: 连线终点1热区为空`
)
}
// 起点2热区配置检查
if
(
contentItem
.
selectStartHotZoneIndex_2
==
null
||
contentItem
.
selectStartHotZoneIndex_2
==
undefined
||
contentItem
.
selectStartHotZoneIndex_2
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
- 内容清单
${
contentIndex
+
1
}
: 连线起点2热区为空`
)
}
// 终点2热区配置检查
if
(
contentItem
.
selectEndHotZoneIndex_2
==
null
||
contentItem
.
selectEndHotZoneIndex_2
==
undefined
||
contentItem
.
selectEndHotZoneIndex_2
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
- 内容清单
${
contentIndex
+
1
}
: 连线终点2热区为空`
)
}
});
// 结果显示热区配置检查
if
(
hotZoneConfg
.
linkResultShowHotZoneIndex
==
null
||
hotZoneConfg
.
linkResultShowHotZoneIndex
==
undefined
||
hotZoneConfg
.
linkResultShowHotZoneIndex
<
0
)
{
hotZoneIndexErr
.
push
(
`内容
${
hotZoneConfigIndex
+
1
}
: 结果显示热区为空`
)
}
break
;
// 判断对错
// 判断对错
case
this
.
RIGHT_OR_WRONG
:
case
this
.
RIGHT_OR_WRONG
:
hotZoneConfg
.
contentList
.
forEach
((
contentItem
,
contentIndex
)
=>
{
hotZoneConfg
.
contentList
.
forEach
((
contentItem
,
contentIndex
)
=>
{
...
...
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