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