Update OfferResultCard: add location, mini map, fix price format
All checks were successful
Build Docker Image / build (push) Successful in 4m30s
All checks were successful
Build Docker Image / build (push) Successful in 4m30s
- Remove distance from right side (shown in stepper) - Change price format to symbol + formatted number (e.g. $1,200/тонна) - Add locationName prop for displaying offer location - Add LocationMiniMap component for showing point on map - Update hub page and CalcResultContent to pass coordinates
This commit is contained in:
@@ -21,11 +21,13 @@
|
||||
v-for="option in productRouteOptions"
|
||||
:key="option.sourceUuid"
|
||||
:source-name="option.sourceName || 'Склад'"
|
||||
:location-name="getOfferData(option.sourceUuid)?.locationName"
|
||||
:product-name="productName"
|
||||
:price-per-unit="getOfferData(option.sourceUuid)?.pricePerUnit"
|
||||
:currency="getOfferData(option.sourceUuid)?.currency"
|
||||
:unit="getOfferData(option.sourceUuid)?.unit"
|
||||
:total-distance="option.distanceKm || 0"
|
||||
:latitude="option.sourceLat"
|
||||
:longitude="option.sourceLon"
|
||||
:stages="getRouteStages(option)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user