Commit db8c651a authored by liujiangnan's avatar liujiangnan

debug

parent 070f5960
......@@ -213,6 +213,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const index = attr.attrMap['index'];
const lesson = list[index];
const lock = cc.find('icon_key', b);
console.log("===liu2===", index);
if (index === 0) {
lock.active = false;
} else {
......@@ -224,6 +225,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
b.attr({ 'data_id': lesson.id });
b.attr({ 'data_pid': lesson.pid });
console.log("===liu3===", this.kidInfo.unlock_syllabuses, lesson.id, index);
if (this.kidInfo && this.kidInfo.unlock_syllabuses?.includes(lesson.id+"") && (index-0) % 3 === 0) {
lock.active = false;
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