|
|
|
@ -75,14 +75,17 @@ export default { |
|
|
|
} |
|
|
|
if (this.load) return; |
|
|
|
this.inSend = true; |
|
|
|
Member.sendEmailCode(this.data) |
|
|
|
serve.post(this.url, this.data) |
|
|
|
.then((res) => { |
|
|
|
// ss |
|
|
|
if(res.code=='4001'){ |
|
|
|
if(res.code!=='200'){//4001|1004 |
|
|
|
this.inSend = false |
|
|
|
this.$toast(res.message); |
|
|
|
//如果返回报错,让图形重新获取一次 |
|
|
|
this.$emit('reGetGraphChe') |
|
|
|
// 如果返回错误码 |
|
|
|
if(this.url=='/register/sendEmailCode'){ |
|
|
|
// 如果获取验证码的接口要求填写图形验证码 |
|
|
|
// 图形重新获取一次 |
|
|
|
this.$emit('reGetGraphChe') |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.inSend = false; |
|
|
|
this.load = true; |
|
|
|
|