Browse Source

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

master
luyisha 3 years ago
parent
commit
d8464b533e
  1. 11
      layout/vCode.vue
  2. 3
      pages/reg/index.vue

11
layout/vCode.vue

@ -93,11 +93,14 @@ export default {
// serve.post(this.url, this.data)
Member.sendEmailCode(this.data)
.then((res) => {
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

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