Commit 224ee684 authored by limingzhe's avatar limingzhe

fix: debug

parent e1d07d39
...@@ -1688,7 +1688,7 @@ cc.Class({ ...@@ -1688,7 +1688,7 @@ cc.Class({
} }
console.log('answerData:' , answerData);
this.showUserRightNew(answerData); this.showUserRightNew(answerData);
}, },
...@@ -1703,7 +1703,7 @@ cc.Class({ ...@@ -1703,7 +1703,7 @@ cc.Class({
const animaNode = this.animaNodeArr[i]; const animaNode = this.animaNodeArr[i];
const key = animaNode.data.rectItem // i.toString(); const key = animaNode.data.rectNew // i.toString();
console.log('~animaNode.data: ', animaNode.data) console.log('~animaNode.data: ', animaNode.data)
console.log('~key: ', key) console.log('~key: ', key)
...@@ -3335,12 +3335,24 @@ cc.Class({ ...@@ -3335,12 +3335,24 @@ cc.Class({
console.log("key: ", key); console.log("key: ", key);
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) { // if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) {
if (labelText == targetLabelText && checkRect.contains(dotV2)) { // if (labelText == targetLabelText && checkRect.contains(dotV2)) {
const len = targetLabelText.trim().length; if (checkRect.contains(dotV2)) {
// const len = targetLabelText.trim().length;
console.log('len: ', len); // console.log('len: ', len);
// if (labelText.length == 1) {
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 ) {
// answerData[key] = {isFinish: true};
// }
// } else {
if (labelText == targetLabelText) {
answerData[key] = {isFinish: true};
}
// }
answerData[key] = {isFinish: 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