Browse Source

注册结果完善,修正<v-code>公共组件的请求url

master
luyisha 2 years ago
parent
commit
094671cdeb
  1. 13
      layout/vCode.vue
  2. 3
      pages/reg/index.vue

13
layout/vCode.vue

@ -75,14 +75,17 @@ export default {
} }
if (this.load) return; if (this.load) return;
this.inSend = true; this.inSend = true;
Member.sendEmailCode(this.data) serve.post(this.url, this.data)
.then((res) => { .then((res) => {
// ss // ss
if(res.code=='4001'){ if(res.code!=='200'){//4001|1004
this.inSend = false this.inSend = false
this.$toast(res.message); //
// if(this.url=='/register/sendEmailCode'){
this.$emit('reGetGraphChe') //
//
this.$emit('reGetGraphChe')
}
}else{ }else{
this.inSend = false; this.inSend = false;
this.load = true; this.load = true;

3
pages/reg/index.vue

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

Loading…
Cancel
Save