deploy: 2026-07-15 14:04 部署更新
This commit is contained in:
@@ -620,6 +620,18 @@ async function loadCustomers() {
|
||||
}
|
||||
|
||||
// --- 客户详情 ---
|
||||
|
||||
/** 切换 AI 沟通摘要的折叠/展开状态 */
|
||||
function toggleSummary() {
|
||||
const body = document.getElementById('summary-body');
|
||||
const arrow = document.getElementById('summary-arrow');
|
||||
if (!body || !arrow) return;
|
||||
const collapsed = body.style.display === 'none';
|
||||
body.style.display = collapsed ? '' : 'none';
|
||||
arrow.classList.toggle('rotate-90', collapsed);
|
||||
arrow.classList.toggle('rotate-0', !collapsed);
|
||||
}
|
||||
|
||||
async function showCustomerDetail(id) {
|
||||
currentCustomerId = id;
|
||||
currentMsgPage = 1;
|
||||
@@ -643,10 +655,14 @@ async function showCustomerDetail(id) {
|
||||
|
||||
const summary = document.getElementById('detail-summary');
|
||||
summary.innerHTML = `
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<div class="flex items-center justify-between mb-3 cursor-pointer select-none" onclick="toggleSummary()">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg id="summary-arrow" class="w-4 h-4 text-gray-400 transition-transform rotate-90" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/></svg>
|
||||
<h3 class="font-semibold">AI 沟通摘要</h3>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">分析时间: ${customer.last_analysis ? new Date(customer.last_analysis).toLocaleString('zh-CN') : '-'}</span>
|
||||
</div>
|
||||
<div id="summary-body" class="transition-all duration-200 overflow-hidden">
|
||||
<div class="bg-gray-50 border border-gray-100 rounded-lg p-4 mb-4">
|
||||
<p class="text-sm text-gray-700 leading-relaxed">${customer.summary || '暂无摘要'}</p>
|
||||
</div>
|
||||
@@ -673,6 +689,7 @@ async function showCustomerDetail(id) {
|
||||
<span class="text-gray-700">${customer.next_action || '-'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
await loadCustomerMessages();
|
||||
|
||||
Reference in New Issue
Block a user