新增邮箱注册页面表单校验

新增邮箱注册页面表单校验,包括:
- 邮箱格式校验
- 密码格式校验(至少8位,
包含大小写字母和数字)
- 确认密码校验
- 服务条款和推广信息勾选校验

新增错误提示,包括:
- 邮箱格式错误
- 密码格式错误
- 确认密码不一致
- 未勾选服务条款
- 未勾选推广信息

优化
用户体验,包括:
- 使用 CheckboxWithLabel 组件优化勾选框样式
- 使用字符串资源
- 调整页面布局
This commit is contained in:
2024-09-06 15:34:27 +08:00
parent b7da2981aa
commit 025f66ca83
8 changed files with 303 additions and 106 deletions

View File

@@ -33,4 +33,16 @@
<string name="sign_in_with_email">使用邮箱注册</string>
<string name="sign_in_with_google">使用 Google 账号登录</string>
<string name="back_upper">返回</string>
<string name="text_hint_confirm_password">再次输入密码</string>
<string name="login_confirm_password_label">再次输入密码</string>
<string name="agree_terms_of_service">我已阅读用户协议</string>
<string name="agree_promotion">我同意 Rider Pro 推送消息</string>
<string name="text_error_email_format">邮箱格式错误</string>
<string name="text_error_password_format">密码至少为 8 位,包含大写字母、小写字母、数字</string>
<string name="text_error_confirm_password_mismatch">密码和确认密码必须相同</string>
<string name="text_error_confirm_password_required">请输入确认密码</string>
<string name="error_10001_user_exist">用户已存在</string>
<string name="error_unknown">服务端未知错误</string>
<string name="error_not_accept_recive_notice">为了为您提供更个性化的服务,请允许我们向您推送相关信息。</string>
<string name="error_not_accept_term">"为了提供更好的服务,请您在注册前仔细阅读并同意《用户协议》。 "</string>
</resources>