Commit c3068819 authored by liujiangnan's avatar liujiangnan

feat: 登录

parent a93e0b89
This diff is collapsed.
......@@ -6,17 +6,22 @@ const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
onLoadEnd() {
async onLoadEnd() {
this.initData();
this.initListener();
}
middleLayer;
orgId = 507;
initData() {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
this.middleLayer = middleLayer;
this.orgId = middleLayer.ORG_ID || 507;
}
cc.find(`Canvas/bg/ui/logo`).active = this.orgId === 507;
cc.find(`Canvas/bg/ui/logolite`).active = this.orgId !== 507;
}
async login(phone, password, passCode = '') {
......
......@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
cc.assetManager.loadAny(preloadArr, null, null, async (err, data) => {
if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => {
......@@ -95,7 +95,7 @@ export class MyCocosSceneComponent extends cc.Component {
// this.onLoadEnd();
// next();
// };
this.onLoadEnd();
await this.onLoadEnd();
window["air"].hideAirClassLoading();
} else {
this.onLoadEnd();
......
{
"ver": "2.3.5",
"uuid": "6c51ad86-b4e5-481a-9fc1-55e20c037de3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 270,
"height": 116,
"platformSettings": {},
"subMetas": {
"bg_oxford": {
"ver": "1.0.4",
"uuid": "7b1313f4-8982-4a72-80ef-e7ffad66968b",
"rawTextureUuid": "6c51ad86-b4e5-481a-9fc1-55e20c037de3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": -0.5,
"trimX": 2,
"trimY": 4,
"width": 264,
"height": 109,
"rawWidth": 270,
"rawHeight": 116,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9767fb39-d8cc-4b38-bdcb-c316ac52f552",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 116,
"height": 116,
"platformSettings": {},
"subMetas": {
"icon_normal": {
"ver": "1.0.4",
"uuid": "633ef32f-ef1b-4382-9a08-65f0bdcc0e44",
"rawTextureUuid": "9767fb39-d8cc-4b38-bdcb-c316ac52f552",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 116,
"height": 116,
"rawWidth": 116,
"rawHeight": 116,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "39d7a845-df54-4921-9257-7467ee2e63f1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 116,
"height": 116,
"platformSettings": {},
"subMetas": {
"icon_pro": {
"ver": "1.0.4",
"uuid": "83de3c05-21d2-45ec-9807-9c41b8e1965e",
"rawTextureUuid": "39d7a845-df54-4921-9257-7467ee2e63f1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 116,
"height": 116,
"rawWidth": 116,
"rawHeight": 116,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_login/textures/tree.png

63.8 KB | W: | H:

assets/NJ_login/textures/tree.png

4.76 KB | W: | H:

assets/NJ_login/textures/tree.png
assets/NJ_login/textures/tree.png
assets/NJ_login/textures/tree.png
assets/NJ_login/textures/tree.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -18,12 +18,12 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"offsetX": -108,
"offsetY": 61.5,
"trimX": 25,
"trimY": 0,
"width": 522,
"height": 172,
"width": 256,
"height": 49,
"rawWidth": 522,
"rawHeight": 172,
"borderTop": 0,
......
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