Commit 3252878a authored by huangjie's avatar huangjie

*

parent da003db4
......@@ -235,6 +235,7 @@
smstime:60,
smstitle:'获取验证码',
showcode:false,//是否展示验证码
nosend:false,
};
},
......@@ -267,16 +268,21 @@
});
},
getsms(){
if(this.nosend == true){
return false
}
logincaptchaSms(this.dxform).then(res=>{
if(res.code == 200){
this.$message.success('已发送短信!')
let _this = this
_this.nosend = true
this.timers = setInterval(()=>{
_this.smstitle = _this.smstime +'秒后重试'
_this.smstime--;
if(_this.smstime <= 0){
_this.smstitle = '发送验证码'
clearInterval(_this.timers)
_this.nosend = false
}
},1000)
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment