Commit 95dc95df authored by 李维's avatar 李维

dev commit

parent ee00f7c8
...@@ -573,9 +573,7 @@ cc.Class({ ...@@ -573,9 +573,7 @@ cc.Class({
const speakerNode = letterPageUINode.getChildByName('SpeakerNode'); const speakerNode = letterPageUINode.getChildByName('SpeakerNode');
speakerNode.on('click', async () => { speakerNode.on('click', async () => {
this.startSpeakerAnime(speakerNode); this.startSpeakerAnime(speakerNode);
await this.playEffect(`letter${this.letter.toUpperCase()}`); await this.playEffect(`letter${this.letter.toUpperCase()}`);
this.stopSpeakerAnime(speakerNode); this.stopSpeakerAnime(speakerNode);
}); });
...@@ -918,13 +916,16 @@ cc.Class({ ...@@ -918,13 +916,16 @@ cc.Class({
await this.fireworks() await this.fireworks()
this.playEffect('撒花'); this.playEffect('撒花');
await this.showCloud(); await this.showCloud();
this.pageFlyOut(); // console.log(this._status.currentLetterIdx, this.data.letterList.length-1)
console.log(this.letter, this.letter.toLowerCase())
if (this.letter !== this.letter.toLowerCase()) { if (this.letter !== this.letter.toLowerCase()) {
this.letter = this.letter.toLowerCase(); this.letter = this.letter.toLowerCase();
this.pageFlyOut();
this.createLetterPage(this.letter); this.createLetterPage(this.letter);
} else { } else {
this.loadNextLetter() if(this._status.currentLetterIdx != (this.data.letterList.length-1)) {
this.pageFlyOut();
this.loadNextLetter()
}
} }
}, },
......
module.exports = { module.exports = {
letterList: [ letterList: [
'I', 'K',
'J' 'L'
] ]
} }
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