Actualizar index2.html

This commit is contained in:
2026-03-29 14:35:09 +00:00
parent 39c7dd1972
commit e9c4429479

View File

@@ -1047,6 +1047,11 @@
compLogo = globalCompanyData.logo;
}
// 🛑 FIX: Buscador inteligente de referencias (HomeServe, Multi, Manuales, etc.)
let numRef = raw["SERVICIO"] || raw["Expediente"] || raw["Referencia"] || raw["service_ref"];
if (!numRef && srv.title && srv.title.includes('#')) numRef = srv.title.split('#')[1].trim();
if (!numRef) numRef = srv.id; // Si falla todo, ponemos el ID interno
// Generación de la tarjeta Blanca
let cardHtml = `
<div id="service-card-${srv.id}" class="bg-white rounded-[2rem] p-6 shadow-sm border border-slate-100 relative text-left transition-all duration-500">
@@ -1058,7 +1063,7 @@
</div>
<span class="text-xs font-black text-slate-700 uppercase tracking-widest truncate max-w-[130px]" title="${compName}">${compName}</span>
</div>
<span class="text-[10px] font-bold text-slate-400 bg-slate-50 px-2.5 py-1.5 rounded-lg border border-slate-100 tracking-widest shrink-0">REF #${srv.service_ref}</span>
<span class="text-[10px] font-bold text-slate-400 bg-slate-50 px-2.5 py-1.5 rounded-lg border border-slate-100 tracking-widest shrink-0">REF #${numRef}</span>
</div>
<div class="flex items-start gap-4 mb-5">