|
|
@@ -13,11 +13,11 @@
|
|
|
<van-cell-group :border="false">
|
|
|
<van-field
|
|
|
v-model="formData.username"
|
|
|
- name="phone"
|
|
|
- :placeholder="$t('loginPage.phonePla')"
|
|
|
+ name="username"
|
|
|
+ :placeholder="$t('loginPage.username')"
|
|
|
type="tel"
|
|
|
:rules="[
|
|
|
- { required: true, message: $t('loginPage.phonePla') },
|
|
|
+ { required: true, message: $t('loginPage.enterUsername') },
|
|
|
{
|
|
|
pattern: /^(?![0-9]+$)[0-9A-Za-z_]{6,20}$/,
|
|
|
message: $t('loginPage.nameError')
|
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
this.userStore
|
|
|
- .register(this.formData.phone, this.formData.code, this.formData.password, this.formData.invitor)
|
|
|
+ .register(this.formData.username, this.formData.code, this.formData.password, this.formData.invitor)
|
|
|
.then(() => {
|
|
|
this.$toast.success(this.$t('loginPage.registerSuccess'))
|
|
|
setTimeout(() => {
|