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;
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;

3
pages/reg/index.vue

@ -215,7 +215,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