From 444e52206d653265d43e0b6969843d711bd0a546 Mon Sep 17 00:00:00 2001
From: nombredeusuariolucasponzoni
<139734105+Lucasponzoni@users.noreply.github.com>
Date: Wed, 19 Feb 2025 18:52:23 -0300
Subject: [PATCH] Actualizar
---
js/meliCardsFisebase.js | 46 +++++++++++++++++++++++++++++++++++++++--
meliAr.html | 2 +-
styles.css | 26 ++++++++++++++++++++++-
3 files changed, 70 insertions(+), 4 deletions(-)
diff --git a/js/meliCardsFisebase.js b/js/meliCardsFisebase.js
index 2934316..f0eebca 100644
--- a/js/meliCardsFisebase.js
+++ b/js/meliCardsFisebase.js
@@ -352,6 +352,7 @@ document.addEventListener('DOMContentLoaded', function() {
pictures: data.pictures,
SKU: data.SKU,
paqid: data.packId,
+ cliente: data.cliente,
Telefono: data.Telefono,
VolumenCM3: data.VolumenCM3,
VolumenM3: data.VolumenM3,
@@ -458,6 +459,7 @@ function cargarDatos() {
localidad: data.localidad,
medidas: data.medidas,
paqid: data.packId,
+ cliente: data.cliente,
permalink: data.permalink,
shippingMode: data.shippingMode,
nombreDeUsuario: data.nombreDeUsuario,
@@ -703,9 +705,10 @@ const paymentHTML = `
-
+
- PaqId: ${data.paqid}
+
+ PaqId: ${data.paqid}
@@ -728,6 +731,13 @@ const paymentHTML = `
+
+
+

+ Cliente Presea:
${data.cliente}
+
+
+
${carouselHTML}
Producto: X ${data.Cantidad} ${data.SKU}
@@ -1003,6 +1013,38 @@ document.querySelectorAll('.editarDatos').forEach(button => {
});
});
+function copiarCliente(cliente) {
+ navigator.clipboard.writeText(cliente).then(() => {
+ showAlert(`Se ha copiado al portapapeles: Cliente ${cliente}`);
+ }).catch(err => {
+ console.error('Error al copiar: ', err);
+ });
+}
+
+function copiarPaqId(paqid) {
+ navigator.clipboard.writeText(paqid).then(() => {
+ showAlert(`Se ha copiado al portapapeles: PaqId ${paqid}`);
+ }).catch(err => {
+ console.error('Error al copiar: ', err);
+ });
+}
+
+// FunciĆ³n para mostrar la alerta
+function showAlert(message) {
+ const alertContainer = document.createElement('div');
+ alertContainer.className = 'alert-ios-meli';
+ alertContainer.innerHTML = `
+
+ ${message}
+
+ `;
+ document.body.appendChild(alertContainer);
+
+ setTimeout(() => {
+ alertContainer.style.display = 'none';
+ }, 3000);
+}
+
async function handleButtonClick(numeroDeEnvio, id) {
// Mostrar spinner
document.getElementById(`spinnerAndreani${id}`).style.display = 'inline-block';
diff --git a/meliAr.html b/meliAr.html
index 8458a73..a64b282 100644
--- a/meliAr.html
+++ b/meliAr.html
@@ -514,7 +514,7 @@
GeneraciĆ³n de Qu
-
+
diff --git a/styles.css b/styles.css
index e54dee6..068a718 100644
--- a/styles.css
+++ b/styles.css
@@ -689,6 +689,12 @@ button:hover {
align-items: center;
}
+.cliente-Container{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.PaqID {
border-radius: 10px 10px 0 0;
width: fit-content;
@@ -706,6 +712,24 @@ button:hover {
z-index: -100;
}
+.cliente {
+ width: 100%;
+ text-align: center;
+ padding: 8px;
+ margin-bottom: -5px;
+ color: #ffffff;
+ font-weight: 500;
+ border: 1px solid cornflowerblue;
+ background-color: indigo;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Fuente de macOS */
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
+ z-index: -100;
+}
+
+.cliente > img{
+ margin-right: 5px;
+}
+
.info-paq{
margin-right: 5px;
}
@@ -5947,7 +5971,7 @@ img.gray-filter {
/* ALERTAS FACTURACION MELI */
.alert-ios-meli {
position: fixed;
- bottom: 20px;
+ bottom: 100px;
right: 20px;
background-color: #f8f9fa;
color: #212529;