style(ui): 统一移动端登录排版设计Token与战报榜单卡片样式

这个提交包含在:
wikiboss
2026-09-21 11:16:37 +08:00
父节点 fa1c1bbe7d
当前提交 3269024ec9
共有 8 个文件被更改,包括 267 次插入 和 709 次删除

查看文件

@@ -70,6 +70,7 @@ type LoadLeadsResult = {
type UseLeadsModule = {
parseLeadStatus: (raw: string | null | undefined) => LeadStatus | null;
formatHotUnread: (unread: number) => string;
loadLeads: (
query: LoadLeadsQuery,
api?: LoadLeadsApi
@@ -221,6 +222,12 @@ describe('OmniCard AI 名片主移动潜客列表 (useLeads.uts)', () => {
expect(sent.keyWord).toBeUndefined();
});
});
it('formatHotUnread 有未读才显示红点文案', () => {
const { formatHotUnread } = loadUseLeads();
expect(formatHotUnread(0)).toBe('');
expect(formatHotUnread(2)).toContain('2');
});
});
describe('OmniCard AI 名片主潜客列表页契约 (leads.uvue)', () => {
@@ -253,6 +260,7 @@ describe('OmniCard AI 名片主潜客列表页契约 (leads.uvue)', () => {
expect(pageSource.includes('#E3E7ED')).toBe(true);
expect(pageSource.includes('primary-cta-btn')).toBe(true);
expect(pageSource.includes('status-chip')).toBe(true);
expect(combined.includes('hotUnread') || combined.includes('hotInbox')).toBe(true);
});
it('无 emoji、无 any,模板无硬编码中文主文案,长列表不用 view v-for', () => {