btnText() {
const time = setTimeout(() => {
if (this.second === 0) {
this.second = 60;//初始化60秒
this.sended = false;//控制样式变化
clearTimeout(time);
this.text = '获取验证码';
} else {
this.btnText();
this.second -= 1;
this.text = `${this.second}s重新获取`;
}
}, 1000);
}