feat(mpuniapp): 重构登录页面为瑞士国际主义极简品牌感,优化宽屏居中与移动端自适应
这个提交包含在:
@@ -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';
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户