Commit ed1ffbec authored by limingzhe's avatar limingzhe

fix: debug

parent 134d8b12
...@@ -675,10 +675,10 @@ initMask() { ...@@ -675,10 +675,10 @@ initMask() {
this.isCheckPage = isCheckPage; this.isCheckPage = isCheckPage;
this.getPhotoData((data) => { // this.getPhotoData((data) => {
this.photoEnd(data); // this.photoEnd(data);
}, isCheckPage); // }, isCheckPage);
return; // return;
const cw = window.courseware; const cw = window.courseware;
if (!cw || !cw.openOsmoHandwriting) { if (!cw || !cw.openOsmoHandwriting) {
...@@ -1889,8 +1889,8 @@ showStartLight() { ...@@ -1889,8 +1889,8 @@ showStartLight() {
const animNode = this.curQues.starAnimaArr[0]; const animNode = this.curQues.starAnimaArr[0];
console.log('animNode: ', animNode); console.log('animNode: ', animNode);
playAudio(animNode.audioClip, () => { playAudio(animNode.audioClip, () => {
// this.testingFinger();
this.testingFinger();
this.curQues.starAnimaArr = null; this.curQues.starAnimaArr = null;
// this.curQuesVideoPlayEnd(); // this.curQuesVideoPlayEnd();
}) })
...@@ -2766,15 +2766,15 @@ showStartLight() { ...@@ -2766,15 +2766,15 @@ showStartLight() {
// if (true) { // if (true) {
this.setOneAnswerDataOption(colorDot, answerData); // this.setOneAnswerDataOption(colorDot, answerData);
console.log('answerData:' , answerData); // console.log('answerData:' , answerData);
this.showOptionAnswer(answerData); // this.showOptionAnswer(answerData);
// } else { // } else {
// this.setOneAnswerDataStar(colorDot, answerData); this.setOneAnswerDataStar(colorDot, answerData);
// console.log('answerData:' , answerData); console.log('answerData:' , answerData);
// this.showStarAnswer(answerData); this.showStarAnswer(answerData);
// } // }
...@@ -2926,8 +2926,29 @@ showStartLight() { ...@@ -2926,8 +2926,29 @@ showStartLight() {
}, },
showStar(animaNode) { showStar(animNode) {
console.log('show Star'); console.log('show Star');
if (animNode.isShowEnd) {
return;
}
animNode.isShowEnd = true;
const rectNode = animNode.rectNode;
this.playStarAnim(rectNode);
playAudio(this.rightClip, () => {
// this.playNextPageAudio();
if(this.isDestroy) {
return;
}
this.curQuesVideoPlayEnd();
})
this.stopTesting();
}, },
...@@ -3753,6 +3774,8 @@ showStartLight() { ...@@ -3753,6 +3774,8 @@ showStartLight() {
} }
animaNode.rectNode = rectNode;
rectNode.addComponent(cc.Button); rectNode.addComponent(cc.Button);
rectNode.on('click', () => { rectNode.on('click', () => {
if (rectNode.isClicked) { if (rectNode.isClicked) {
...@@ -3762,28 +3785,17 @@ showStartLight() { ...@@ -3762,28 +3785,17 @@ showStartLight() {
console.log('clicked'); console.log('clicked');
// if (animaNode.audioClip) { // this.playStarAnim(rectNode);
// cc.audioEngine.stopAllEffects(); // playAudio(this.rightClip, () => {
// cc.director.emit('STOP_ALL_AUDIO') // // this.playNextPageAudio();
// cc.audioEngine.playEffect(animaNode.audioClip, false, 0.8);
// }
this.playStarAnim(rectNode);
playAudio(this.rightClip, () => {
// this.playNextPageAudio();
if(this.isDestroy) {
return;
}
this.curQuesVideoPlayEnd();
})
// delayCall(1, () => {
// if(this.isDestroy) { // if(this.isDestroy) {
// return; // return;
// } // }
// this.curQuesVideoPlayEnd(); // this.curQuesVideoPlayEnd();
// }) // })
}); });
return animaNode; return animaNode;
......
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