feat: 更新用户注册和登录界面的文本提示,增强用户体验

This commit is contained in:
2026-01-15 03:04:49 +07:00
parent 0ebf33c5a4
commit 4c29f95740
6 changed files with 27 additions and 3 deletions

View File

@@ -632,7 +632,11 @@
"auth": {
"signup": {
"title": "التسجيل",
"enterName": "أدخل الاسم",
"enterEmail": "أدخل البريد الإلكتروني",
"enterPassword": "أدخل كلمة المرور",
"agreeTermsError": "يرجى الموافقة على الشروط",
"signupFailed": "فشل التسجيل، يرجى المحاولة مرة أخرى",
"validation": {
"nameRequired": "الاسم مطلوب",
"emailRequired": "البريد الإلكتروني مطلوب",
@@ -645,6 +649,8 @@
"title": "تسجيل الدخول",
"loginButton": "تسجيل الدخول",
"signupButton": "التسجيل",
"signUpAndLogin": "التسجيل وتسجيل الدخول",
"emailPassword": "كلمة مرور البريد الإلكتروني",
"username": "البريد الإلكتروني",
"phone": "الهاتف",
"selectCountryCode": "اختر البلد/المنطقة",

View File

@@ -632,7 +632,11 @@
"auth": {
"signup": {
"title": "Sign Up",
"enterName": "Enter name",
"enterEmail": "Enter email",
"enterPassword": "Enter password",
"agreeTermsError": "Please agree to terms",
"signupFailed": "Signup failed, please try again",
"validation": {
"nameRequired": "Name required",
"emailRequired": "Email required",
@@ -645,6 +649,8 @@
"title": "Login",
"loginButton": "Login",
"signupButton": "Sign Up",
"signUpAndLogin": "Sign Up & Login",
"emailPassword": "Email Password",
"username": "Email",
"phone": "Phone",
"selectCountryCode": "Select Country/Region",

View File

@@ -632,7 +632,11 @@
"auth": {
"signup": {
"title": "用户注册",
"enterName": "请输入姓名",
"enterEmail": "请输入邮箱",
"enterPassword": "请输入密码",
"agreeTermsError": "请同意服务条款后继续",
"signupFailed": "注册失败,请重试",
"validation": {
"nameRequired": "请输入姓名",
"emailRequired": "请输入邮箱",
@@ -645,6 +649,8 @@
"title": "登录",
"loginButton": "登录",
"signupButton": "注册",
"signUpAndLogin": "注册并登录",
"emailPassword": "邮箱密码",
"username": "邮箱",
"phone": "手机号",
"selectCountryCode": "选择国家/地区",

View File

@@ -632,7 +632,11 @@
"auth": {
"signup": {
"title": "用戶註冊",
"enterName": "請輸入姓名",
"enterEmail": "請輸入郵箱",
"enterPassword": "請輸入密碼",
"agreeTermsError": "請同意服務條款後繼續",
"signupFailed": "註冊失敗,請重試",
"validation": {
"nameRequired": "請輸入姓名",
"emailRequired": "請輸入郵箱",
@@ -645,6 +649,8 @@
"title": "登錄",
"loginButton": "登錄",
"signupButton": "註冊",
"signUpAndLogin": "註冊並登錄",
"emailPassword": "郵箱密碼",
"username": "郵箱",
"phone": "手機號",
"selectCountryCode": "選擇國家/地區",

View File

@@ -75,7 +75,7 @@ function gotoSignup() {
</div>
<ui-tabs class="mb-5">
<ui-tab-pane name="username" :title="t('auth.login.username')">
<ui-tab-pane name="emailPassword" :title="t('auth.login.emailPassword')">
<div class="py-5">
<EmailPasswordLogin @submit="handleSignInEmailPassword" />
</div>

View File

@@ -26,7 +26,7 @@ async function handleSubmit(values: Record<string, any>) {
if (!data?.token) {
toastController.create({
message: "注册失败,请重试",
message: t("auth.signup.signupFailed"),
duration: 2000,
color: "danger",
}).then(toast => toast.present());
@@ -40,7 +40,7 @@ async function handleSubmit(values: Record<string, any>) {
}
catch (err) {
toastController.create({
message: "注册失败,请重试",
message: t("auth.signup.signupFailed"),
duration: 2000,
color: "danger",
}).then(toast => toast.present());