Commit 10bda0c7 authored by liujiangnan's avatar liujiangnan

feat: 提示

parent ab4e36ea
...@@ -98,10 +98,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -98,10 +98,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
buttonOnClick(star, async () => { buttonOnClick(star, async () => {
const kidInfo = await this.getKidInfo(); const kidInfo = await this.getKidInfo();
const activeLevels = kidInfo?kidInfo.active_levels:[]; const activeLevels = kidInfo?kidInfo.active_levels:[];
// console.log("===liu===data.id", data.id);
// console.log("===liu===activeLevels", JSON.stringify(activeLevels));
const activeItem = activeLevels.find(item => item.syllabus_id == data.id); const activeItem = activeLevels.find(item => item.syllabus_id == data.id);
// console.log("===liu===activeItem", JSON.stringify(activeItem));
if (middleLayer && !activeItem ) { if (middleLayer && !activeItem ) {
// 弹出激活码 // 弹出激活码
middleLayer.getComponent('middleLayer').showActiveWindow(); middleLayer.getComponent('middleLayer').showActiveWindow();
...@@ -119,7 +116,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -119,7 +116,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent.loadOnlineBundle('NJ_MonkyTree'); middleLayerComponent.loadOnlineBundle('NJ_MonkyTree');
} }
} else { } else {
this.showTips("未解锁"); this.showTips("请先完成拼读天地的学习哦!");
} }
}); });
} else { } else {
......
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