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
7b60014e
Commit
7b60014e
authored
Feb 06, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 游客模式
parent
3c467d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
NJ_login.fire
assets/NJ_login/scene/NJ_login.fire
+8
-8
NJ_login.ts
assets/NJ_login/scene/NJ_login.ts
+5
-9
No files found.
assets/NJ_login/scene/NJ_login.fire
View file @
7b60014e
...
...
@@ -10652,7 +10652,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
0cEORWow9JJ5uUaRM+atLb
"
"_id": "
5fo/Mkc2NIM5w1quAi/9l3
"
},
{
"__type__": "cc.Label",
...
...
@@ -10685,7 +10685,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
002bH6bghBLYyNY2VVOuDw
"
"_id": "
d1xmYILYxJmrmwnJcT+z1r
"
},
{
"__type__": "cc.RichText",
...
...
@@ -11001,7 +11001,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
7dmRV/WB9A2JsMQa+qY2Ed
"
"_id": "
05VpeqK6FNtZ9lmJ0pTQ42
"
},
{
"__type__": "cc.Label",
...
...
@@ -11034,7 +11034,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
0e/bUYU41Gf60hOPNfJq3N
"
"_id": "
5epSqtsZ9IqZ5C/YG0kpnC
"
},
{
"__type__": "cc.RichText",
...
...
@@ -11232,7 +11232,7 @@
"__id__": 230
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 232
...
...
@@ -11288,7 +11288,7 @@
},
{
"__type__": "cc.Node",
"_name": "
New Label
",
"_name": "
text
",
"_objFlags": 0,
"_parent": {
"__id__": 229
...
...
@@ -11363,8 +11363,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "不想登录?
随便看看
...",
"_N$string": "不想登录?
随便看看
...",
"_string": "不想登录?
去游乐场
...",
"_N$string": "不想登录?
去游乐场
...",
"_fontSize": 18,
"_lineHeight": 18,
"_enableWrapText": true,
...
...
assets/NJ_login/scene/NJ_login.ts
View file @
7b60014e
...
...
@@ -54,6 +54,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
middleLayer
.
showTips
(
res
.
msg
);
return
;
}
this
.
middleLayer
.
isLogin
=
true
;
cc
.
sys
.
localStorage
.
setItem
(
'
token
'
,
res
.
token
);
cc
.
sys
.
localStorage
.
setItem
(
'
phone
'
,
phone
);
jumpToBundle
(
'
NJ_YouLeChang
'
);
...
...
@@ -105,15 +106,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
// if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) {
// const tryatry = cc.find('Canvas/bg/ui/tryatry');
// tryatry.active = true;
// buttonOnClick(tryatry, () => {
// cc.find('Canvas/bg/ui/btnLaw/check').active = true;
// this.login(15500000006, "qwer1111");
// });
// }
const
tryatry
=
cc
.
find
(
'
Canvas/bg/ui/tryatry
'
);
buttonOnClick
(
tryatry
,
()
=>
{
jumpToBundle
(
'
NJ_YouLeChang
'
);
});
const
btnResetPassword
=
cc
.
find
(
'
Canvas/bg/ui/forgetNode/btnResetPassword
'
);
buttonOnClick
(
btnResetPassword
,
async
()
=>
{
...
...
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