feat(login): add phone and Google login page with i18n

Add complete login flow with phone verification and country picker.
Add login-related translations for en-US, zh-CN and th-TH locales.
Add country calling codes constants and selection utility function.
Register Vant UI component type definitions for TypeScript.
Update development environment authentication token.
This commit is contained in:
duanshuwen
2026-06-01 21:57:12 +08:00
parent b30158b7d9
commit a8ae315e9f
7 changed files with 391 additions and 20 deletions

View File

@@ -7,6 +7,34 @@ export default {
errors: {
network: "网络异常,请稍后重试",
},
login: {
method: {
google: "谷歌账号登录",
phone: "手机号验证码登录",
},
fields: {
country: "国家/区号",
phone: "手机号",
code: "验证码",
},
placeholders: {
selectCountry: "请选择国家/区号",
phone: "请输入手机号",
code: "请输入验证码",
},
dividersText: "或",
actions: {
sendCode: "获取验证码",
login: "登录",
},
errors: {
missingPhone: "请输入手机号",
missingCode: "请输入验证码",
},
tips: {
smsApiMissing: "验证码发送接口未接入",
},
},
state: {
empty: "暂无数据",
loading: "加载中...",