feat: update membership and network terminology to customer club language
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
@if (_membership.IsActive)
|
||||
{
|
||||
<MudAlert Severity="Severity.Success" Variant="Variant.Outlined">
|
||||
<MudText>عضویت شما در باشگاه فعال است! از مزایای باشگاه مشتریان استفاده کنید.</MudText>
|
||||
<MudText>عضویت شما در باشگاه مشتریان فعال است و هم اکنون میتوانید از مزایای باشگاه مشتریان استفاده کنید.</MudText>
|
||||
</MudAlert>
|
||||
|
||||
@if (_membership.DaysRemaining.HasValue)
|
||||
@@ -88,16 +88,16 @@
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
||||
<MudIcon Icon="@Icons.Material.Filled.TrendingUp" Color="Color.Primary" Size="Size.Large" />
|
||||
<MudStack Spacing="0">
|
||||
<MudText Typo="Typo.subtitle1">عضویت در شبکه بازاریابی</MudText>
|
||||
<MudText Typo="Typo.caption" Color="Color.Default">عضویت در شبکه بازاریابی و دریافت پورسانت</MudText>
|
||||
<MudText Typo="Typo.subtitle1">عضویت در باشگاه مشتریان</MudText>
|
||||
<MudText Typo="Typo.caption" Color="Color.Default"> دریافت پاداش وفاداری</MudText>
|
||||
</MudStack>
|
||||
</MudStack>
|
||||
<MudDivider />
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2" Class="pa-2">
|
||||
<MudIcon Icon="@Icons.Material.Filled.GroupAdd" Color="Color.Secondary" Size="Size.Large" />
|
||||
<MudStack Spacing="0">
|
||||
<MudText Typo="Typo.subtitle1">جذب زیرمجموعه</MudText>
|
||||
<MudText Typo="Typo.caption" Color="Color.Default">امکان جذب زیرمجموعه و گسترش شبکه</MudText>
|
||||
<MudText Typo="Typo.subtitle1">معرفی مشتریان جدید</MudText>
|
||||
<MudText Typo="Typo.caption" Color="Color.Default">توسعه باشگاه مشتریان</MudText>
|
||||
</MudStack>
|
||||
</MudStack>
|
||||
</MudStack>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<MudContainer MaxWidth="MaxWidth.Large" Class="py-6">
|
||||
<MudStack Spacing="3">
|
||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||
<MudText Typo="Typo.h5">آمار شبکه من</MudText>
|
||||
<MudText Typo="Typo.h5">آمار باشگاه توسعه دهندگان</MudText>
|
||||
<MudButton Variant="Variant.Text" StartIcon="@Icons.Material.Filled.ArrowBack" Href="@RouteConstants.Profile.Index">بازگشت</MudButton>
|
||||
</MudStack>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<MudItem xs="12" sm="6" md="3">
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">کل اعضای شبکه</MudText>
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">اعضای باشگاه توسعه دهندگان</MudText>
|
||||
<MudText Typo="Typo.h4" Color="Color.Primary">@_statistics.TotalMembers</MudText>
|
||||
<MudIcon Icon="@Icons.Material.Filled.Groups" Color="Color.Primary" />
|
||||
</MudStack>
|
||||
@@ -31,7 +31,7 @@
|
||||
<MudItem xs="12" sm="6" md="3">
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">شاخه چپ</MudText>
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">بخش (A)</MudText>
|
||||
<MudText Typo="Typo.h4" Color="Color.Info">@_statistics.LeftLegCount</MudText>
|
||||
<MudIcon Icon="@Icons.Material.Filled.ChevronLeft" Color="Color.Info" />
|
||||
</MudStack>
|
||||
@@ -40,7 +40,7 @@
|
||||
<MudItem xs="12" sm="6" md="3">
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">شاخه راست</MudText>
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">بخش (B)</MudText>
|
||||
<MudText Typo="Typo.h4" Color="Color.Success">@_statistics.RightLegCount</MudText>
|
||||
<MudIcon Icon="@Icons.Material.Filled.ChevronRight" Color="Color.Success" />
|
||||
</MudStack>
|
||||
@@ -49,7 +49,7 @@
|
||||
<MudItem xs="12" sm="6" md="3">
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">عمق درخت</MudText>
|
||||
<MudText Typo="Typo.subtitle2" Class="mud-text-secondary">فاصله شعب</MudText>
|
||||
<MudText Typo="Typo.h4" Color="Color.Secondary">@_statistics.TreeDepth</MudText>
|
||||
<MudIcon Icon="@Icons.Material.Filled.AccountTree" Color="Color.Secondary" />
|
||||
</MudStack>
|
||||
@@ -59,10 +59,10 @@
|
||||
|
||||
<!-- تعادل شاخهها -->
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudText Typo="Typo.h6" Class="mb-3">تعادل شاخهها</MudText>
|
||||
<MudText Typo="Typo.h6" Class="mb-3">آمار جمعی فعالیت</MudText>
|
||||
<MudStack Spacing="2">
|
||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||
<MudText Typo="Typo.body1">شاخه چپ: <strong>@_statistics.LeftLegCount</strong> عضو</MudText>
|
||||
<MudText Typo="Typo.body1">بخش (A): <strong>@_statistics.LeftLegCount</strong> عضو</MudText>
|
||||
<MudProgressLinear Color="Color.Info"
|
||||
Value="@GetLeftPercentage()"
|
||||
Size="Size.Medium"
|
||||
@@ -70,7 +70,7 @@
|
||||
Style="width: 200px;" />
|
||||
</MudStack>
|
||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||
<MudText Typo="Typo.body1">شاخه راست: <strong>@_statistics.RightLegCount</strong> عضو</MudText>
|
||||
<MudText Typo="Typo.body1">بخش (B): <strong>@_statistics.RightLegCount</strong> عضو</MudText>
|
||||
<MudProgressLinear Color="Color.Success"
|
||||
Value="@GetRightPercentage()"
|
||||
Size="Size.Medium"
|
||||
@@ -80,7 +80,7 @@
|
||||
@if (!string.IsNullOrEmpty(_statistics.WeakerLeg))
|
||||
{
|
||||
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined">
|
||||
شاخه ضعیفتر: <strong>@GetLegText(_statistics.WeakerLeg)</strong>
|
||||
بخش کوچک تر: <strong>@GetLegText(_statistics.WeakerLeg)</strong>
|
||||
</MudAlert>
|
||||
}
|
||||
</MudStack>
|
||||
@@ -88,12 +88,12 @@
|
||||
|
||||
<!-- نمودار دایرهای -->
|
||||
<MudPaper Elevation="2" Class="pa-4 rounded-lg">
|
||||
<MudText Typo="Typo.h6" Class="mb-3">توزیع اعضا</MudText>
|
||||
<MudText Typo="Typo.h6" Class="mb-3">توزیع توسعه دهندگان</MudText>
|
||||
<MudChart ChartType="ChartType.Donut"
|
||||
Width="300px"
|
||||
Height="300px"
|
||||
InputData="@(new double[] { _statistics.LeftLegCount, _statistics.RightLegCount })"
|
||||
InputLabels="@(new[] { "شاخه چپ", "شاخه راست" })"
|
||||
InputLabels="@(new[] { "بخش (A)", "بخش (B)" })"
|
||||
ChartOptions="@_chartOptions" />
|
||||
</MudPaper>
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
StartIcon="@Icons.Material.Filled.AccountTree"
|
||||
Href="@RouteConstants.Profile.Tree"
|
||||
FullWidth="true">
|
||||
مشاهده درخت کامل
|
||||
مشاهده کل توسعه دهندگان
|
||||
</MudButton>
|
||||
<MudButton Variant="Variant.Outlined"
|
||||
Color="Color.Secondary"
|
||||
@@ -140,7 +140,7 @@
|
||||
else if (_hasError)
|
||||
{
|
||||
<MudAlert Severity="Severity.Error" Variant="Variant.Filled">
|
||||
خطا در دریافت آمار شبکه. لطفا دوباره تلاش کنید.
|
||||
خطا در دریافت آمار توسعه دهندگان. لطفا دوباره تلاش کنید.
|
||||
</MudAlert>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="LoadStatisticsAsync">تلاش مجدد</MudButton>
|
||||
}
|
||||
|
||||
@@ -61,15 +61,15 @@ public partial class NetworkStatisticsPage : ComponentBase
|
||||
|
||||
private string GetLegText(string leg) => leg.ToLower() switch
|
||||
{
|
||||
"left" => "شاخه چپ",
|
||||
"right" => "شاخه راست",
|
||||
"left" => "بخش (A)",
|
||||
"right" => "بخش (B)",
|
||||
_ => leg
|
||||
};
|
||||
|
||||
private string GetPositionText(string position) => position.ToLower() switch
|
||||
{
|
||||
"left" => "چپ",
|
||||
"right" => "راست",
|
||||
"left" => "(A)",
|
||||
"right" => "(B)",
|
||||
_ => position
|
||||
};
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
برای فعالسازی لینک دعوت و دعوت دوستان خود به جمع مشتریان ویژه کارابازار، کافی است ابتدا <strong>پکیج پایه ۵۶ میلیونی</strong> را تهیه کنید و سپس در <strong>باشگاه مشتریان</strong> عضو شوید.
|
||||
</MudText>
|
||||
<MudText Typo="Typo.body2" Align="Align.Center" Class="mud-text-secondary">
|
||||
پس از تکمیل این مراحل، میتوانید از مزایای ویژه عضویت در شبکه فروش بهرهمند شده و با معرفی دوستان، کمیسیون دریافت کنید.
|
||||
از مزایای ویژه عضویت در باشگاه مشتریان کارابازار سلامت بهرهمند شده و با فعالیت در زمینه توسعه فروشگاهها پاداش دریافت کنید.
|
||||
</MudText>
|
||||
<MudButton Variant="Variant.Filled"
|
||||
Color="Color.Primary"
|
||||
@@ -230,7 +230,7 @@
|
||||
<MudCard Elevation="1" Class="rounded-lg profile-tile">
|
||||
<MudCardContent Class="d-flex flex-column align-center pa-4">
|
||||
<MudIcon Icon="@Icons.Material.Filled.Payments" Size="Size.Large" Color="Color.Success" />
|
||||
<MudText Typo="Typo.subtitle1" Class="mt-2">کمیسیون</MudText>
|
||||
<MudText Typo="Typo.subtitle1" Class="mt-2">پاداش</MudText>
|
||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">درآمد و تاریخچه</MudText>
|
||||
</MudCardContent>
|
||||
</MudCard>
|
||||
|
||||
Reference in New Issue
Block a user