去掉底部导航:ai对话

This commit is contained in:
zhonghua.li
2026-04-05 20:37:10 +08:00
parent d73a554bc4
commit b53195de68
7 changed files with 31 additions and 56 deletions

View File

@@ -2432,23 +2432,28 @@
}
return null;
};
// 格式化时间:将 ISO 格式转换为 YYYY-MM-DD HH:mm:ss
// 录音开始时间:优先后端专用字段,兼容多种命名,最后退回创建时间
const recordingStartRaw =
item.startTime ||
item.createTime;
let formattedTime = '';
if (item.createTime) {
const date = new Date(item.createTime);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
formattedTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
if (recordingStartRaw) {
const date = new Date(recordingStartRaw);
if (!Number.isNaN(date.getTime())) {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
formattedTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}
}
return {
id: item.id,
title: `${item.salesName || ''}的服务记录`,
date: formattedTime ? `时间:${formattedTime}` : '',
date: formattedTime ? `开始时间:${formattedTime}` : '',
description: item.summary || '',
customerName: item.customerName || '',
recordingName: item.recordingName || '', // 记录名称