Browse Source

注册流程完善,<v-code>修复请求

master
luyisha 2 years ago
parent
commit
0f9bf14944
  1. 10
      layout/vCode.vue
  2. 3
      pages/reg/index.vue

10
layout/vCode.vue

@ -78,13 +78,17 @@ export default {
}
if (this.load) return;
this.inSend = true;
Member.sendEmailCode(this.data)
serve.post(this.url, this.data)
.then((res) => {
if(res.code=='4001'){
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;

3
pages/reg/index.vue

@ -228,7 +228,8 @@ export default {
Member.register(this.form).then((res) => {
if(res.code != 200){
this.$toast(res.message)
this.$toast(res.message);
this.reGetGraphChe();
return false
}
// #ifdef H5

Loading…
Cancel
Save