Commit b2d02d09 authored by liujiangnan's avatar liujiangnan

feat

parent 80623879
......@@ -10,10 +10,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
orgId = 507;
engineType = "universal";
async onLoadEnd() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
this.orgId = middleLayer.getComponent('middleLayer').ORG_ID || 507;
this.engineType = middleLayer.getComponent('middleLayer').type || "universal";
}
if (this.orgId != 507) {
// 说明是数字版, 变换一下界面布局
......@@ -21,8 +23,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.find(`jtpdr_lite`, nd).active = true;
cc.find(`btn_familypindu`, nd).active = false;
if (this.engineType == 'aixuebao') {
cc.find(`Canvas/userInfo/frame/BtnLogout`).active = false;
}
}
await this.initData();
await this.initView();
this.initListener();
......
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