// 发送验证码到邮箱
sendcode(){
this.time=60;
this.timer();
},
// 多少秒后重新发送
timer() {
if (this.time > 0) {
this.showIt = false;
this.time--;
this.btntxt=this.time+"s重新获取";
setTimeout(this.timer, 1000);
} else{
this.showIt = true;
this.time=0;
this.btntxt="获取验证码";
this.disabled=false;
}
},