Commit f95973ad authored by limingzhe's avatar limingzhe

fix: debug

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