Commit a84c7e31 authored by limingzhe's avatar limingzhe

fix: 结束没停事件

parent 34e94579
......@@ -545,11 +545,17 @@ export class PlayComponent implements OnInit, OnDestroy {
if (msgData.action === "is_show_more") {
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.wrap.nativeElement.addEventListener("touchmove", (e) => {
e.preventDefault();
});//禁止页面滑动
c.onEvent('course-in-screen', (data, next) => {
this.loadEnd(() => {
......@@ -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 {
this.changeNextQuestion();
this.canTouch = false;
const time = 0.2;
tweenChange(this.tweenItem, {submitOffY: 1}, time / 2, ()=> {
this.canTouch = false;
tweenChange(this.tweenItem, {submitOffY: 0 * this.mapScale}, time / 2, ()=> {
......@@ -755,6 +758,7 @@ export class PlayComponent implements OnInit, OnDestroy {
changeNextQuestion() {
this.cleanAudio();
this.countDownReset()
this.playHtmlAudio('assets/play/music/submit.mp3');
if (this.curPage >= this.totalPage) {
......@@ -766,7 +770,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this.setCurSentenceData();
this.countDownReset();
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