Update data_gc_tab.html
Browse files- data_gc_tab.html +55 -16
data_gc_tab.html
CHANGED
|
@@ -195,6 +195,19 @@
|
|
| 195 |
</style>
|
| 196 |
</head>
|
| 197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
<body>
|
| 199 |
<div id="header">
|
| 200 |
<h1>WhatsCRM - Автопилот + Tilda + Бизон 365 + GetCurse</h1>
|
|
@@ -249,9 +262,9 @@
|
|
| 249 |
|
| 250 |
|
| 251 |
<script>
|
| 252 |
-
|
| 253 |
document.addEventListener('DOMContentLoaded', function() {
|
| 254 |
-
fetch('https://
|
| 255 |
.then(response => response.json())
|
| 256 |
.then(data => {
|
| 257 |
console.log('Data received:', data); // Логирование данных
|
|
@@ -273,24 +286,29 @@
|
|
| 273 |
{title:"Имя", field:"name", width:100},
|
| 274 |
{title:"WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
|
| 275 |
var phone = cell.getValue();
|
| 276 |
-
return `<a href="https://
|
| 277 |
}, width:120},
|
| 278 |
{title:"Город", field:"b_city", width:110},
|
| 279 |
{title:"Email", field:"email", width:110},
|
| 280 |
-
{title:
|
| 281 |
var data = cell.getData();
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
| 295 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
| 296 |
var status = cell.getValue();
|
|
@@ -391,4 +409,25 @@
|
|
| 391 |
|
| 392 |
</body>
|
| 393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 394 |
</html>
|
|
|
|
| 195 |
</style>
|
| 196 |
</head>
|
| 197 |
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
<body>
|
| 212 |
<div id="header">
|
| 213 |
<h1>WhatsCRM - Автопилот + Tilda + Бизон 365 + GetCurse</h1>
|
|
|
|
| 262 |
|
| 263 |
|
| 264 |
<script>
|
| 265 |
+
vkBridge.send('VKWebAppInit');
|
| 266 |
document.addEventListener('DOMContentLoaded', function() {
|
| 267 |
+
fetch('https://dmtuit-gcapirabiz.hf.space/data_gc_tab_out?api_sys=fasSd345D')
|
| 268 |
.then(response => response.json())
|
| 269 |
.then(data => {
|
| 270 |
console.log('Data received:', data); // Логирование данных
|
|
|
|
| 286 |
{title:"Имя", field:"name", width:100},
|
| 287 |
{title:"WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
|
| 288 |
var phone = cell.getValue();
|
| 289 |
+
return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
|
| 290 |
}, width:120},
|
| 291 |
{title:"Город", field:"b_city", width:110},
|
| 292 |
{title:"Email", field:"email", width:110},
|
| 293 |
+
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
| 294 |
var data = cell.getData();
|
| 295 |
+
Swal.fire({
|
| 296 |
+
title: 'Детали пользователя',
|
| 297 |
+
html: `
|
| 298 |
+
<strong>Имя:</strong> ${data.name}<br>
|
| 299 |
+
<strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
|
| 300 |
+
<strong>Реплики:</strong> ${data.b_mess}
|
| 301 |
+
`,
|
| 302 |
+
icon: 'success',
|
| 303 |
+
confirmButtonText: 'Закрыть',
|
| 304 |
+
confirmButtonColor: '#4CAF50',
|
| 305 |
+
customClass: {
|
| 306 |
+
confirmButton: 'button is-success',
|
| 307 |
+
title: 'title-custom',
|
| 308 |
+
content: 'content-custom'
|
| 309 |
+
}
|
| 310 |
+
});
|
| 311 |
+
}},
|
| 312 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
| 313 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
| 314 |
var status = cell.getValue();
|
|
|
|
| 409 |
|
| 410 |
</body>
|
| 411 |
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
|
| 433 |
</html>
|