fix: 4 UI fixes for package display
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m54s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m54s
1. Toman/Rial mismatch — Price from server is in Rial, now divides by 10 for correct Toman display 2. ضریب تخفیف → ضریب اعتبار label change in dialog + packages page 3. Back button already functional (ArrowForward in TitleContent) — verified 4. HTML rendering in package description via MarkupString
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
{
|
{
|
||||||
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Spacing="1" AlignItems="AlignItems.Center">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
<MudIcon Icon="@Icons.Material.Filled.Check" Size="Size.Small" Color="Color.Primary" />
|
||||||
<MudText Typo="Typo.caption">ضریب تخفیف: @package.DiscountMultiplier.ToString("F1")x</MudText>
|
<MudText Typo="Typo.caption">ضریب اعتبار: @package.DiscountMultiplier.ToString("F1")x</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
}
|
}
|
||||||
@if (package.MagicWalletMultiplier > 0)
|
@if (package.MagicWalletMultiplier > 0)
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
{
|
{
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary"
|
<MudText Typo="Typo.caption" Class="mud-text-secondary"
|
||||||
Style="display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;">
|
Style="display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;">
|
||||||
@pkg.Description
|
@((MarkupString)pkg.Description)
|
||||||
</MudText>
|
</MudText>
|
||||||
}
|
}
|
||||||
@* Key features *@
|
@* Key features *@
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
{
|
{
|
||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Discount" Size="Size.Small" Class="me-1" Style="font-size:.85rem;vertical-align:middle;" />
|
<MudIcon Icon="@Icons.Material.Filled.Discount" Size="Size.Small" Class="me-1" Style="font-size:.85rem;vertical-align:middle;" />
|
||||||
ضریب تخفیف: @pkg.DiscountMultiplier.ToString("F1")x
|
ضریب اعتبار: @pkg.DiscountMultiplier.ToString("F1")x
|
||||||
</MudText>
|
</MudText>
|
||||||
}
|
}
|
||||||
@if (pkg.SupportsDayaPurchase)
|
@if (pkg.SupportsDayaPurchase)
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ public record PackageDto(
|
|||||||
bool SupportsDayaPurchase = false,
|
bool SupportsDayaPurchase = false,
|
||||||
bool SupportsDirectPurchase = false)
|
bool SupportsDirectPurchase = false)
|
||||||
{
|
{
|
||||||
public string FormattedPrice => string.Format("{0:N0} تومان", Price);
|
/// <summary>قیمت به تومان — مقدار Price از سرور به ریال است</summary>
|
||||||
|
public string FormattedPrice => string.Format("{0:N0} تومان", Price / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user