From a4124c6b5096d13eb0bfff8d9b3a79276e052ecc Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Mon, 18 May 2026 00:03:38 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D0=BA=D0=B0=D1=80=D1=82=D0=BE=D1=87=D0=BA?= =?UTF-8?q?=D1=83=20=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82=D0=B0=20=D0=B2?= =?UTF-8?q?=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B1=D0=BE=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Заголовок 'История подборов' → 'Карточка клиента' - Убрать инлайн-монтирование Proposals.mountManager в карточке клиента - Оставить только кнопку 'Открыть →' для перехода к подборам - Версия clients.js: 20260518a --- miniapp/assets/clients.js | 32 +++++++++++--------------------- miniapp/index.html | 2 +- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/miniapp/assets/clients.js b/miniapp/assets/clients.js index 44a3ed6..d6796f8 100644 --- a/miniapp/assets/clients.js +++ b/miniapp/assets/clients.js @@ -564,7 +564,7 @@ const Clients = (function () { async function renderClientHistory(clientKey) { root.innerHTML = ""; - root.appendChild(headerEl("История подборов", "#/clients")); + root.appendChild(headerEl("Карточка клиента", "#/clients")); // Берём из кеша если есть let clients = clientsCache?.clients; @@ -734,27 +734,17 @@ const Clients = (function () { // Детальные списки внизу (свёрнуты) detailsPlaceholder.replaceWith(renderClientDetails(client, myMeasurements)); - // Подбор техники (Proposals) — секция для менеджера - if (typeof Proposals !== "undefined") { - const clientKey = (client.client_tg_id || client.client_name || "").toLowerCase(); - const propWrapper = el(` -
-
- 🛍 Подбор техники - Открыть → -
-
+ // Подбор техники — только ссылка, без инлайн-загрузки всего списка + const clientKeyProp = encodeURIComponent((client.client_tg_id || client.client_name || "").toLowerCase()); + const propWrapper = el(` +
+
+ 🛍 Подбор техники + Открыть →
- `); - proposalPlaceholder.replaceWith(propWrapper); - const propContainer = propWrapper.querySelector("#propInlineContainer"); - Proposals.mountManager(propContainer, clientKey, client.client_tg_id || "") - .catch(() => { - propContainer.innerHTML = `
Не удалось загрузить подборку.
`; - }); - } else { - proposalPlaceholder.remove(); - } +
+ `); + proposalPlaceholder.replaceWith(propWrapper); // (управление перенесено наверх — сразу под шапку) } diff --git a/miniapp/index.html b/miniapp/index.html index 6186d32..94ae64a 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -39,7 +39,7 @@ - +