DmitrMakeev commited on
Commit
89a1f4e
1 Parent(s): 07015c5

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +32 -6
data_gc_tab.html CHANGED
@@ -303,9 +303,38 @@ return link + `<img src="${imageUrl3}" alt="WhatsApp" style="width: 98px; height
303
  }
304
  }},
305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
307
- {title:"Город", field:"b_city", width:95},
308
- {title:"Email", field:"email", width:95},
309
  {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
310
  var data = cell.getData();
311
  const notyf = new Notyf({
@@ -355,10 +384,7 @@ return link + `<img src="${imageUrl3}" alt="WhatsApp" style="width: 98px; height
355
  var ad_url = cell.getValue();
356
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
357
  }},
358
- {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
359
- var vk_id = cell.getValue();
360
- return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
361
- }},
362
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
363
  var chatId = cell.getValue();
364
  if (chatId.startsWith('@')) {
 
303
  }
304
  }},
305
 
306
+
307
+
308
+
309
+
310
+ {title:"ВКонтакте", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
311
+ var vk_id = cell.getValue();
312
+ var imageUrlvk1 = "https://i.ibb.co/b5sY26p/whatsapp-1.png"; // Замените на URL первой картинки
313
+ var imageUrlvk2 = "https://i.ibb.co/b5sY26p/whatsapp-1.png"; // Замените на URL второй картинки
314
+ var link1 = `<a href="https://vk.com/id${vk_id}" target="_blank">`;
315
+ var link2 = `<a href="https://vk.com" target="_blank">`;
316
+ // Проверка условий
317
+ if (vk_id === "0" || vk_id === "") {
318
+ // Если vk_id равен "0" или пуст
319
+ return link1 + `<img src="${imageUrlvk1}" alt="Image" style="width: 98px; height: 14px;">`;
320
+ } else {
321
+ // Если vk_id не пуст и не равен "0"
322
+ return link2 + `<img src="${imageUrlvk2}" alt="Image" style="width: 98px; height: 14px;">`;
323
+ }
324
+ }},
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
 
336
+ {title:"Город", field:"b_city", width:95},
337
+ {title:"Email", field:"email", width:95},
338
  {title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
339
  var data = cell.getData();
340
  const notyf = new Notyf({
 
384
  var ad_url = cell.getValue();
385
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
386
  }},
387
+
 
 
 
388
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
389
  var chatId = cell.getValue();
390
  if (chatId.startsWith('@')) {