Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
czh_test_001
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
czh_test_001
Commits
e2bb69df
Commit
e2bb69df
authored
May 28, 2022
by
chenzihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
64b520cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
czh_test_001.ts
assets/czh_test_001/scene/czh_test_001.ts
+14
-5
No files found.
assets/czh_test_001/scene/czh_test_001.ts
View file @
e2bb69df
...
@@ -516,14 +516,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -516,14 +516,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
moveOutOkBtn
();
this
.
moveOutOkBtn
();
this
.
showWhiteNode
();
this
.
showWhiteNode
();
let
timeout
=
false
if
((
<
any
>
window
).
courseware
&&
(
<
any
>
window
).
courseware
.
stopTest
)
{
if
((
<
any
>
window
).
courseware
&&
(
<
any
>
window
).
courseware
.
stopTest
)
{
this
.
scheduleOnce
(()
=>
{
timeout
=
true
;
this
.
reviewFail
();
},
3
);
(
<
any
>
window
).
courseware
.
stopTest
((
res
)
=>
{
(
<
any
>
window
).
courseware
.
stopTest
((
res
)
=>
{
if
(
!
timeout
)
{
this
.
unscheduleAllCallbacks
();
res
=
JSON
.
parse
(
res
)
res
=
JSON
.
parse
(
res
)
if
(
res
.
result
&&
res
.
result
.
overall
>=
80
)
{
if
(
res
.
result
&&
res
.
result
.
overall
>=
80
)
{
this
.
reviewSuccess
();
this
.
reviewSuccess
();
}
else
{
}
else
{
this
.
reviewFail
();
this
.
reviewFail
();
}
}
}
})
})
}
else
{
}
else
{
this
.
reviewFail
();
this
.
reviewFail
();
...
...
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