Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_JJ_F
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
middleLayer_for_JJ_F
Commits
3ddb60ab
Commit
3ddb60ab
authored
Jul 17, 2025
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
aec4e9a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
middleLayer.ts
assets/middleLayer_for_JJ_F/script/middleLayer.ts
+23
-1
studyRecord.js
assets/middleLayer_for_JJ_F/script/studyRecord.js
+2
-1
No files found.
assets/middleLayer_for_JJ_F/script/middleLayer.ts
View file @
3ddb60ab
...
@@ -604,7 +604,17 @@ export default class NewClass extends middleLayerBase {
...
@@ -604,7 +604,17 @@ export default class NewClass extends middleLayerBase {
const
score
=
this
.
studyRecord
.
getTotalAverageAudioScore
();
const
score
=
this
.
studyRecord
.
getTotalAverageAudioScore
();
this
.
showSRResult
(
score
)
this
.
showSRResult
(
score
)
}
}
}
showSRResultByQuestion
()
{
if
(
this
.
studyRecord
)
{
this
.
studyRecordModel
.
recordData
=
this
.
studyRecord
.
getAllQuestionResults
();
const
score
=
this
.
studyRecord
.
getAverageScore
();
this
.
showSRResult
(
score
)
}
}
}
showSRResult
(
score
)
{
showSRResult
(
score
)
{
...
@@ -613,7 +623,19 @@ export default class NewClass extends middleLayerBase {
...
@@ -613,7 +623,19 @@ export default class NewClass extends middleLayerBase {
// this.studyRecord.showResult();
// this.studyRecord.showResult();
}
}
}
}
setTotalQuestions
(
total
)
{
if
(
this
.
studyRecord
)
{
this
.
studyRecord
.
setTotalQuestions
(
total
);
}
}
setQuestionResult
(
index
,
score
)
{
if
(
this
.
studyRecord
)
{
this
.
studyRecord
.
setQuestionResult
(
index
,
score
);
}
}
reportData
()
{
reportData
()
{
console
.
log
(
'
reportData 1
'
);
console
.
log
(
'
reportData 1
'
);
...
...
assets/middleLayer_for_JJ_F/script/studyRecord.js
View file @
3ddb60ab
...
@@ -237,7 +237,8 @@ class StudyRecord {
...
@@ -237,7 +237,8 @@ class StudyRecord {
totalScore
+=
this
.
questionResults
[
index
];
totalScore
+=
this
.
questionResults
[
index
];
}
}
}
}
return
totalScore
/
answeredCount
;
// 四舍五入
return
Math
.
round
(
totalScore
/
answeredCount
);
}
}
/**
/**
...
...
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