feat: 完成全系统30个功能点开发与E2E全链路验收 (8轮调度32个子代理闭环)

- 模块一: 出海案例作品集、博客动态发布、人名发音语音条、RTL阿语多语言切换
- 模块二: AI顾问人设配置、行业术语库润色、RAG切片沙盒调试、流式会话与意向留资卡片
- 模块三: 全球访客雷达大屏、多维加权意向算分、外部CRM对接推送、团队公海池流转
- 模块四: 移动端NFC安全挂失、NFC动态路由规则配置、动态防伪验签、展会制卡Zip批量导出
- 模块五: 组织架构与名片分配、移动端个人中心设置、离职交接与历史线索迁移、安全审计日志
- 模块六: Stripe国际信用卡订阅Webhook、独立二级域名与SSL检测、坐席配额预警、多币种发票
- 模块七: 纸质名片OCR解析入库、国际商务日程RFC 5545 ICS日历、微官网离线SWR预加载、展会实时排行榜大屏
- 模块八: 全球出海SEO OpenGraph元标签注入与社交爬虫探测、30点端到端全链路业务流集成测试套件
这个提交包含在:
wikiboss
2026-09-20 23:47:47 +08:00
父节点 acd10ffb59
当前提交 eec259a3a7
共有 276 个文件被更改,包括 54906 次插入 和 145 次删除

查看文件

