DmitrMakeev commited on
Commit
859a67b
·
verified ·
1 Parent(s): 90d04c3

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +20 -22
data_gc_tab.html CHANGED
@@ -29,10 +29,12 @@
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 {
@@ -277,24 +279,20 @@
277
  {title:"Email", field:"email", width:110},
278
  {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
279
  var data = cell.getData();
280
- Swal.fire({
281
- title: 'Детали пользователя',
282
- html: `
283
- <strong>Имя:</strong> ${data.name}<br>
284
- <strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
285
- <strong>Реплики:</strong> ${data.b_mess}<br>
286
- ${data.user_link ? `<strong>Ссылка:</strong> <a href="${data.user_link}" target="_blank">${data.user_link}</a>` : ''}
287
- `,
288
- icon: 'info',
289
- confirmButtonText: 'Закрыть',
290
- confirmButtonColor: '#4CAF50',
291
- customClass: {
292
- confirmButton: 'button is-success',
293
- title: 'title-custom',
294
- content: 'content-custom'
295
- }
296
- });
297
- }},
298
  {title:"Куратор", field:"curator", formatter: linkFormatter},
299
  {title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
300
  var status = cell.getValue();
 
29
 
30
 
31
 
32
+ <!-- Подключение стилей Notyf -->
33
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
34
+
35
+ <!-- Подключение скрипта Notyf -->
36
+ <script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
37
+
38
 
39
  <style>
40
  body {
 
279
  {title:"Email", field:"email", width:110},
280
  {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
281
  var data = cell.getData();
282
+ var notyf = new Notyf(); // Создаем новый экземпляр Notyf
283
+
284
+ // Формируем текст сообщения
285
+ var message = `
286
+ Имя: ${data.name}\n
287
+ WhatsApp: ${data.phone}\n
288
+ Реплики: ${data.b_mess}\n
289
+ ${data.user_link ? `Ссылка: ${data.user_link}` : ''}
290
+ `;
291
+
292
+ // Выводим сообщение в виде уведомления
293
+ notyf.success(message);
294
+ }},
295
+
 
 
 
 
296
  {title:"Куратор", field:"curator", formatter: linkFormatter},
297
  {title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
298
  var status = cell.getValue();