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 自动化单元测试套件并通过全部验证
这个提交包含在:
@@ -30,10 +30,11 @@ export interface CardProfile {
|
||||
address?: string;
|
||||
city?: string;
|
||||
country?: string;
|
||||
meetingUrl?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export type BentoBlockType = 'hero' | 'case' | 'article' | 'social' | 'video' | 'form';
|
||||
export type BentoBlockType = 'hero' | 'case' | 'article' | 'social' | 'video' | 'form' | 'appointment';
|
||||
|
||||
export type BentoColSpan = 1 | 2;
|
||||
|
||||
@@ -58,6 +59,23 @@ export interface BrandKit {
|
||||
primaryColor: string;
|
||||
}
|
||||
|
||||
export interface MeetingInviteOptions {
|
||||
summary?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
location?: string;
|
||||
startTime: Date | string | number;
|
||||
endTime: Date | string | number;
|
||||
organizerName?: string;
|
||||
organizerEmail?: string;
|
||||
}
|
||||
|
||||
export interface CalendarInviteBundle {
|
||||
googleUrl: string;
|
||||
outlookUrl: string;
|
||||
icsUrl: string;
|
||||
}
|
||||
|
||||
export interface CardPortalDetail {
|
||||
id: number | string;
|
||||
slug?: string;
|
||||
@@ -80,6 +98,7 @@ export interface CardPortalDetail {
|
||||
status: CardStatus;
|
||||
bentoBlocks: BentoBlockPublic[];
|
||||
brandKit?: BrandKit;
|
||||
meetingUrl?: string;
|
||||
cachedAt?: number;
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户