DmitrMakeev
commited on
Commit
•
16e42cf
1
Parent(s):
bebb545
Update data_gc_tab.html
Browse files- data_gc_tab.html +13 -6
data_gc_tab.html
CHANGED
@@ -15,8 +15,6 @@
|
|
15 |
|
16 |
|
17 |
|
18 |
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
|
19 |
-
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
20 |
|
21 |
|
22 |
|
@@ -31,7 +29,11 @@
|
|
31 |
|
32 |
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
35 |
<style>
|
36 |
body {
|
37 |
font-family: Arial, sans-serif;
|
@@ -274,14 +276,19 @@
|
|
274 |
{title:"Email", field:"email", width:110},
|
275 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
276 |
var data = cell.getData();
|
|
|
|
|
|
|
|
|
277 |
Swal.fire({
|
278 |
title: 'Детали пользователя',
|
279 |
html: `
|
280 |
-
<strong>Имя:</strong> ${
|
|
|
281 |
<strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
|
282 |
<strong>Реплики:</strong> ${data.b_mess}
|
283 |
`,
|
284 |
-
icon: '
|
285 |
confirmButtonText: 'Закрыть',
|
286 |
confirmButtonColor: '#4CAF50',
|
287 |
customClass: {
|
@@ -290,7 +297,7 @@
|
|
290 |
content: 'content-custom'
|
291 |
}
|
292 |
});
|
293 |
-
}},
|
294 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
295 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
296 |
var status = cell.getValue();
|
|
|
15 |
|
16 |
|
17 |
|
|
|
|
|
18 |
|
19 |
|
20 |
|
|
|
29 |
|
30 |
|
31 |
|
32 |
+
<!-- Подключение стилей для SweetAlert2 -->
|
33 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
|
34 |
+
<!-- Подключение скрипта для SweetAlert2 -->
|
35 |
+
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js"></script>
|
36 |
+
|
37 |
<style>
|
38 |
body {
|
39 |
font-family: Arial, sans-serif;
|
|
|
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> ${userName}<br>
|
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: 'Закрыть',
|
293 |
confirmButtonColor: '#4CAF50',
|
294 |
customClass: {
|
|
|
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();
|