Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-2
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
JM_4-2
Commits
a84c7e31
Commit
a84c7e31
authored
Aug 05, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 结束没停事件
parent
34e94579
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
play.component.ts
src/app/play/play.component.ts
+9
-6
No files found.
src/app/play/play.component.ts
View file @
a84c7e31
...
@@ -545,11 +545,17 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -545,11 +545,17 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
msgData
.
action
===
"
is_show_more
"
)
{
if
(
msgData
.
action
===
"
is_show_more
"
)
{
const
data
=
JSON
.
parse
(
msgData
.
data
);
const
data
=
JSON
.
parse
(
msgData
.
data
);
console
.
log
(
'
in is_show_more e:
'
,
e
);
console
.
log
(
'
in is_show_more data:
'
,
data
);
this
.
isShowMore
=
data
.
isShowMore
;
this
.
isShowMore
=
data
.
isShowMore
;
}
}
})
})
this
.
wrap
.
nativeElement
.
addEventListener
(
"
touchmove
"
,
(
e
)
=>
{
e
.
preventDefault
();
});
//禁止页面滑动
c
.
onEvent
(
'
course-in-screen
'
,
(
data
,
next
)
=>
{
c
.
onEvent
(
'
course-in-screen
'
,
(
data
,
next
)
=>
{
this
.
loadEnd
(()
=>
{
this
.
loadEnd
(()
=>
{
...
@@ -557,10 +563,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -557,10 +563,7 @@ export class PlayComponent implements OnInit, OnDestroy {
});
});
});
});
c
.
onEvent
(
'
is_show_more
'
,
(
data
)
=>
{
console
.
log
(
'
in is_show_more:
'
,
data
);
this
.
isShowMore
=
data
;
})
}
}
...
@@ -720,13 +723,13 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -720,13 +723,13 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
changeNextQuestion
();
this
.
changeNextQuestion
();
this
.
canTouch
=
false
;
const
time
=
0.2
;
const
time
=
0.2
;
tweenChange
(
this
.
tweenItem
,
{
submitOffY
:
1
},
time
/
2
,
()
=>
{
tweenChange
(
this
.
tweenItem
,
{
submitOffY
:
1
},
time
/
2
,
()
=>
{
this
.
canTouch
=
false
;
tweenChange
(
this
.
tweenItem
,
{
submitOffY
:
0
*
this
.
mapScale
},
time
/
2
,
()
=>
{
tweenChange
(
this
.
tweenItem
,
{
submitOffY
:
0
*
this
.
mapScale
},
time
/
2
,
()
=>
{
...
@@ -755,6 +758,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -755,6 +758,7 @@ export class PlayComponent implements OnInit, OnDestroy {
changeNextQuestion
()
{
changeNextQuestion
()
{
this
.
cleanAudio
();
this
.
cleanAudio
();
this
.
countDownReset
()
this
.
playHtmlAudio
(
'
assets/play/music/submit.mp3
'
);
this
.
playHtmlAudio
(
'
assets/play/music/submit.mp3
'
);
if
(
this
.
curPage
>=
this
.
totalPage
)
{
if
(
this
.
curPage
>=
this
.
totalPage
)
{
...
@@ -766,7 +770,6 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -766,7 +770,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
setCurSentenceData
();
this
.
setCurSentenceData
();
this
.
countDownReset
();
this
.
playSentenceAudio
();
this
.
playSentenceAudio
();
}
}
...
...
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