Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_iplayabc
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_iplayabc
Commits
61ef169b
Commit
61ef169b
authored
Mar 28, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
5524a861
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
middleLayer.js
assets/middleLayer_for_iplayabc/script/middleLayer.js
+7
-1
No files found.
assets/middleLayer_for_iplayabc/script/middleLayer.js
View file @
61ef169b
...
...
@@ -82,6 +82,7 @@ cc.Class({
},
start
()
{
this
.
turnPageWait
=
0
;
this
.
node
.
zIndex
=
9999
;
cc
.
game
.
addPersistRootNode
(
this
.
node
);
this
.
initListener
();
...
...
@@ -674,6 +675,7 @@ cc.Class({
.
start
();
},
turnPageWait
,
reWriteAir
()
{
window
.
courseware
.
getData
=
(
callback
)
=>
{
let
data
=
null
;
...
...
@@ -684,13 +686,17 @@ cc.Class({
callback
&&
callback
(
data
);
}
window
.
courseware
.
nextPage
=
()
=>
{
setTimeout
(()
=>
{
this
.
goNextPage
();
},
this
.
turnPageWait
);
this
.
turnPageWait
=
0
;
}
window
.
courseware
.
beforePage
=
()
=>
{
this
.
goPrePage
();
}
window
.
courseware
.
sendAnswer
=
(
answerObj
)
=>
{
this
.
log
(
"
===成功调用sendAnswer===
"
+
JSON
.
stringify
(
answerObj
));
this
.
turnPageWait
=
2000
;
this
.
addStar
(
3
,
true
);
// 上报成绩则获得三颗星星并展示动画
this
.
callNetworkApiPost
(
this
.
baseApiUrl
,
`v1/terminal/save/answer`
,
{
syllabus_id
:
this
.
courseItem
.
course_id
,
...
...
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