Commit f95973ad authored by limingzhe's avatar limingzhe

fix: debug

parent 049720d5
...@@ -260,11 +260,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -260,11 +260,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
const lesson = list[index]; const lesson = list[index];
const lock = cc.find('icon_key', b); const lock = cc.find('icon_key', b);
// console.log("===liu2===", index); // console.log("===liu2===", index);
if (index == 0) { // if (index == 0) {
lock.active = false; // lock.active = false;
} else { // } else {
lock.active = true; lock.active = true;
} // }
const titleNode = attr.querySelector('.title'); const titleNode = attr.querySelector('.title');
if (!lesson) { if (!lesson) {
return; return;
...@@ -277,7 +277,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -277,7 +277,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log("===liu3===index==", ((index-0) % 3 === 0)); console.log("===liu3===index==", ((index-0) % 3 === 0));
if (this.kidInfo && this.kidInfo.unlock_syllabuses?.includes(lesson.id+"") && (index-0) % 3 === 0) { if (index == 0 || ( this.kidInfo && this.kidInfo.unlock_syllabuses?.includes(lesson.id+"") && (index-0) % 3 === 0)) {
lock.active = false; lock.active = false;
const { parent } = b; const { parent } = b;
const pa = parent.getComponent('Attributes'); const pa = parent.getComponent('Attributes');
......
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