更改验证计æ计时器为2秒

This commit is contained in:
曾成 2020-03-25 12:07:40 +08:00
parent ffd0400fd6
commit d0d3e62b7c
2 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">手机</label>
<div class="col-sm-10">
<input v-model="addStaffViewInfo.tel" type="text" placeholder="填,请填写手机" class="form-control">
<input v-model="addStaffViewInfo.tel" type="text" placeholder="填,请填写手机" class="form-control">
</div>
</div>
<div class="form-group row">

View File

@ -14,9 +14,11 @@
methods:{
//验证码定时
messageTimer:function(){
var num = 10;
var num = 2;
var _timer = vc.createTimer(function(){
num --;
console.log(num);
console.log(num === 1);
if(num === 1){
vc.clearTimer(_timer);
vm.messageInfo.hide=true;
@ -43,4 +45,4 @@
}
}
})(window.vc)
})(window.vc)