diff --git a/lang/zh-CN.json b/lang/zh-CN.json index 74e2644..6af380a 100644 --- a/lang/zh-CN.json +++ b/lang/zh-CN.json @@ -1,4 +1,6 @@ { + "invitation code":"邀请码", + "Please enter your code":"请填写邀请码", "signIn":"登录", "signUp":"注册", "username":"用户名", diff --git a/pages/account/signin.vue b/pages/account/signin.vue index 22a51e8..15104f1 100644 --- a/pages/account/signin.vue +++ b/pages/account/signin.vue @@ -36,7 +36,6 @@ :append-inner-icon="passwordInputType === 'password' ? 'visibility' : 'visibility_off'" @click:append-inner="passwordInputType = passwordInputType === 'password' ? 'text' : 'password'" > -
{{ errorMsg }}
diff --git a/pages/account/signup.vue b/pages/account/signup.vue index 8e733bf..71277a8 100644 --- a/pages/account/signup.vue +++ b/pages/account/signup.vue @@ -9,6 +9,7 @@ const formData = ref({ email: '', password1: '', password2: '', + code:'', }) const fieldErrors = ref({ @@ -16,6 +17,7 @@ const fieldErrors = ref({ email: '', password1: '', password2: '', + code:'', }) const formRules = ref({ @@ -35,7 +37,10 @@ const formRules = ref({ v => !!v || $i18n.t('Please confirm your password'), v => v.length >= 8 || $i18n.t('Password must be at least 8 characters'), v => v === formData.value.password1 || $i18n.t('Confirm password must match password') - ] + ], + code: [ + v => !!v || $i18n.t('Please enter your code'), + ], }) const submitting = ref(false) @@ -145,6 +150,15 @@ const handleFieldUpdate = (field) => { clearable > + +
{{ errorMsg }}