feat(mpuniapp): 落地微官网商务日程预约与日历排期功能 (TDD)
- 新增 common/calendar.uts 日历工具,支持 Google Calendar、Outlook Live 与后端 RFC 5545 ICS 一键下载 - 扩展 common/types.uts,支持 appointment 卡片类型与日历预约参数契约 - 补齐 common/locale.uts 全球 7 种语言(含阿语 RTL)商务预约词条 - 在 pages/portal/index.uvue 中集成 Bento 预约卡片与底部预约抽屉 (Bottom Sheet) - 在 pages/portal/usePortal.uts 中增加预约雷达轨迹上报 (touchType: appointment) 闭环联动 CRM - 新增 mpuniapp/tests/appointment.test.ts 自动化单元测试套件并通过全部验证
这个提交包含在:
@@ -435,6 +435,31 @@ export function resolvePortalCollectText(
|
||||
return getOmniText(loc, 'portal.collect');
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约动作雷达轨迹上报,自动推进 CRM 商机流转
|
||||
*/
|
||||
export async function trackAppointmentAction(
|
||||
state: PortalState,
|
||||
meetingSummary?: string
|
||||
): Promise<boolean> {
|
||||
if (state.card == null || state.card!.id == null) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
await recordRadarTrack({
|
||||
cardId: state.card!.id,
|
||||
visitorId: state.visitorId,
|
||||
touchType: 'appointment',
|
||||
stayDurationMs: Math.max(0, Date.now() - state.enterTime),
|
||||
scrollDepth: 100,
|
||||
});
|
||||
return true;
|
||||
} catch (_e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export const OWNER_CARD_IDS_STORAGE_KEY = 'omni_owner_card_ids';
|
||||
|
||||
/**
|
||||
|
||||
在新工单中引用
屏蔽一个用户