Commit 89c051d6 authored by liujiangnan's avatar liujiangnan

feat: 图标的显示时机

parent 19162932
......@@ -724,8 +724,6 @@ export default class NewClass extends middleLayerBase {
cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnLeft').active = false;
cc.find('middleLayer/ExitBtn').active = false;
cc.find('middleLayer/ram').active = (bundleName == 'NJ_YouLeChang' && this.type == 'aixuebao');
cc.find('middleLayer/change').active = (bundleName == 'NJ_YouLeChang');
if (bundleName == 'NJ_login') {
// 如果跳到登录页,则清理一些缓存的使用数据
this.data = {};
......@@ -764,7 +762,11 @@ export default class NewClass extends middleLayerBase {
version = "";
bondleUrl = `${templateBaseUrl}/web_desktop`;
}
this.loadBundle(sceneName, version, bondleUrl, callback);
this.loadBundle(sceneName, version, bondleUrl, () => {
cc.find('middleLayer/ram').active = (bundleName == 'NJ_YouLeChang' && this.type == 'aixuebao');
cc.find('middleLayer/change').active = (bundleName == 'NJ_YouLeChang');
callback&&callback();
});
});
});
......
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