|
@@ -103,6 +103,7 @@
|
|
|
uni.showToast({icon: 'none',title: '请输入正确的手机号码'})
|
|
|
return
|
|
|
}else{
|
|
|
+ this.retsetCode()
|
|
|
// 图文验证码
|
|
|
this.$refs.imageTxtPopup.open()
|
|
|
}
|
|
@@ -144,19 +145,25 @@
|
|
|
// 关闭 图形验证码 弹框
|
|
|
_this.$refs.imageTxtPopup.close()
|
|
|
// 开启倒计时
|
|
|
- this.getCodeFun()
|
|
|
+ _this.getCodeFun()
|
|
|
uni.showToast({icon: 'none',title: '验证码发送成功'})
|
|
|
}else { // 验证码输入错误
|
|
|
- _this.randomCode = ''
|
|
|
- // 切换验证码重新校验
|
|
|
- _this.changeImg = false
|
|
|
- _this.$nextTick(function(){
|
|
|
- _this.changeImg = true
|
|
|
- })
|
|
|
+ _this.retsetCode()
|
|
|
uni.showToast({icon: 'none',title: res.message})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 重新触发获取图片验证码
|
|
|
+ retsetCode(){
|
|
|
+ const _this = this
|
|
|
+ _this.form.verifyCode = ''
|
|
|
+ _this.randomCode = ''
|
|
|
+ // 切换验证码重新校验
|
|
|
+ _this.changeImg = false
|
|
|
+ _this.$nextTick(function(){
|
|
|
+ _this.changeImg = true
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|