Commit cca8e0c6 authored by limingzhe's avatar limingzhe

fix: 第一个不显示 bug

parent f360f6f8
No preview for this file type
{
"ver": "1.1.2",
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
......@@ -856,6 +856,8 @@ cc.Class({
if (isSmall) {
writeRect = this.writeNodeArr2[Number(index)];
console.log('show Letter small 1 :' , index)
} else {
writeRect = this.writeNodeArr1[Number(index)];
}
......@@ -870,9 +872,12 @@ cc.Class({
}
writeRect.isShowEnd = true;
console.log('show Letter small 2 :' , index)
const letterAnim = this.getLetterAnim(isSmall);
letterAnim.parent = writeRect;
letterAnim.y = 4;
// letterAnim.x = writeRect.width / 2;
// letterAnim.y = writeRect.height / 2;
......@@ -1412,6 +1417,10 @@ cc.Class({
console.log(' this.photo end');
if (!this.canTouch) {
console.log('! cantouch')
return;
}
// const result = data.result;
// for (let i=0; i<result.length; i++) {
// result[i].top *= 400;
......@@ -1459,7 +1468,10 @@ cc.Class({
const oldStep = this.step;
this.checkShowStepAudio();
if (oldStep != this.step) {
this.canTouch = false;
this.showStepAudio();
} else {
this.canTouch = true;
}
// const isFillAll = this.checkIsFillAll(answerData);
......@@ -1528,7 +1540,6 @@ cc.Class({
checkShowStepAudio() {
this.canTouch = false;
switch(this.step) {
case 1:
......@@ -1630,6 +1641,7 @@ cc.Class({
const playEnd = () => {
this.playAni('normal', 0);
this.showSmallLetterAnim();
this.canTouch = true;
}
if (!this.data.write_small_0_audio_url) {
......@@ -1687,9 +1699,9 @@ cc.Class({
showUserRight(answerData, isSmall) {
console.log('answerData: ', answerData);
console.log('answerData: ', answerData.toString());
if (!answerData || Object.keys(answerData) == 0) {
if (!answerData || Object.keys(answerData).length == 0) {
return;
}
......
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