Commit a84c7e31 authored by limingzhe's avatar limingzhe

fix: 结束没停事件

parent 34e94579
...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment