Commit 53cb070d authored by liujiangnan's avatar liujiangnan

debug

parent e9e86d7c
...@@ -213,8 +213,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -213,8 +213,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const index = attr.attrMap['index']; const index = attr.attrMap['index'];
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;
...@@ -225,9 +225,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -225,9 +225,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
b.attr({ 'data_id': lesson.id }); b.attr({ 'data_id': lesson.id });
b.attr({ 'data_pid': lesson.pid }); b.attr({ 'data_pid': lesson.pid });
console.log("===liu3===unlock_syllabuses==", this.kidInfo.unlock_syllabuses); // console.log("===liu3===unlock_syllabuses==", this.kidInfo.unlock_syllabuses);
console.log("===liu3===lesson.id==", lesson.id); // console.log("===liu3===lesson.id==", lesson.id);
console.log("===liu3===index==", index); // console.log("===liu3===index==", index);
if (this.kidInfo && this.kidInfo.unlock_syllabuses?.includes(lesson.id+"") && (index-0) % 3 === 0) { if (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;
......
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