sendCheckCodeFun() {
let time = 60
this.sendCodeText = time + 's后重发'
let timeClock = setInterval(() => {
if (time == 0) {
clearInterval(timeClock)
this.sendCodeText = '重新发送'
return
}
time--
this.sendCodeText = time + 's后重发'
}, 1000)
}
sendCheckCodeFun() {
let time = 60
this.sendCodeText = time + 's后重发'
let timeClock = setInterval(() => {
if (time == 0) {
clearInterval(timeClock)
this.sendCodeText = '重新发送'
return
}
time--
this.sendCodeText = time + 's后重发'
}, 1000)
}