Commit b2d02d09 authored by liujiangnan's avatar liujiangnan

feat

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