Commit 1a57c553 authored by 范雪寒's avatar 范雪寒

test: log

parent f05acbab
......@@ -178,6 +178,7 @@ cc.Class({
jumpToQuestion(questionIdx) {
const questionAudioUrl = this.data.question_arr[questionIdx].question_audio_url;
console.log('questionAudioUrl = ' + questionAudioUrl);
this.playAudioByUrl(questionAudioUrl);
const box = cc.find('Canvas/bg/box');
......@@ -398,6 +399,10 @@ cc.Class({
showSubmitBtn() {
const submitBtn = cc.find('Canvas/bg/btnSubmit');
if (submitBtn.showed) {
return;
}
submitBtn.showed = true;
cc.tween(submitBtn)
.by(1, { y: submitBtn.height })
.start();
......@@ -405,6 +410,10 @@ cc.Class({
hideSubmitBtn() {
const submitBtn = cc.find('Canvas/bg/btnSubmit');
if (!submitBtn.showed) {
return;
}
submitBtn.showed = false;
submitBtn.off('click');
cc.tween(submitBtn)
.by(1, { y: -submitBtn.height })
......
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