Update data_gc_tab.html
Browse files- data_gc_tab.html +4 -8
data_gc_tab.html
CHANGED
|
@@ -276,17 +276,13 @@
|
|
| 276 |
{title:"Email", field:"email", width:110},
|
| 277 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
| 278 |
var data = cell.getData();
|
| 279 |
-
// Убедимся, что у пользователя есть имя и ссылка
|
| 280 |
-
var userName = data.name || 'Имя не указано';
|
| 281 |
-
var userLink = data.user_link || ''; // Предполагаем, что есть поле user_link с ссылкой
|
| 282 |
-
|
| 283 |
Swal.fire({
|
| 284 |
title: 'Детали пользователя',
|
| 285 |
html: `
|
| 286 |
-
<strong>Имя:</strong> ${
|
| 287 |
-
${userLink ? `<strong>Ссылка:</strong> <a href="${userLink}" target="_blank">${userLink}</a><br>` : ''}
|
| 288 |
<strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
|
| 289 |
-
<strong>Реплики:</strong> ${data.b_mess}
|
|
|
|
| 290 |
`,
|
| 291 |
icon: 'info',
|
| 292 |
confirmButtonText: 'Закрыть',
|
|
@@ -297,7 +293,7 @@
|
|
| 297 |
content: 'content-custom'
|
| 298 |
}
|
| 299 |
});
|
| 300 |
-
}},
|
| 301 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
| 302 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
| 303 |
var status = cell.getValue();
|
|
|
|
| 276 |
{title:"Email", field:"email", width:110},
|
| 277 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
| 278 |
var data = cell.getData();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
Swal.fire({
|
| 280 |
title: 'Детали пользователя',
|
| 281 |
html: `
|
| 282 |
+
<strong>Имя:</strong> ${data.name}<br>
|
|
|
|
| 283 |
<strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
|
| 284 |
+
<strong>Реплики:</strong> ${data.b_mess}<br>
|
| 285 |
+
${data.user_link ? `<strong>Ссылка:</strong> <a href="${data.user_link}" target="_blank">${data.user_link}</a>` : ''}
|
| 286 |
`,
|
| 287 |
icon: 'info',
|
| 288 |
confirmButtonText: 'Закрыть',
|
|
|
|
| 293 |
content: 'content-custom'
|
| 294 |
}
|
| 295 |
});
|
| 296 |
+
}},
|
| 297 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
| 298 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
| 299 |
var status = cell.getValue();
|