|
|
|
@ -255,13 +255,15 @@ export default { |
|
|
|
this.$toast(this.$t('common.c14')); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.form.country_code||!this.form.phone){ |
|
|
|
if(!this.form.country_id||!this.form.phone){ |
|
|
|
this.$toast(this.$t('common.phonenumber')); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.form.type=this.form.type |
|
|
|
this.form.country_code = this.country_code || 86; |
|
|
|
// this.form.country_code = this.country_code || 86; |
|
|
|
this.form.country_code = this.form.country_id || 86; |
|
|
|
// console.log(this.form); |
|
|
|
|
|
|
|
Member.register(this.form).then((res) => { |
|
|
|
|
|
|
|
@ -378,7 +380,7 @@ export default { |
|
|
|
}), |
|
|
|
getCountry() { |
|
|
|
serve.get("/getCountryList").then((res) => { |
|
|
|
this.setCountryList(res.data); |
|
|
|
this.setCountryList(res.data.toReversed()); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|