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

dev commit

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