@@ -1,5 +1,12 @@
<template>
<view class="portal-page">
<view class="portal-page" :class="pageRtlClass">
<view class="locale-bar">
<view class="locale-selector-container">
<i18n-selector :model-value="currentLang" @change="switchLang" />
</view>
<text class="locale-chip locale-exchange" @click="openExchange">{{ textOf('card.exchange') }}</text>
</view>
<scroll-view class="portal-scroll" :scroll-y="true">
<!-- 骨架加载态 -->
<view v-if="state.loading" class="portal-skeleton">
@@ -11,10 +18,10 @@
<!-- 异常提示态 -->
<view v-else-if="state.errorMessage" class="portal-error-card">
<text class="error-title">微官网暂不可用</text>
<text class="error-title">{{ textOf('portal.unavailable') }}</text>
<text class="error-desc">{{ state.errorMessage }}</text>
<button class="retry-btn" @click="reloadPortal">
<text class="retry-btn-text">重新加载</text>
<text class="retry-btn-text">{{ textOf('portal.retry') }}</text>
</button>
</view>
@@ -41,15 +48,11 @@
<!-- 姓名与发音试听 -->
<view class="hero-name-row">
<text class="hero-name">{{ state.card!.name }}</text>
<view
v-if="state.card!.audioPronunciationUrl"
class="pronounce-pill"
:class="{ 'pronounce-pill-active': state.isPlayingAudio }"
@click="handleAudioToggle"
>
<text class="pronounce-icon">{{ state.isPlayingAudio ? '■' : '▶' }}</text>
<text class="pronounce-label">{{ state.isPlayingAudio ? '播放中' : '发音' }}</text>
</view>
<audio-pronounce
v-if="cardAudioUrl !== ''"
:audio-url="cardAudioUrl"
:label="textOf('portal.pronounce')"
/>
</view>
<!-- 头衔与所属公司 -->
@@ -69,28 +72,49 @@
<view class="action-icon-box">
<text class="action-icon-text">WA</text>
</view>
<text class="action-item-label">WhatsApp</text>
<text class="action-item-label">{{ textOf('portal.whatsapp') }}</text>
</view>
<view class="action-item" @click="handleAction('linkedin')">
<view class="action-icon-box">
<text class="action-icon-text">IN</text>
</view>
<text class="action-item-label">LinkedIn</text>
<text class="action-item-label">{{ textOf('portal.linkedin') }}</text>
</view>
<view class="action-item" @click="handleAction('email')">
<view class="action-icon-box">
<text class="action-icon-text">@</text>
</view>
<text class="action-item-label">邮件</text>
<text class="action-item-label">{{ textOf('portal.email') }}</text>
</view>
<view class="action-item" @click="handleAction('phone')">
<view class="action-icon-box">
<text class="action-icon-text">TEL</text>
</view>
<text class="action-item-label">电话呼出</text>
<text class="action-item-label">{{ textOf('portal.phone') }}</text>
</view>
<view class="action-item" @click="handleAction('telegram')">
<view class="action-icon-box">
<text class="action-icon-text">TG</text>
</view>
<text class="action-item-label">{{ textOf('portal.telegram') }}</text>
</view>
<view class="action-item" @click="handleAction('twitter')">
<view class="action-icon-box">
<text class="action-icon-text">X</text>
</view>
<text class="action-item-label">{{ textOf('portal.twitter') }}</text>
</view>
<view class="action-item" @click="handleAction('wechat')">
<view class="action-icon-box">
<text class="action-icon-text">WX</text>
</view>
<text class="action-item-label">{{ textOf('portal.wechat') }}</text>
</view>
</view>
@@ -127,10 +151,16 @@
</view>
</scroll-view>
<text
v-if="state.card != null"
class="ai-entry"
@click="openAiChat"
>{{ textOf('card.ai_chat') }}</text>
<!-- 4. 单屏唯一定位主 CTA (保存到通讯录) -->
<view v-if="state.card != null" class="portal-cta-bar">
<button class="primary-cta-btn" @click="handleSaveContact">
<text class="primary-cta-btn-text">保存到手机通讯录</text>
<text class="primary-cta-btn-text">{{ textOf('card.save_contact') }}</text>
</button>
</view>
</view>
@@ -148,14 +178,65 @@ import {
triggerQuickAction,
getBentoColSpanClass,
filterVisibleBentoBlocks,
persistPortalLocale,
readStoredPortalLocale,
readCardSuggestedLocale,
resolvePortalLocale,
PortalQuickAction,
} from './usePortal.uts';
import { saveToContacts } from '../../common/vcard-export.uts';
import {
OmniLocale,
OmniMessageKey,
detectLocale,
getOmniText,
isRtl,
setCurrentLocale,
} from '../../common/locale.uts';
import I18nSelector from '../../components/i18n-selector/i18n-selector.uvue';
import AudioPronounce from '../../components/audio-pronounce/audio-pronounce.uvue';
import { releaseAudioPlayer } from './useAudioPlayer.uts';
const defaultAvatar = 'https://cdn.omnicard.ai/assets/default-avatar.png';
// 页面响应式状态
const state = reactive(createPortalState());
const currentCardId = ref('');
const currentLang = ref<OmniLocale>(detectLocale());
const cardAudioUrl = computed((): string => {
if (state.card == null) {
return '';
}
const primaryUrl = state.card!.audioPronounceUrl;
if (primaryUrl != null && primaryUrl.trim() !== '') {
return primaryUrl.trim();
}
const fallbackUrl = state.card!.audioPronunciationUrl;
if (fallbackUrl != null && fallbackUrl.trim() !== '') {
return fallbackUrl.trim();
}
return '';
});
const pageRtlClass = computed((): string => {
return isRtl(currentLang.value) ? 'portal-rtl' : '';
});
function textOf(key: OmniMessageKey): string {
return getOmniText(currentLang.value, key);
}
function applyResolvedLocale(next: OmniLocale): void {
setCurrentLocale(next);
currentLang.value = next;
}
function switchLang(next: OmniLocale): void {
applyResolvedLocale(next);
persistPortalLocale(next);
}
// 7 大语种动态切换支持: switchLang('zh-CN'); switchLang('en-US'); switchLang('ar-SA'); switchLang('es-ES'); switchLang('de-DE'); switchLang('fr-FR'); switchLang('ja-JP');
// 计算过滤后的 Bento 块
const visibleBlocks = computed((): BentoBlockPublic[] => {
@@ -172,11 +253,11 @@ function getColClass(colSpan: number): string {
// 块类型显示标签
function getBlockTypeLabel(type: string): string {
if (type === 'case') return '精选案例';
if (type === 'article') return '深度洞见';
if (type === 'social') return '社媒矩阵';
if (type === 'video') return '展会视频';
return '微官网内容';
if (type === 'case') return textOf('portal.case');
if (type === 'article') return textOf('portal.article');
if (type === 'social') return textOf('portal.social');
if (type === 'video') return textOf('portal.video');
return textOf('portal.block');
}
// 播放发音
@@ -187,13 +268,16 @@ function handleAudioToggle(): void {
}
// 快捷动作
function handleAction(type: 'whatsapp' | 'linkedin' | 'email' | 'phone'): void {
function handleAction(type: PortalQuickAction): void {
if (!state.card) return;
let targetVal = '';
if (type === 'whatsapp') targetVal = state.card!.whatsapp || '';
if (type === 'linkedin') targetVal = state.card!.linkedin || '';
if (type === 'email') targetVal = state.card!.email || '';
if (type === 'phone') targetVal = state.card!.phone || '';
if (type === 'telegram') targetVal = state.card!.telegram || '';
if (type === 'twitter') targetVal = state.card!.twitter || '';
if (type === 'wechat') targetVal = state.card!.wechat || '';
triggerQuickAction(type, targetVal);
}
@@ -206,14 +290,45 @@ function handleCompanyClick(): void {
});
}
function openExchange(): void {
if (!state.card) return;
const cardId = state.card!.id != null ? String(state.card!.id) : currentCardId.value;
const slug = state.card!.slug != null ? String(state.card!.slug) : '';
uni.navigateTo({
url: `/pages/portal/exchange?cardId=${cardId}&slug=${slug}`,
});
}
function openAiChat(): void {
if (!state.card) return;
const cardId = state.card!.id != null ? String(state.card!.id) : currentCardId.value;
uni.navigateTo({
url: `/pages/portal/ai-chat?cardId=${cardId}&lang=${currentLang.value}`,
});
}
// Bento 卡片点击
function handleBlockClick(block: BentoBlockPublic): void {
const blockId = block.id != null ? String(block.id) : '';
const cardQuery = currentCardId.value;
if (block.type === 'case') {
uni.navigateTo({
url: `/pages/portal/case-detail?cardId=${cardQuery}&blockId=${blockId}`,
});
return;
}
if (block.type === 'article') {
uni.navigateTo({
url: `/pages/portal/article-detail?cardId=${cardQuery}&blockId=${blockId}`,
});
return;
}
if (block.linkUrl && block.linkUrl!.trim() !== '') {
uni.setClipboardData({
data: block.linkUrl!,
success: () => {
uni.showToast({
title: '已复制链接',
title: textOf('portal.copied_link'),
icon: 'none',
});
},
@@ -242,12 +357,19 @@ function reloadPortal(): void {
onLoad((options: any) => {
const queryId = (options && (options.id || options.slug)) ? String(options.id || options.slug) : 'default';
const querySource = (options && options.source) ? String(options.source) : 'link';
const queryLang = (options && options.lang) ? String(options.lang) : '';
currentCardId.value = queryId;
loadCardPortal(state, queryId, querySource);
const stored = readStoredPortalLocale();
applyResolvedLocale(resolvePortalLocale(queryLang, stored, '', detectLocale()));
loadCardPortal(state, queryId, querySource).then((cardData) => {
const suggested = readCardSuggestedLocale(cardData);
applyResolvedLocale(resolvePortalLocale(queryLang, stored, suggested, detectLocale()));
});
});
onUnload(() => {
reportPortalStay(state, 100);
releaseAudioPlayer();
});
</script>
@@ -258,6 +380,67 @@ onUnload(() => {
height: 100%;
background-color: #F7F8FA;
}
.portal-rtl {
direction: rtl;
text-align: right;
}
.locale-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 8px 16px 0 16px;
}
.locale-selector-container {
display: flex;
align-items: center;
}
.locale-chip {
min-width: 44px;
min-height: 44px;
padding: 8px 12px;
font-size: 13px;
color: #0B5CFF;
display: flex;
align-items: center;
justify-content: center;
}
.locale-chip-active {
color: #0B5CFF;
font-weight: 600;
}
/* RTL 镜像适配 */
.portal-rtl .hero-card {
text-align: right;
}
.portal-rtl .hero-name-row {
flex-direction: row;
justify-content: flex-start;
}
.portal-rtl .hero-name {
margin-right: 0;
margin-left: 12px;
}
.portal-rtl .hero-company-row {
justify-content: flex-start;
}
.portal-rtl .hero-company-name {
margin-right: 0;
margin-left: 4px;
}
.portal-rtl .hero-company-arrow {
display: inline-block;
transform: scaleX(-1);
}
.portal-rtl .pronounce-icon {
margin-right: 0;
margin-left: 4px;
}
.portal-rtl .ai-entry {
right: auto;
left: 16px;
}
.portal-scroll {
flex: 1;
@@ -460,11 +643,13 @@ onUnload(() => {
.quick-action-bar {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 16px;
}
.action-item {
flex: 1;
flex: 1 1 20%;
min-width: 64px;
min-height: 52px;
background-color: #FFFFFF;
border: 1px solid #E3E7ED;
@@ -548,6 +733,17 @@ onUnload(() => {
.portal-bottom-spacer {
height: 80px;
}
.ai-entry {
position: fixed;
right: 16px;
bottom: 96px;
min-height: 44px;
min-width: 44px;
padding: 8px 12px;
color: #7C5CFF;
font-size: 12px;
text-align: center;
}
.portal-cta-bar {
position: fixed;
left: 0;