//倒计时开始
time_count() {
this.count = 60;//倒计时时间
this.count_show = false;//控制倒计时显示隐藏
this.timer = setInterval(() => {
if (this.count > 0) {
this.count--;
} else {
clearInterval(this.timer);
this.count_show = true;
}
}, 1000);
},
常用60秒短信验证码倒计时方法