feat(player): 注册账号、登录双模式与移动端性能优化

注册必填 7-32 位账号,手机号区号/本地号分存;登录默认账号模式并支持切换手机号登录;Player i18n 拆包与赛事接口优化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-12 10:56:51 +08:00
parent 83f0f380c5
commit 312c3c5816
35 changed files with 1944 additions and 1394 deletions

View File

@@ -38,6 +38,7 @@ export const useAuthStore = defineStore('auth', () => {
}
async function register(
username: string,
phone: string,
countryCode: string,
password: string,
@@ -49,6 +50,7 @@ export const useAuthStore = defineStore('auth', () => {
const code = inviteCode?.trim();
const dial = countryCode.replace(/\D/g, '');
const { data } = await api.post('/player/auth/register', {
username: username.trim(),
phone,
countryCode: dial,
password,