Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_login
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
NJ_login
Commits
c3068819
Commit
c3068819
authored
Jul 22, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 登录
parent
a93e0b89
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
765 additions
and
428 deletions
+765
-428
NJ_login.fire
assets/NJ_login/scene/NJ_login.fire
+644
-420
NJ_login.ts
assets/NJ_login/scene/NJ_login.ts
+6
-1
MyCocosSceneComponent.ts
assets/NJ_login/script/MyCocosSceneComponent.ts
+2
-2
bg_oxford.png
assets/NJ_login/textures/bg_oxford.png
+0
-0
bg_oxford.png.meta
assets/NJ_login/textures/bg_oxford.png.meta
+36
-0
icon_normal.png
assets/NJ_login/textures/icon_normal.png
+0
-0
icon_normal.png.meta
assets/NJ_login/textures/icon_normal.png.meta
+36
-0
icon_pro.png
assets/NJ_login/textures/icon_pro.png
+0
-0
icon_pro.png.meta
assets/NJ_login/textures/icon_pro.png.meta
+36
-0
tree.png
assets/NJ_login/textures/tree.png
+0
-0
tree.png.meta
assets/NJ_login/textures/tree.png.meta
+5
-5
No files found.
assets/NJ_login/scene/NJ_login.fire
View file @
c3068819
This diff is collapsed.
Click to expand it.
assets/NJ_login/scene/NJ_login.ts
View file @
c3068819
...
...
@@ -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
=
''
)
{
...
...
assets/NJ_login/script/MyCocosSceneComponent.ts
View file @
c3068819
...
...
@@ -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
();
...
...
assets/NJ_login/textures/bg_oxford.png
0 → 100644
View file @
c3068819
8.56 KB
assets/NJ_login/textures/bg_oxford.png.meta
0 → 100644
View file @
c3068819
{
"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
assets/NJ_login/textures/icon_normal.png
0 → 100644
View file @
c3068819
6.81 KB
assets/NJ_login/textures/icon_normal.png.meta
0 → 100644
View file @
c3068819
{
"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
assets/NJ_login/textures/icon_pro.png
0 → 100644
View file @
c3068819
6.98 KB
assets/NJ_login/textures/icon_pro.png.meta
0 → 100644
View file @
c3068819
{
"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
View replaced file @
a93e0b89
View file @
c3068819
63.8 KB
|
W:
|
H:
4.76 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/NJ_login/textures/tree.png.meta
View file @
c3068819
...
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment