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
671a68ca
Commit
671a68ca
authored
Sep 10, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 隐私协议等
parent
adeee2f2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1502 additions
and
211 deletions
+1502
-211
NJ_login.fire
assets/NJ_login/scene/NJ_login.fire
+1459
-202
NJ_login.ts
assets/NJ_login/scene/NJ_login.ts
+34
-0
bg_oxford.png
assets/NJ_login/textures/bg_oxford.png
+0
-0
bg_oxford.png.meta
assets/NJ_login/textures/bg_oxford.png.meta
+8
-8
tree.png.meta
assets/NJ_login/textures/tree.png.meta
+1
-1
No files found.
assets/NJ_login/scene/NJ_login.fire
View file @
671a68ca
This diff is collapsed.
Click to expand it.
assets/NJ_login/scene/NJ_login.ts
View file @
671a68ca
...
@@ -287,6 +287,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -287,6 +287,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
start
();
.
start
();
});
});
const
privacy
=
cc
.
find
(
`Canvas/bg/ui/btnLaw/privacy`
);
privacy
.
on
(
'
click
'
,
()
=>
{
this
.
onOpenPrivacy
();
});
const
policy
=
cc
.
find
(
`Canvas/bg/ui/btnLaw/policy`
);
policy
.
on
(
'
click
'
,
()
=>
{
this
.
onOpenPolicy
();
});
const
closeWebbtn
=
cc
.
find
(
`Canvas/bg/webContainer/closeWebbtn`
);
closeWebbtn
.
on
(
'
click
'
,
()
=>
{
this
.
closeWebView
();
});
// 环境切换后门(两秒内连点十下以上)
// 环境切换后门(两秒内连点十下以上)
// Canvas/bg/bg_oxford
// Canvas/bg/bg_oxford
const
bk
=
cc
.
find
(
`Canvas/bg/bg_oxford`
);
const
bk
=
cc
.
find
(
`Canvas/bg/bg_oxford`
);
...
@@ -303,5 +318,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -303,5 +318,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
bk
.
attr
({
bk_count
:
bk_count
+
1
});
bk
.
attr
({
bk_count
:
bk_count
+
1
});
}
}
});
});
}
onOpenPrivacy
()
{
const
web_container
=
cc
.
find
(
`Canvas/bg/webContainer`
);
const
web_view
=
cc
.
find
(
`webBg/webview`
,
web_container
);
web_view
.
getComponent
(
cc
.
WebView
).
url
=
"
https://appstore.iteachabc.com/application/web/privacy_policy/oxford_privacy.html?t=
"
+
Date
.
now
();
web_container
.
active
=
true
;
}
}
onOpenPolicy
()
{
const
web_container
=
cc
.
find
(
`Canvas/bg/webContainer`
);
const
web_view
=
cc
.
find
(
`webBg/webview`
,
web_container
);
web_view
.
getComponent
(
cc
.
WebView
).
url
=
"
https://appstore.iteachabc.com/application/web/privacy_policy/oxford_policy.html?t=
"
+
Date
.
now
();
web_container
.
active
=
true
;
}
closeWebView
()
{
const
web_container
=
cc
.
find
(
`Canvas/bg/webContainer`
);
web_container
.
active
=
false
;
}
}
}
assets/NJ_login/textures/bg_oxford.png
View replaced file @
adeee2f2
View file @
671a68ca
8.56 KB
|
W:
|
H:
13.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/NJ_login/textures/bg_oxford.png.meta
View file @
671a68ca
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
"trimType": "auto",
"trimType": "auto",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX":
-1
,
"offsetX":
0
,
"offsetY":
-0.5
,
"offsetY":
0
,
"trimX":
2
,
"trimX":
0
,
"trimY":
4
,
"trimY":
0
,
"width":
264
,
"width":
125
,
"height":
109
,
"height":
33
,
"rawWidth":
270
,
"rawWidth":
125
,
"rawHeight":
116
,
"rawHeight":
33
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
...
assets/NJ_login/textures/tree.png.meta
View file @
671a68ca
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"type": "sprite",
"type": "sprite",
"wrapMode": "clamp",
"wrapMode": "clamp",
"filterMode": "bilinear",
"filterMode": "bilinear",
"premultiplyAlpha":
fals
e,
"premultiplyAlpha":
tru
e,
"genMipmaps": false,
"genMipmaps": false,
"packable": true,
"packable": true,
"width": 522,
"width": 522,
...
...
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