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

View File

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

View File

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

View File

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

View File

@@ -75,7 +75,7 @@ function gotoSignup() {
</div> </div>
<ui-tabs class="mb-5"> <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"> <div class="py-5">
<EmailPasswordLogin @submit="handleSignInEmailPassword" /> <EmailPasswordLogin @submit="handleSignInEmailPassword" />
</div> </div>

View File

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