Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
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_kyxq
Commits
bf385f91
Commit
bf385f91
authored
Nov 13, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志信息
parent
6b46e1a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
middleLayer.ts
assets/middleLayer_for_kyxq/script/middleLayer.ts
+10
-3
No files found.
assets/middleLayer_for_kyxq/script/middleLayer.ts
View file @
bf385f91
...
...
@@ -239,24 +239,31 @@ export default class MiddleLayerClass extends middleLayerBase {
}
goNextPage
()
{
console
.
log
(
this
.
courseIndex
)
console
.
log
(
this
.
courses
.
length
)
console
.
log
(
"
this.crossArray
"
,
JSON
.
stringify
(
this
.
crossArray
))
if
(
this
.
courseIndex
<
this
.
courses
.
length
-
1
)
{
// 单页完成的庆祝画面
this
.
showGold
(()
=>
{
this
.
goTarIndexPage
(
this
.
courseIndex
+
1
);
});
}
if
(
this
.
courseIndex
>=
this
.
courses
.
length
){
}
else
if
(
this
.
courseIndex
>=
this
.
courses
.
length
){
const
lastCurse
=
this
.
crossArray
[
this
.
crossArray
.
length
-
1
];
console
.
log
(
"
KK
"
,
this
.
courseItem
.
course_id
,
lastCurse
.
id
)
if
(
this
.
courseItem
.
course_id
!=
lastCurse
.
id
)
{
console
.
log
(
"
showFinish
"
)
// 课件完成的庆祝画面
this
.
showFinish
();
// 上报解锁下一关
const
currentIndex
=
this
.
crossArray
.
findIndex
(
item
=>
item
.
id
==
this
.
courseItem
.
course_id
);
const
nextCourse
=
this
.
crossArray
[
currentIndex
+
1
];
console
.
log
(
"
currentIndex
"
,
currentIndex
)
console
.
log
(
"
nextCourse
"
,
nextCourse
)
console
.
log
(
"
nextCourse.id
"
,
nextCourse
.
id
)
this
.
unlockNext
(
nextCourse
.
id
);
}
else
{
// 所有课件都完成的庆祝动画
console
.
log
(
"
showAllFinish
"
)
this
.
showAllFinish
();
// 上报一个本节课完成
this
.
callNetworkApiPost
(
`/api/kyxq/v1/user/saveend`
,
{
...
...
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