diff --git a/miniapp/index.html b/miniapp/index.html
index 7a1baa8e..acab2673 100644
--- a/miniapp/index.html
+++ b/miniapp/index.html
@@ -4643,6 +4643,7 @@
@media (max-width: 480px) {
.container {
padding: 12px;
+ padding-bottom: 100px;
}
.promo-offer-card {
@@ -5047,6 +5048,10 @@
Type
-
+
+ Tariff
+ -
+
Device Limit
-
@@ -5847,6 +5852,7 @@
'info.traffic_used': 'Traffic used',
'info.traffic_limit': 'Traffic limit',
'info.subscription_type': 'Subscription type',
+ 'info.current_tariff': 'Current tariff',
'info.promo_group': 'Promo group',
'info.device_limit': 'Device limit',
'info.autopay': 'Auto-pay',
@@ -6282,6 +6288,7 @@
'info.traffic_used': 'Использовано трафика',
'info.traffic_limit': 'Лимит трафика',
'info.subscription_type': 'Тип подписки',
+ 'info.current_tariff': 'Текущий тариф',
'info.promo_group': 'Уровень',
'info.device_limit': 'Лимит устройств',
'info.autopay': 'Автоплатеж',
@@ -8596,6 +8603,20 @@
: subscriptionTypeLabel;
}
+ // Текущий тариф (только в режиме tariffs)
+ const currentTariffRow = document.getElementById('currentTariffRow');
+ const currentTariffNameEl = document.getElementById('currentTariffName');
+ if (currentTariffRow && currentTariffNameEl) {
+ const salesMode = userData?.salesMode ?? userData?.sales_mode ?? 'classic';
+ const currentTariff = userData?.current_tariff ?? userData?.currentTariff;
+ if (salesMode === 'tariffs' && currentTariff && currentTariff.name) {
+ currentTariffRow.classList.remove('hidden');
+ currentTariffNameEl.textContent = currentTariff.name;
+ } else {
+ currentTariffRow.classList.add('hidden');
+ }
+ }
+
const autopayElement = document.getElementById('autopayStatus');
if (autopayElement) {
const autopayKey = userData?.autopay_enabled ? 'autopay.enabled' : 'autopay.disabled';