Skip to content

Commit 2309b00

Browse files
committed
赞赏页面样例
1 parent f418c74 commit 2309b00

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<MudDialog>
2+
<DialogContent>
3+
<MudPaper Elevation="0" Class="px-3 py-2 d-flex flex-column align-center">
4+
<MudText Typo="Typo.subtitle1" Class="mb-2" Color="Color.Secondary">
5+
如果你喜欢这款软件,不妨支持一下作者!
6+
</MudText>
7+
8+
<MudChip T="string" Label="true">请使用微信扫一扫</MudChip>
9+
10+
<MudImage Src="images/wxPay.jpg"
11+
Width="320" Height="320"
12+
Elevation="4"
13+
Class="rounded-lg" />
14+
15+
<MudDivider Class="my-2" />
16+
17+
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mb-1">
18+
已有 <strong>5</strong> 人支持
19+
</MudText>
20+
21+
<MudButton Variant="Variant.Filled" Color="Color.Primary" Href="https://jiuling.cc/donation">
22+
查看打赏记录
23+
</MudButton>
24+
</MudPaper>
25+
</DialogContent>
26+
<DialogActions>
27+
<MudButton OnClick="Close">关闭</MudButton>
28+
</DialogActions>
29+
</MudDialog>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace ComputerLock.Components;
2+
3+
public partial class Donation
4+
{
5+
[CascadingParameter]
6+
private IMudDialogInstance MudDialog { get; set; } = null!;
7+
private void Close() => MudDialog.Cancel();
8+
}

0 commit comments

Comments
 (0)