Actualizar index2.html
This commit is contained in:
@@ -1047,6 +1047,11 @@
|
|||||||
compLogo = globalCompanyData.logo;
|
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
|
// Generación de la tarjeta Blanca
|
||||||
let cardHtml = `
|
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">
|
<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>
|
</div>
|
||||||
<span class="text-xs font-black text-slate-700 uppercase tracking-widest truncate max-w-[130px]" title="${compName}">${compName}</span>
|
<span class="text-xs font-black text-slate-700 uppercase tracking-widest truncate max-w-[130px]" title="${compName}">${compName}</span>
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
<div class="flex items-start gap-4 mb-5">
|
<div class="flex items-start gap-4 mb-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user