feat(mpuniapp): 重构登录页面为瑞士国际主义极简品牌感,优化宽屏居中与移动端自适应

这个提交包含在:
wikiboss
2026-09-21 10:43:10 +08:00
父节点 41b2596761
当前提交 a7e20c9c5a
共有 3 个文件被更改,包括 52 次插入 和 6 次删除

查看文件

@@ -190,7 +190,7 @@ const isRtlMode = computed((): boolean => {
});
function t(key: LoginCopyKey | string): string {
return resolveLoginText(key);
return resolveLoginText(key, currentLang.value);
}
const codeButtonText = computed((): string => {

查看文件

@@ -3,7 +3,7 @@
* 第一版可用骨架:不接真实 Google / Apple SDK,不伪造成功登录
*/
import { getCurrentLocale, getOmniText } from '../../common/locale.uts';
import { getCurrentLocale, getOmniText, OmniLocale } from '../../common/locale.uts';
import { setAuthToken, setTenantId } from '../../common/request.uts';
export type LoginTab = 'phone' | 'email';
@@ -55,12 +55,13 @@ function isZhLocale(): boolean {
/**
* 登录文案:能复用 locale.uts 的走词典,缺 key 时中英简单分支
*/
export function resolveLoginText(key: LoginCopyKey | string): string {
export function resolveLoginText(key: LoginCopyKey | string, targetLocale?: string): string {
const loc = targetLocale != null && targetLocale !== '' ? targetLocale : getCurrentLocale();
if (key === 'loginSuccess') {
return getOmniText(getCurrentLocale(), 'common.success');
return getOmniText(loc as OmniLocale, 'common.success');
}
const zh = isZhLocale();
const zh = loc === 'zh-CN';
if (key === 'title') {
return zh ? '登录 OmniCard' : 'Sign in to OmniCard';
}