Commit ea501781 authored by 范雪寒's avatar 范雪寒

feat:

parent 8bb814cc
...@@ -157,15 +157,12 @@ cc.Class({ ...@@ -157,15 +157,12 @@ cc.Class({
}, },
refreshCoolCatPosition() { refreshCoolCatPosition() {
const cat = cc.find('Canvas/bg/catFrame/CoolCat');
const canvasWidth = cc.find('Canvas').width;
const canvasHeight = cc.find('Canvas').height;
}, },
jumpToQuestion(questionIdx) { jumpToQuestion(questionIdx) {
const audioUrl = this.data.question_arr[questionIdx].question_audio_url; const questionAudioUrl = this.data.question_arr[questionIdx].question_audio_url;
this.playAudioByUrl(audioUrl); this.playAudioByUrl(questionAudioUrl);
const box = cc.find('Canvas/bg/box'); const box = cc.find('Canvas/bg/box');
box.removeAllChildren(); box.removeAllChildren();
......
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