手机验证码倒计时
getCurrentDown: function () {
// this.showText = false;
this.GetPhoneBtn =true;
var interval = setInterval(() => {
--this.second;
this..codeText = this.second +'s重新获取'
}, 1000)
setTimeout(() => {
clearInterval(interval)
this.GetPhoneBtn = false;
this.second = 60;
this.codeText = '获取验证码'
}, 60000)
},
网友评论