File tree Expand file tree Collapse file tree 4 files changed +31
-5
lines changed Expand file tree Collapse file tree 4 files changed +31
-5
lines changed Original file line number Diff line number Diff line change
1
+ <MudDialog DefaultFocus =" DefaultFocus.FirstChild" >
2
+ <DialogContent >
3
+ <div class =" d-flex flex-column mx-3 my-3" >
4
+ <MudChip T =" string" Label =" true" >请使用微信扫一扫</MudChip >
5
+ <MudImage Src =" images/wxPay.jpg" Width =" 320" Height =" 320" Elevation =" 25" Class =" mt-3 rounded-lg" />
6
+ </div >
7
+ </DialogContent >
8
+ </MudDialog >
Original file line number Diff line number Diff line change 28
28
<MudSpacer />
29
29
30
30
<div class =" d-flex" @onmouseup:stopPropagation =" true" @onmousedown:stopPropagation =" true" >
31
+ <MudTooltip Text =" 打赏" Delay =" 300" >
32
+ <MudIconButton Icon =" @Icons.Material.Filled.Coffee"
33
+ Size =" Size.Medium"
34
+ OnClick =" OpenPayDialog" />
35
+ </MudTooltip >
31
36
32
37
@if (AppSettings .AppThemeInt == 0 )
33
38
{
34
- <MudTooltip Text =" 浅色主题" Delay =" 600 " >
39
+ <MudTooltip Text =" 浅色主题" Delay =" 300 " >
35
40
<MudIconButton Icon =" @Icons.Material.Filled.WbSunny"
36
41
Size =" Size.Medium"
37
42
OnClick =" ChangeTheme" />
38
43
</MudTooltip >
39
44
}
40
45
else if (AppSettings .AppThemeInt == 1 )
41
46
{
42
- <MudTooltip Text =" 深色主题" Delay =" 600 " >
47
+ <MudTooltip Text =" 深色主题" Delay =" 300 " >
43
48
<MudIconButton Icon =" @Icons.Material.Filled.DarkMode"
44
49
Size =" Size.Medium"
45
50
OnClick =" ChangeTheme" />
46
51
</MudTooltip >
47
52
}
48
53
else
49
54
{
50
- <MudTooltip Text =" 使用系统主题" Delay =" 600 " >
55
+ <MudTooltip Text =" 使用系统主题" Delay =" 300 " >
51
56
<MudIconButton Icon =" @Icons.Material.Filled.AutoMode"
52
57
Size =" Size.Medium"
53
58
OnClick =" ChangeTheme" />
54
59
</MudTooltip >
55
60
}
56
- <MudTooltip Text =" 设置" Delay =" 600 " >
61
+ <MudTooltip Text =" 设置" Delay =" 300 " >
57
62
<MudIconButton Icon =" @Icons.Material.Filled.Settings"
58
63
Size =" Size.Medium"
59
64
OnClick =" OpenSettingsDialog" />
65
70
@Body
66
71
</MudMainContent >
67
72
68
- <Setting @ref =" @_settings" />
73
+ <Setting @ref =" @_settings" />
69
74
</MudLayout >
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public partial class MainLayout
18
18
[ Inject ]
19
19
private IStringLocalizer < Lang > Lang { get ; set ; } = default ! ;
20
20
21
+ [ Inject ]
22
+ private IDialogService Dialog { get ; set ; } = default ! ;
21
23
protected override async Task OnInitializedAsync ( )
22
24
{
23
25
await base . OnInitializedAsync ( ) ;
@@ -107,4 +109,15 @@ private async Task OpenSettingsDialog()
107
109
{
108
110
await _settings . OpenAsync ( ) ;
109
111
}
112
+
113
+ private async Task OpenPayDialog ( )
114
+ {
115
+ var noHeader = new DialogOptions ( )
116
+ {
117
+ NoHeader = true ,
118
+ BackgroundClass = "dialog-blurry" ,
119
+ CloseOnEscapeKey = false ,
120
+ } ;
121
+ var dialog = await Dialog . ShowAsync < Pay > ( "" , noHeader ) ;
122
+ }
110
123
}
You can’t perform that action at this time.
0 commit comments