feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口
补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。 Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -269,6 +269,7 @@ import { getCurrentLocale, getOmniText, isRtl } from '../../common/locale.uts';
|
||||
import { utsLightColors, utsRadius, utsSpacing, utsTypography } from '../../common/tokens.uts';
|
||||
import {
|
||||
applyLeadDetailOptions,
|
||||
callLeadPhone,
|
||||
createLeadDetailState,
|
||||
formatTrackDepth,
|
||||
formatTrackPlace,
|
||||
@@ -276,6 +277,7 @@ import {
|
||||
formatWhatsAppUrl,
|
||||
generateAiIcebreaker,
|
||||
goBackFromLeadDetail,
|
||||
openLeadWhatsApp,
|
||||
parseNoteAttachments,
|
||||
refreshLeadDetail,
|
||||
resolveLeadDetailText,
|
||||
@@ -285,6 +287,7 @@ import {
|
||||
updateLeadStage,
|
||||
LeadDetailCopyKey,
|
||||
LeadDetailPageOptions,
|
||||
ParsedNoteResult,
|
||||
} from './useLeadDetail.uts';
|
||||
import { parseLeadStatus } from './useLeads.uts';
|
||||
import { RadarTrack } from '../../common/types.uts';
|
||||
@@ -449,12 +452,7 @@ function handleBack(): void {
|
||||
}
|
||||
|
||||
function handleCallPhone(): void {
|
||||
if (phoneText.value === '') {
|
||||
return;
|
||||
}
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneText.value,
|
||||
});
|
||||
callLeadPhone(state.phone);
|
||||
}
|
||||
|
||||
function handleCopyEmail(): void {
|
||||
@@ -468,20 +466,7 @@ function handleCopyEmail(): void {
|
||||
}
|
||||
|
||||
function handleWhatsApp(): void {
|
||||
const waUrl = formatWhatsAppUrl(state.phone);
|
||||
if (waUrl === '') {
|
||||
return;
|
||||
}
|
||||
// #ifdef H5
|
||||
if (typeof window !== 'undefined') {
|
||||
window.open(waUrl, '_blank');
|
||||
return;
|
||||
}
|
||||
// #endif
|
||||
uni.setClipboardData({
|
||||
data: waUrl,
|
||||
showToast: true,
|
||||
});
|
||||
openLeadWhatsApp(state.phone);
|
||||
}
|
||||
|
||||
async function handleSaveContact(): Promise<void> {
|
||||
@@ -525,7 +510,24 @@ function handleCopyScript(): void {
|
||||
}
|
||||
|
||||
async function handleSave(): Promise<void> {
|
||||
await submitLeadNote(state);
|
||||
const next = state.nextNote.trim();
|
||||
const hasAttachments =
|
||||
state.attachments != null && state.attachments.length > 0;
|
||||
if (next === '' && !hasAttachments) {
|
||||
uni.showToast({
|
||||
title: resolveLeadDetailText('notesRequiredToast'),
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 仅接口 code === 1000(submitLeadNote 已校验)时提示备忘已保存并清空输入
|
||||
const ok = await submitLeadNote(state);
|
||||
if (ok) {
|
||||
uni.showToast({
|
||||
title: resolveLeadDetailText('noteSavedToast'),
|
||||
icon: 'none',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const parsedNotes = computed((): ParsedNoteResult => {
|
||||
|
||||
在新工单中引用
屏蔽一个用户