Commit 1a082355 authored by huoshizhe's avatar huoshizhe

feat:

parent de08cd60
...@@ -141,7 +141,8 @@ cc.Class({ ...@@ -141,7 +141,8 @@ cc.Class({
}, },
getDefaultData() { getDefaultData() {
const dataJson = ' [{"type":"0","txt":"对对对","pic_url":"http://staging-teach.cdn.ireadabc.com/ff3536cb7e11e2fa5f8b98425dc27735.png","audio_url":"http://staging-teach.cdn.ireadabc.com/6b13f8509a360476c26336029a1ce570.mp3"},{"txt":"11发发","pic_url":"http://staging-teach.cdn.ireadabc.com/e28666860c7d1ab255569201c6749a03.png"},{"txt":"11发发","pic_url":"http://staging-teach.cdn.ireadabc.com/e28666860c7d1ab255569201c6749a03.png"}]' // const dataJson = ' [{"type":"0","txt":"对对对","pic_url":"http://staging-teach.cdn.ireadabc.com/ff3536cb7e11e2fa5f8b98425dc27735.png","audio_url":"http://staging-teach.cdn.ireadabc.com/6b13f8509a360476c26336029a1ce570.mp3"},{"txt":"11发发","pic_url":"http://staging-teach.cdn.ireadabc.com/e28666860c7d1ab255569201c6749a03.png"},{"txt":"11发发","pic_url":"http://staging-teach.cdn.ireadabc.com/e28666860c7d1ab255569201c6749a03.png"}]'
const dataJson = ' [{"type":"0","txt":"对对对","pic_url":"http://staging-teach.cdn.ireadabc.com/ff3536cb7e11e2fa5f8b98425dc27735.png","audio_url":"http://staging-teach.cdn.ireadabc.com/6b13f8509a360476c26336029a1ce570.mp3"}]'
const data = JSON.parse(dataJson); const data = JSON.parse(dataJson);
return data; return data;
}, },
...@@ -227,7 +228,6 @@ cc.Class({ ...@@ -227,7 +228,6 @@ cc.Class({
if (this.data.length == 1) { if (this.data.length == 1) {
this.leftNode.active = false this.leftNode.active = false
this.rightNode.active = false this.rightNode.active = false
onHomeworkFinish();
} else { } else {
this.leftNode.active = false this.leftNode.active = false
this.rightNode.active = true this.rightNode.active = true
...@@ -334,6 +334,7 @@ cc.Class({ ...@@ -334,6 +334,7 @@ cc.Class({
fired: false, fired: false,
showFire() { showFire() {
onHomeworkFinish();
return return
if (this.fired) return if (this.fired) return
this.fired = true this.fired = true
......
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