修复手机号登录步进器:移除默认英文按钮避免绕过发码逻辑

This commit is contained in:
meoacgx committed 2025-12-19 16:35:09 +08:00
1 parent 8c2499e988
commit f23d62a327
1 file changed
+38 -31
@@ -12,9 +12,10 @@
<MudGrid>
<MudItem xs="12" md="6" Class="mx-auto">
<MudCard>
<MudCard>
<MudCardContent>
<MudStepper @ref="stepper" Color="Color.Primary">
<ChildContent>
<MudStep Title="API 配置">
@if (!IsApiConfigured)
{
@@ -72,38 +73,44 @@
查看账号列表
</MudButton>
</MudStep>
</ChildContent>
<ActionContent>
<MudStack Row="true" Spacing="2" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween" Class="w-100">
<MudButton Variant="Variant.Text" Color="Color.Primary"
OnClick="@(async (MouseEventArgs _) => await ResetStepperAsync())">
重置
</MudButton>
<MudStack Row="true" Spacing="2" AlignItems="AlignItems.Center">
@if ((stepper?.ActiveIndex ?? 0) > 0 && !IsFinished)
{
<MudButton Variant="Variant.Text" Color="Color.Primary"
OnClick="@(async (MouseEventArgs _) => await PreviousStepAsync())">
上一步
</MudButton>
}
@if (!IsFinished)
{
<MudButton Variant="Variant.Filled" Color="Color.Primary"
Disabled="@logging"
OnClick="@(async (MouseEventArgs _) => await NextStep())">
@if (logging)
{
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="mr-2" />
<span>处理中...</span>
}
else
{
<span>@(IsLoginActionStep ? "登录" : "下一步")</span>
}
</MudButton>
}
</MudStack>
</MudStack>
</ActionContent>
</MudStepper>
</MudCardContent>
<MudCardActions>
<MudButton Variant="Variant.Text" Color="Color.Primary"
OnClick="@(async (MouseEventArgs _) => await ResetStepperAsync())">
重置
</MudButton>
<MudSpacer />
@if ((stepper?.ActiveIndex ?? 0) > 0 && !IsFinished)
{
<MudButton Variant="Variant.Text" Color="Color.Primary"
OnClick="@(async (MouseEventArgs _) => await PreviousStepAsync())">
上一步
</MudButton>
}
@if (!IsFinished)
{
<MudButton Variant="Variant.Filled" Color="Color.Primary"
Disabled="@logging"
OnClick="@(async (MouseEventArgs _) => await NextStep())">
@if (logging)
{
<MudProgressCircular Size="Size.Small" Indeterminate="true" Class="mr-2" />
<span>处理中...</span>
}
else
{
<span>@(IsLoginActionStep ? "登录" : "下一步")</span>
}
</MudButton>
}
</MudCardActions>
</MudCard>
</MudItem>
</MudGrid>