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
1924f4bb
Commit
1924f4bb
authored
Jul 12, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 验证码倒计时改为60s
parent
3eae6e8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
NJ_login.ts
assets/NJ_login/scene/NJ_login.ts
+2
-2
No files found.
assets/NJ_login/scene/NJ_login.ts
View file @
1924f4bb
...
...
@@ -116,7 +116,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
label
=
btnSendCode
.
getChildByName
(
'
label
'
).
getComponent
(
cc
.
Label
);
// 发送验证码
if
(
label
.
string
==
'
发送验证码
'
)
{
let
countDown
=
1
0
;
let
countDown
=
6
0
;
const
tween
=
cc
.
tween
(
label
)
.
call
(()
=>
{
label
.
string
=
`
${
countDown
}
`
;
...
...
@@ -139,7 +139,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
phone
=
inputPhone
.
getComponent
(
cc
.
EditBox
).
string
;
const
label
=
btnSendCode2
.
getChildByName
(
'
label
'
).
getComponent
(
cc
.
Label
);
if
(
label
.
string
==
'
发送验证码
'
)
{
let
countDown
=
1
0
;
let
countDown
=
6
0
;
const
tween
=
cc
.
tween
(
label
)
.
call
(()
=>
{
label
.
string
=
`
${
countDown
}
`
;
...
...
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