1.发送短信需要的定时器
handleSend() {
if (this.msgKey) return
this.msgText = MSGSCUCCESS.replace('${time}', this.msgTime)
this.msgKey = true
const time = setInterval(() => {
this.msgTime--
this.msgText = MSGSCUCCESS.replace('${time}', this.msgTime)
if (this.msgTime === 0) {
//发送请求。。。。
this.msgTime = MSGTIME
this.msgText = '发送验证码'
this.msgKey = false;
clearInterval(time)
}
}, 1000)
},