diff --git a/src/app/interceptors/mock-data.interceptor.ts b/src/app/interceptors/mock-data.interceptor.ts index 45e329b..d0591e3 100644 --- a/src/app/interceptors/mock-data.interceptor.ts +++ b/src/app/interceptors/mock-data.interceptor.ts @@ -615,6 +615,47 @@ const MOCK_ITEMS: any[] = [ ], questions: [] }, + { + id: 'bolset-cream', + categoryID: 2010, + itemID: 496218563, + name: 'Женские кеды BOLSET (кремовый)', + description: 'Сезон: Весна - лето (SS)\nМатериал : телячья кожа\nПроизводство: Турция\n\nРазмерный ряд: 36 - 40 (EU)', + discount: 0, + rating: 0, + visible: true, + priority: 0, + tags: null, + badges: null, + basecurrency: '', + itemDetails: [ + { color: '0xFFFDD0', size: '37', price: 6899.94, currency: 'RUB', remaining: 100 }, + { color: '0xFFFDD0', size: '38', price: 6900, currency: 'RUB', remaining: 100 }, + { color: '0xFFFDD0', size: '39', price: 6900, currency: 'RUB', remaining: 100 }, + { color: '0xFFFDD0', size: '40', price: 6900, currency: 'RUB', remaining: 100 }, + { color: '0xFFFDD0', size: '41', price: 6900, currency: 'RUB', remaining: 100 }, + { color: '0xFFFDD0', size: '37', price: 94.09, currency: 'USD', remaining: 100 }, + { color: '0xFFFDD0', size: '37', price: 82.04, currency: 'EUR', remaining: 100 }, + { color: '0xFFFDD0', size: '37', price: 34900.47, currency: 'AMD', remaining: 100 } + ], + names: [ + { language: 'ru', valuue: '' } + ], + descriptions: [ + { language: 'ru', value: 'Сезон: Весна - лето (SS)\nМатериал : телячья кожа\nПроизводство: Турция\n\nРазмерный ряд: 36 - 40 (EU)' } + ], + attributes: [], + photos: [ + { type: 'photo', url: './images/496218563.webp' } + ], + questions: [], + visits: 0, + callbacks: [], + partnerID: '', + delivery: [ + { deliveryPrice: 0, deliveryPlace: 'по всему миру', deliveryTime: '30 минут' } + ] + }, { id: 'lamp-smart', itemID: 301, diff --git a/src/app/pages/item-detail/item-detail.component.html b/src/app/pages/item-detail/item-detail.component.html index 95e33f9..22807c6 100644 --- a/src/app/pages/item-detail/item-detail.component.html +++ b/src/app/pages/item-detail/item-detail.component.html @@ -144,6 +144,32 @@ } + @if (hasDeliveryInfo()) { +
+

{{ 'cart.deliveryLabel' | translate }}

+ + @if (isDigitalDelivery()) { +
{{ 'cart.digitalDelivery' | translate }}
+ } @else { +
+ @for (option of deliveryOptions(); track trackByDeliveryOption($index, option)) { +
+
+ @if (option.deliveryPlace) { + {{ 'cart.deliveryPlace' | translate }}: {{ option.deliveryPlace }} + } + @if (option.deliveryTime) { + {{ 'cart.deliveryTime' | translate }}: {{ option.deliveryTime }} + } +
+ {{ option.deliveryPrice | number:'1.2-2' }} {{ getDeliveryCurrency() }} +
+ } +
+ } +
+ } +