refactor: 全局去除误导性AI描述与浮夸修饰,面向生产环境标准化商务智能术语
这个提交包含在:
@@ -161,6 +161,7 @@ import {
|
||||
refreshCards,
|
||||
resolveCardHomeText,
|
||||
statusLabel,
|
||||
formatSvgDataUri,
|
||||
CardHomeCopyKey,
|
||||
CardHomeItem,
|
||||
CardHomePageOptions,
|
||||
@@ -360,7 +361,7 @@ async function updateActiveCardQr(card: CardHomeItem | null): Promise<void> {
|
||||
qrLoading.value = true;
|
||||
const res = await fetchCardQrcodeSvg(key);
|
||||
if (res != null) {
|
||||
activeQrSvg.value = res.svg != null ? res.svg : '';
|
||||
activeQrSvg.value = res.svg != null ? formatSvgDataUri(res.svg) : '';
|
||||
activeQrUrl.value = res.url != null ? res.url : '';
|
||||
}
|
||||
} catch (_e) {
|
||||
|
||||
@@ -363,3 +363,24 @@ export function pickShareCard(list: CardHomeItem[]): CardHomeItem | null {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function formatSvgDataUri(svg: string | null | undefined): string {
|
||||
if (svg == null) {
|
||||
return '';
|
||||
}
|
||||
const trimmed = svg.trim();
|
||||
if (trimmed === '') {
|
||||
return '';
|
||||
}
|
||||
if (
|
||||
trimmed.indexOf('http://') === 0 ||
|
||||
trimmed.indexOf('https://') === 0 ||
|
||||
trimmed.indexOf('data:') === 0
|
||||
) {
|
||||
return trimmed;
|
||||
}
|
||||
if (trimmed.indexOf('<svg') === 0) {
|
||||
return 'data:image/svg+xml;utf8,' + encodeURIComponent(trimmed);
|
||||
}
|
||||
return trimmed;
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ const EXCHANGE_TEXTS: Record<string, Record<string, string>> = {
|
||||
submit: '提交留资',
|
||||
submitting: '提交中...',
|
||||
badge: '双向名片互换',
|
||||
badgeAi: 'AI 极速识别',
|
||||
badgeAi: '智能扫描识别',
|
||||
contactSectionTitle: '联系人信息',
|
||||
contactSectionDesc: '留下真实商务联系方式,便于后续及时跟进',
|
||||
intentTitle: '沟通意向 (快捷选择)',
|
||||
|
||||
在新工单中引用
屏蔽一个用户