feat: 优化UI
This commit is contained in:
@@ -561,7 +561,8 @@
|
||||
<Button Content="📞 联系客服"
|
||||
Height="70"
|
||||
Margin="5"
|
||||
Style="{StaticResource RoundButton}"/>
|
||||
Style="{StaticResource RoundButton}"
|
||||
Command="{Binding ShowCustomerServiceCommand}"/>
|
||||
<Button Content="⚙ 设置"
|
||||
Height="70"
|
||||
Margin="5"
|
||||
@@ -1635,7 +1636,7 @@
|
||||
<Border Background="White"
|
||||
CornerRadius="20"
|
||||
MaxWidth="1000"
|
||||
MaxHeight="800"
|
||||
MaxHeight="700"
|
||||
Padding="0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
@@ -1730,5 +1731,107 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<!-- 联系客服弹窗 -->
|
||||
<Grid Visibility="{Binding IsCustomerServiceDialogOpen, Converter={StaticResource BoolToVisibilityConverter}}"
|
||||
Background="#80000000">
|
||||
<Border Background="White"
|
||||
CornerRadius="20"
|
||||
MaxWidth="800"
|
||||
MaxHeight="600"
|
||||
Padding="0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect Color="#000000" BlurRadius="30" ShadowDepth="10" Opacity="0.5"/>
|
||||
</Border.Effect>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 标题栏 -->
|
||||
<Border Grid.Row="0"
|
||||
Background="#FF6F00"
|
||||
CornerRadius="20,20,0,0"
|
||||
Padding="30,20">
|
||||
<Grid>
|
||||
<TextBlock Text="联系客服"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
<Button Content="✕"
|
||||
FontSize="24"
|
||||
Width="40"
|
||||
Height="40"
|
||||
Background="Transparent"
|
||||
Foreground="White"
|
||||
BorderThickness="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Cursor="Hand"
|
||||
Command="{Binding CloseCustomerServiceCommand}">
|
||||
<Button.Template>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
CornerRadius="20">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Button.Template>
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- 图片内容区 -->
|
||||
<Border Grid.Row="1"
|
||||
Padding="20"
|
||||
Background="White"
|
||||
MinHeight="400">
|
||||
<Grid>
|
||||
<!-- 图片 -->
|
||||
<Image x:Name="CustomerServiceImage"
|
||||
Stretch="Uniform"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
RenderOptions.BitmapScalingMode="HighQuality">
|
||||
<Image.Source>
|
||||
<BitmapImage UriSource="/Images/kef.png"
|
||||
CacheOption="OnLoad"
|
||||
CreateOptions="IgnoreColorProfile"/>
|
||||
</Image.Source>
|
||||
</Image>
|
||||
|
||||
<!-- 加载失败时的提示 -->
|
||||
<TextBlock Text="客服联系方式"
|
||||
FontSize="24"
|
||||
Foreground="#999"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="Collapsed"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<Border Grid.Row="2"
|
||||
Padding="30,20"
|
||||
Background="White"
|
||||
CornerRadius="0,0,20,20">
|
||||
<Button Content="关闭"
|
||||
Height="50"
|
||||
Width="200"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Style="{StaticResource RoundButton}"
|
||||
Command="{Binding CloseCustomerServiceCommand}"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user