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
81e5273d
Commit
81e5273d
authored
Jul 11, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复判断对错题型分值默认2分的问题
parent
5728826d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+2
-2
historyData_DG_FAF.ts
assets/DG_FAF/script/historyData_DG_FAF.ts
+20
-20
No files found.
assets/DG_FAF/scene/DG_FAF.ts
View file @
81e5273d
...
@@ -746,7 +746,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -746,7 +746,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
validater
=
this
.
setHotZoneCheckboxGroup
(
configItem
,
isDebug
);
validater
=
this
.
setHotZoneCheckboxGroup
(
configItem
,
isDebug
);
this
.
scoreValidater
.
push
(
validater
);
this
.
scoreValidater
.
push
(
validater
);
break
;
break
;
// 连线组
// 连线组
[做题 - 显示]
case
CONNECTION
:
case
CONNECTION
:
validater
=
this
.
setConnectionGroup
(
configItem
,
isDebug
);
validater
=
this
.
setConnectionGroup
(
configItem
,
isDebug
);
this
.
scoreValidater
.
push
(
validater
);
this
.
scoreValidater
.
push
(
validater
);
...
@@ -1397,7 +1397,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1397,7 +1397,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
result
.
detail
.
correctSelect
.
push
(
option
.
isCorrect
);
result
.
detail
.
correctSelect
.
push
(
option
.
isCorrect
);
if
(
option
.
isCorrect
==
currentCheckList
[
index
].
checked
)
{
if
(
option
.
isCorrect
==
currentCheckList
[
index
].
checked
)
{
// 正确 返回分数
// 正确 返回分数
result
.
score
+=
option
.
score
&&
!
isNaN
(
Number
(
option
.
score
))
?
Number
(
option
.
score
)
:
2
;
result
.
score
+=
option
.
score
&&
!
isNaN
(
Number
(
option
.
score
))
?
Number
(
option
.
score
)
:
0
;
}
else
{
}
else
{
// 错误
// 错误
result
.
detail
.
right
=
false
;
result
.
detail
.
right
=
false
;
...
...
assets/DG_FAF/script/historyData_DG_FAF.ts
View file @
81e5273d
...
@@ -1077,28 +1077,28 @@ export const historyData = {
...
@@ -1077,28 +1077,28 @@ export const historyData = {
"
contentType
"
:
"
0
"
,
"
contentType
"
:
"
0
"
,
"
configIndex
"
:
12
,
"
configIndex
"
:
12
,
"
contentIndex
"
:
0
,
"
contentIndex
"
:
0
,
"
currentSelectIndex
"
:
null
,
"
currentSelectIndex
"
:
0
,
"
currentSelectText
"
:
""
,
"
currentSelectText
"
:
"
can
"
,
"
correctSelectIndex
"
:
0
,
"
correctSelectIndex
"
:
0
,
"
correctSelectText
"
:
""
,
"
correctSelectText
"
:
""
,
"
right
"
:
fals
e
"
right
"
:
tru
e
},
},
{
{
"
contentType
"
:
"
0
"
,
"
contentType
"
:
"
0
"
,
"
configIndex
"
:
12
,
"
configIndex
"
:
12
,
"
contentIndex
"
:
1
,
"
contentIndex
"
:
1
,
"
currentSelectIndex
"
:
null
,
"
currentSelectIndex
"
:
1
,
"
currentSelectText
"
:
""
,
"
currentSelectText
"
:
"
can't
"
,
"
correctSelectIndex
"
:
1
,
"
correctSelectIndex
"
:
1
,
"
correctSelectText
"
:
""
,
"
correctSelectText
"
:
""
,
"
right
"
:
fals
e
"
right
"
:
tru
e
},
},
{
{
"
contentType
"
:
"
0
"
,
"
contentType
"
:
"
0
"
,
"
configIndex
"
:
12
,
"
configIndex
"
:
12
,
"
contentIndex
"
:
2
,
"
contentIndex
"
:
2
,
"
currentSelectIndex
"
:
null
,
"
currentSelectIndex
"
:
0
,
"
currentSelectText
"
:
""
,
"
currentSelectText
"
:
"
can
"
,
"
correctSelectIndex
"
:
2
,
"
correctSelectIndex
"
:
2
,
"
correctSelectText
"
:
""
,
"
correctSelectText
"
:
""
,
"
right
"
:
false
"
right
"
:
false
...
@@ -1107,8 +1107,8 @@ export const historyData = {
...
@@ -1107,8 +1107,8 @@ export const historyData = {
"
contentType
"
:
"
0
"
,
"
contentType
"
:
"
0
"
,
"
configIndex
"
:
12
,
"
configIndex
"
:
12
,
"
contentIndex
"
:
3
,
"
contentIndex
"
:
3
,
"
currentSelectIndex
"
:
null
,
"
currentSelectIndex
"
:
1
,
"
currentSelectText
"
:
""
,
"
currentSelectText
"
:
"
can't
"
,
"
correctSelectIndex
"
:
3
,
"
correctSelectIndex
"
:
3
,
"
correctSelectText
"
:
""
,
"
correctSelectText
"
:
""
,
"
right
"
:
false
"
right
"
:
false
...
@@ -1123,8 +1123,8 @@ export const historyData = {
...
@@ -1123,8 +1123,8 @@ export const historyData = {
"
startText
"
:
""
,
"
startText
"
:
""
,
"
correctEndIndex
"
:
0
,
"
correctEndIndex
"
:
0
,
"
correctEndText
"
:
""
,
"
correctEndText
"
:
""
,
"
currentEndIndex
"
:
2
,
"
currentEndIndex
"
:
-
1
,
"
currentEndText
"
:
"
a
"
,
"
currentEndText
"
:
""
,
"
right
"
:
false
"
right
"
:
false
},
},
{
{
...
@@ -1132,8 +1132,8 @@ export const historyData = {
...
@@ -1132,8 +1132,8 @@ export const historyData = {
"
startText
"
:
""
,
"
startText
"
:
""
,
"
correctEndIndex
"
:
1
,
"
correctEndIndex
"
:
1
,
"
correctEndText
"
:
""
,
"
correctEndText
"
:
""
,
"
currentEndIndex
"
:
0
,
"
currentEndIndex
"
:
-
1
,
"
currentEndText
"
:
"
b
"
,
"
currentEndText
"
:
""
,
"
right
"
:
false
"
right
"
:
false
},
},
{
{
...
@@ -1170,14 +1170,14 @@ export const historyData = {
...
@@ -1170,14 +1170,14 @@ export const historyData = {
15
,
15
,
16
16
],
],
"
score
"
:
0
"
score
"
:
2
}
}
],
],
"
basicScore
"
:
0
,
"
basicScore
"
:
0
,
"
totalScore
"
:
0
,
"
totalScore
"
:
2
,
"
isAllRight
"
:
false
,
"
isAllRight
"
:
false
,
"
isAllWrong
"
:
tru
e
,
"
isAllWrong
"
:
fals
e
,
"
startTimestamp
"
:
1689057
128454
,
"
startTimestamp
"
:
1689057
318710
,
"
submitTimestamp
"
:
168905
7136559
,
"
submitTimestamp
"
:
168905
8114291
,
"
answeringTime
"
:
8105
"
answeringTime
"
:
795581
}
}
\ No newline at end of file
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