mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
更改验证计æ计时器为2秒
This commit is contained in:
parent
ffd0400fd6
commit
d0d3e62b7c
@ -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">
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user