Commit 5214a8c1 authored by huoshizhe's avatar huoshizhe

feat:

parent 8fa2a033
......@@ -237,9 +237,16 @@ cc.Class({
this.hideAllSubmenu();
btn.active = false;
btnSelected.active = true;
label.active = false;
labelSelected.active = true;
if (!data.children[0]) {
console.error('沒有課件!');
return;
}
this.syllabus_id = data.children[0].id;
this.loadBundleByConf(data.children[0].conf);
} else {
this.hideAllSubmenu();
menuBase.active = true;
......@@ -276,9 +283,6 @@ cc.Class({
btnSelected.addComponent(cc.Button)
btnSelected.on('click', () => {
this.hideMenu();
this.syllabus_id = data.children[0].id;
this.loadBundleByConf(data.children[0].conf);
});
if (data.has_child == '1') {
......
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