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

test: log

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