Commit 7f36fd2c authored by yyh's avatar yyh

删除无用代码

parent ccae1642
...@@ -36,21 +36,6 @@ export default class CodeInput extends Vue { ...@@ -36,21 +36,6 @@ export default class CodeInput extends Vue {
required: true, required: true,
})private codeTo!: string; })private codeTo!: string;
@Prop()private code!: 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 count: number = 0;
private showKeyboard: boolean = true; private showKeyboard: boolean = true;
...@@ -60,7 +45,6 @@ export default class CodeInput extends Vue { ...@@ -60,7 +45,6 @@ export default class CodeInput extends Vue {
private timerDown() { private timerDown() {
if (this.count > 0 ) { return; } if (this.count > 0 ) { return; }
this.count = 60; this.count = 60;
// this.sendCode();
this.$emit('send-code'); this.$emit('send-code');
const timer = setInterval(() => { const timer = setInterval(() => {
if ( this.count <= 0) { if ( this.count <= 0) {
...@@ -78,13 +62,6 @@ export default class CodeInput extends Vue { ...@@ -78,13 +62,6 @@ export default class CodeInput extends Vue {
const code = (this.code + key).slice(0, 6); const code = (this.code + key).slice(0, 6);
this.$emit('update:code', code ); this.$emit('update:code', code );
if (code.length < 6) { return; } if (code.length < 6) { return; }
// try {
// await this.validateCode();
// this.showKeyboard = false;
// await this.next();
// } catch (err) {
// console.error(err);
// }
this.$emit('next'); this.$emit('next');
} }
private onDelete() { private onDelete() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment