|
|
|
@ -52,15 +52,6 @@ export default { |
|
|
|
watch: { |
|
|
|
sendAAA(n,o){ |
|
|
|
if(n){ |
|
|
|
console.log(n, '-------'); |
|
|
|
// setTimeout(()=>{ |
|
|
|
// this.inSend = false; |
|
|
|
// this.load = true; |
|
|
|
// this.countDown(); |
|
|
|
// this.$toast(this.$t('common.sendSuccess')); |
|
|
|
// this.$emit('changeSendAAA', false) |
|
|
|
// }, 500) |
|
|
|
// return; |
|
|
|
this.send(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -84,7 +75,7 @@ export default { |
|
|
|
methods: { |
|
|
|
// 发送验证码 |
|
|
|
send() { |
|
|
|
console.log(this.sendAAA, '-------this.sendAAA'); |
|
|
|
// console.log(this.sendAAA, '-------this.sendAAA'); |
|
|
|
if(this.data.phone==''){ |
|
|
|
this.$toast(this.$t('reg.a3')) |
|
|
|
return |
|
|
|
@ -95,28 +86,30 @@ export default { |
|
|
|
} |
|
|
|
if (this.load) return; |
|
|
|
this.inSend = true; |
|
|
|
if(this.url==="/register/sendEmailCode" && !this.sendAAA){ |
|
|
|
this.$emit('changeSLider', true); |
|
|
|
|
|
|
|
}else{ |
|
|
|
// if(this.url==="/register/sendEmailCode" && !this.sendAAA){ |
|
|
|
// this.$emit('changeSLider', true); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// serve.post(this.url, this.data) |
|
|
|
Member.sendEmailCode(this.data) |
|
|
|
.then((res) => { |
|
|
|
if(res.code=='4001'){ |
|
|
|
this.inSend = false |
|
|
|
this.$toast(res.message); |
|
|
|
//如果返回报错,让图形重新获取一次 |
|
|
|
this.$emit('reGetGraphChe') |
|
|
|
}else{ |
|
|
|
this.inSend = false; |
|
|
|
this.load = true; |
|
|
|
this.countDown(); |
|
|
|
this.$toast(this.$t('common.sendSuccess')); |
|
|
|
this.$emit('changeSendAAA', false) |
|
|
|
// this.$emit('changeSendAAA', false) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.inSend = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
countDown() { |
|
|
|
|