Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
7f36fd2c
Commit
7f36fd2c
authored
Jul 24, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
ccae1642
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
CodeInput.vue
src/views/userCenter/components/CodeInput.vue
+0
-23
No files found.
src/views/userCenter/components/CodeInput.vue
View file @
7f36fd2c
...
...
@@ -36,21 +36,6 @@ export default class CodeInput extends Vue {
required
:
true
,
}
)
private
codeTo
!
:
string
;
@
Prop
()
private
code
!
:
string
;
// @Prop(
{
// default: () =>
{
// return () =>
{
}
;
//
}
,
//
}
)
private
sendCode
!
:
()
=>
Promise
<
any
>
;
// @Prop(
{
// default: () =>
{
// return () =>
{
}
;
//
}
,
//
}
)
private
validateCode
!
:
()
=>
Promise
<
any
>
;
// @Prop(
{
// default: () =>
{
// return () =>
{
}
;
//
}
,
//
}
)
private
next
!
:
()
=>
Promise
<
any
>
;
private
count
:
number
=
0
;
private
showKeyboard
:
boolean
=
true
;
...
...
@@ -60,7 +45,6 @@ export default class CodeInput extends Vue {
private
timerDown
()
{
if
(
this
.
count
>
0
)
{
return
;
}
this
.
count
=
60
;
// this.sendCode();
this
.
$emit
(
'send-code'
);
const
timer
=
setInterval
(()
=>
{
if
(
this
.
count
<=
0
)
{
...
...
@@ -78,13 +62,6 @@ export default class CodeInput extends Vue {
const
code
=
(
this
.
code
+
key
).
slice
(
0
,
6
);
this
.
$emit
(
'update:code'
,
code
);
if
(
code
.
length
<
6
)
{
return
;
}
// try
{
// await this.validateCode();
// this.showKeyboard = false;
// await this.next();
//
}
catch
(
err
)
{
// console.error(err);
//
}
this
.
$emit
(
'next'
);
}
private
onDelete
()
{
...
...
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