feat: Magic Wallet Phase 6 UI + purchase cycle controls
- FrontOffice.Main.csproj: switch to ProjectReference for CMS Protobuf - MagicWallet.razor.cs: update default record with PurchaseCycleCount - WalletService.cs: add PurchaseCycleCount to MagicWalletStatus record - Profile/Index.razor.cs: load _purchaseCycleCount from MagicWalletStatus - Profile/Index.razor: conditional purchase dialog (IPG vs Daya by cycle) - Licenses.razor: fix grid column size xs=6
This commit is contained in:
@@ -45,6 +45,7 @@ public partial class Index
|
||||
// Purchase Options Bottom Sheet
|
||||
private bool _showPurchaseBottomSheet;
|
||||
private bool _isProcessingPayment;
|
||||
private int _purchaseCycleCount; // تعداد دورهای خرید — اگر > 0 فقط IPG مجاز
|
||||
|
||||
// Dashboard Tiles
|
||||
private readonly List<DashTile> _dashTiles = new()
|
||||
@@ -148,6 +149,11 @@ public partial class Index
|
||||
var discount = FormatPrice(b.DiscountBalance);
|
||||
_walletNetwork = FormatPrice(b.NetworkBalance);
|
||||
_walletDiscount = discount;
|
||||
|
||||
// بارگذاری تعداد دورهای خرید برای کنترل روشهای پرداخت
|
||||
var magicStatus = await WalletService.GetMagicWalletStatusAsync();
|
||||
_purchaseCycleCount = magicStatus.PurchaseCycleCount;
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user