style(ui): 统一移动端登录排版设计Token与战报榜单卡片样式
这个提交包含在:
@@ -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', () => {
|
||||
|
||||
在新工单中引用
屏蔽一个用户