Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ
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_NJ
Commits
998f34cc
Commit
998f34cc
authored
May 26, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
e0779c1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
middleLayer.ts
assets/middleLayer_for_NJ/script/middleLayer.ts
+20
-9
No files found.
assets/middleLayer_for_NJ/script/middleLayer.ts
View file @
998f34cc
...
@@ -69,6 +69,17 @@ export default class NewClass extends middleLayerBase {
...
@@ -69,6 +69,17 @@ export default class NewClass extends middleLayerBase {
}
}
async
onHomeworkFinish
(
callBack
,
data
=
null
)
{
async
onHomeworkFinish
(
callBack
,
data
=
null
)
{
console
.
log
(
"
================
"
);
console
.
log
(
"
================
"
);
// 上报成绩
// 如果不是最后一页,跳转到下一页
// 如果是part 的最后一页课件,播放获得拼读小伙的动画
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
this
.
playGetParterAnim
();
}
// 如果是最后一个part,要解锁下一个文件夹
}
playGetParterAnim
()
{
}
}
hideWaitingLetters
()
{
hideWaitingLetters
()
{
cc
.
find
(
'
middleLayer/loadingLayer
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/loadingLayer
'
).
active
=
false
;
...
@@ -136,8 +147,8 @@ export default class NewClass extends middleLayerBase {
...
@@ -136,8 +147,8 @@ export default class NewClass extends middleLayerBase {
}
}
initListener
()
{
initListener
()
{
const
exitBtn
=
cc
.
find
(
'
middleLayer/ExitBtn
'
);
const
exitBtn
=
cc
.
find
(
'
middleLayer/ExitBtn
'
);
buttonOnClick
(
exitBtn
,
()
=>
{
buttonOnClick
(
exitBtn
,
()
=>
{
const
exit
=
()
=>
{
const
exit
=
()
=>
{
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
...
@@ -147,25 +158,25 @@ export default class NewClass extends middleLayerBase {
...
@@ -147,25 +158,25 @@ export default class NewClass extends middleLayerBase {
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
}
}
if
(
this
.
courseItem
&&
this
.
courseItem
.
template_name
==
"
NJ_game_select
"
)
{
if
(
this
.
courseItem
&&
this
.
courseItem
.
template_name
==
"
NJ_game_select
"
)
{
// 如果是纸书索引页面则直接返回
// 如果是纸书索引页面则直接返回
exit
();
exit
();
}
else
{
}
else
{
this
.
showConfirm
(
"
还没有完成哦!确定离开吗?
"
,
()
=>
{
this
.
showConfirm
(
"
还没有完成哦!确定离开吗?
"
,
()
=>
{
exit
();
exit
();
});
});
}
}
});
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnRight
'
),
()
=>
{
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnRight
'
),
()
=>
{
this
.
showConfirm
(
"
还有任务没完成哦!确定跳过吗?
"
,
()
=>
{
this
.
showConfirm
(
"
还有任务没完成哦!确定跳过吗?
"
,
()
=>
{
this
.
goNextPage
();
this
.
goNextPage
();
});
});
});
});
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
buttonOnClick
(
cc
.
find
(
'
middleLayer/BtnLeft
'
),
()
=>
{
this
.
goPrePage
();
this
.
goPrePage
();
});
});
};
};
role
=
'
student
'
;
role
=
'
student
'
;
protected
onLoad
():
void
{
protected
onLoad
():
void
{
...
...
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