You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
224 lines
14 KiB
224 lines
14 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="SunlightAggregationTerminal.ProfilePage"
|
|
Title="">
|
|
<Grid RowDefinitions="Auto, *"
|
|
ColumnDefinitions="*, Auto"
|
|
BackgroundColor="#F5F5F5">
|
|
<!-- 顶部个人信息区 -->
|
|
<Border Padding="20"
|
|
Grid.Row="0"
|
|
Grid.Column="0" >
|
|
<Grid RowDefinitions="Auto, *"
|
|
ColumnDefinitions="*, Auto">
|
|
<HorizontalStackLayout VerticalOptions="Center" Spacing="15">
|
|
<!-- 信息 -->
|
|
<VerticalStackLayout Grid.Row="0" Grid.Column="0"
|
|
VerticalOptions="Center">
|
|
<Label Text="{Binding UserName}"
|
|
FontSize="26"
|
|
FontAttributes="Bold"
|
|
TextColor="Black" />
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="ID:" FontSize="12" TextColor="Gray" Margin="0,0,0,0"/>
|
|
<Label Text="{Binding UserId}" FontSize="12" TextColor="Gray" Margin="0,0,0,0"/>
|
|
</HorizontalStackLayout>
|
|
</VerticalStackLayout>
|
|
</HorizontalStackLayout>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<ScrollView Grid.Row="1" Grid.Column="0">
|
|
<VerticalStackLayout Spacing="0" Padding="0">
|
|
<Border BackgroundColor="White" Stroke="#CCCCCC" Margin="5,5,5,0" StrokeShape="RoundRectangle 10">
|
|
<Grid>
|
|
<VerticalStackLayout Spacing="0" Padding="0">
|
|
<Label Text="管理" FontSize="12" TextColor="Gray" Margin="15,5,0,5" />
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="0" />
|
|
|
|
<VerticalStackLayout>
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="公司:" VerticalOptions="Center" />
|
|
<Label Text="{Binding Enterprise}" TextColor="Gray" VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="部门:" VerticalOptions="Center" />
|
|
<Label Text="{Binding Department}" TextColor="Gray" VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="组:" VerticalOptions="Center" />
|
|
<Label Text="{Binding Groups}" TextColor="Gray" VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
</ContentView>
|
|
</VerticalStackLayout>
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
</Border>
|
|
<!-- 账号与安全 -->
|
|
<Border BackgroundColor="White" Stroke="#CCCCCC" Margin="5,5,5,0" StrokeShape="RoundRectangle 10">
|
|
<Grid>
|
|
<VerticalStackLayout Spacing="0" Padding="0">
|
|
<Label Text="账号" FontSize="12" TextColor="Gray" Margin="15,5,0,5" />
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="0" />
|
|
|
|
<VerticalStackLayout>
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="账号:" VerticalOptions="Center" />
|
|
<Label Text="{Binding User}" TextColor="Gray"
|
|
VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<Grid>
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="姓名:" VerticalOptions="Center" />
|
|
<Label Text="{Binding UserName}" TextColor="Gray"
|
|
VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text=">" TextColor="Gray"
|
|
VerticalOptions="Center" HorizontalOptions="End"
|
|
Margin="0,0,10,0" FontSize="24"/>
|
|
</Grid>
|
|
<ContentView.GestureRecognizers>
|
|
<TapGestureRecognizer Tapped="UserName_Tapped"/>
|
|
</ContentView.GestureRecognizers>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<Grid>
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="密码:" VerticalOptions="Center" />
|
|
<Label Text="******" TextColor="Gray"
|
|
VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text=">" TextColor="Gray"
|
|
VerticalOptions="Center" HorizontalOptions="End"
|
|
Margin="0,0,10,0" FontSize="24"/>
|
|
</Grid>
|
|
<ContentView.GestureRecognizers>
|
|
<TapGestureRecognizer Tapped="UserPassword_Tapped"/>
|
|
</ContentView.GestureRecognizers>
|
|
</ContentView>
|
|
</VerticalStackLayout>
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- 通用设置 -->
|
|
<Border BackgroundColor="White" Stroke="#CCCCCC"
|
|
Margin="5,5,5,0" StrokeShape="RoundRectangle 10">
|
|
<Grid>
|
|
<VerticalStackLayout Spacing="0" Padding="0">
|
|
<Label Text="通用" FontSize="12"
|
|
TextColor="Gray" Margin="15,10,0,5" />
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" />
|
|
<VerticalStackLayout>
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<Grid>
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="空间清理" VerticalOptions="Center"/>
|
|
<Label Text="" TextColor="Gray"
|
|
VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text=">" TextColor="Gray"
|
|
VerticalOptions="Center" HorizontalOptions="End"
|
|
Margin="0,0,10,0" FontSize="24"/>
|
|
</Grid>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
<ContentView HeightRequest="40" Padding="15,0">
|
|
<Grid VerticalOptions="Center">
|
|
<Label Text="消息通知" VerticalOptions="Center" />
|
|
<Switch IsToggled="{Binding MessageNotificationMode}" HorizontalOptions="End"
|
|
Toggled="MessageNotificationMode_Toggled" VerticalOptions="Center" />
|
|
</Grid>
|
|
</ContentView>
|
|
<ContentView HeightRequest="40" Padding="15,0">
|
|
<Grid VerticalOptions="Center">
|
|
<Label Text="深色模式" VerticalOptions="Center"/>
|
|
<Switch IsToggled="{Binding DarkMode}" HorizontalOptions="End"
|
|
Toggled="DarkMode_Toggled" VerticalOptions="Center"/>
|
|
</Grid>
|
|
</ContentView>
|
|
|
|
</VerticalStackLayout>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="0,0,0,0" />
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- 连接设置 -->
|
|
<Border BackgroundColor="White" Stroke="#CCCCCC" Margin="5,5,5,0" StrokeShape="RoundRectangle 10">
|
|
<Grid >
|
|
<VerticalStackLayout Spacing="0" Padding="0">
|
|
<Label Text="连接" FontSize="12" TextColor="Gray" Margin="15,10,0,5" />
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" />
|
|
<VerticalStackLayout>
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<Grid>
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="服务器:" VerticalOptions="Center" />
|
|
<Label Text="{Binding ServerID}" TextColor="Gray" VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text=">" TextColor="Gray" VerticalOptions="Center" HorizontalOptions="End"
|
|
Margin="0,0,10,0" FontSize="24"/>
|
|
</Grid>
|
|
<ContentView.GestureRecognizers>
|
|
<TapGestureRecognizer Tapped="ServerID_Tapped"/>
|
|
</ContentView.GestureRecognizers>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
<ContentView HeightRequest="50" Padding="15,0">
|
|
<Grid>
|
|
<HorizontalStackLayout VerticalOptions="Center">
|
|
<Label Text="代理:" VerticalOptions="Center" />
|
|
<Label Text="{Binding ProxyID}" TextColor="Gray" VerticalOptions="Center" Margin="0,0,10,0"/>
|
|
</HorizontalStackLayout>
|
|
<Label Text=">" TextColor="Gray" VerticalOptions="Center" HorizontalOptions="End"
|
|
Margin="0,0,10,0" FontSize="24"/>
|
|
</Grid>
|
|
<ContentView.GestureRecognizers>
|
|
<TapGestureRecognizer Tapped="ProxyID_Tapped"/>
|
|
</ContentView.GestureRecognizers>
|
|
</ContentView>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="15,0" />
|
|
<ContentView HeightRequest="40" Padding="15,0">
|
|
<Grid VerticalOptions="Center">
|
|
<Label Text="内网直连" VerticalOptions="Center" />
|
|
<Switch IsToggled="{Binding LocalAreaNetworkMode}" HorizontalOptions="End"
|
|
Toggled="LocalAreaNetworkMode_Toggled" VerticalOptions="Center"/>
|
|
</Grid>
|
|
</ContentView>
|
|
</VerticalStackLayout>
|
|
<BoxView HeightRequest="1" Color="#E0E0E0" Margin="0,0,0,0" />
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- 退出登录 -->
|
|
<Button x:Name="Out_Button"
|
|
Text="退出登录"
|
|
BackgroundColor="White"
|
|
TextColor="Red"
|
|
BorderColor="Red"
|
|
BorderWidth="1"
|
|
Margin="20, 30"
|
|
CornerRadius="8"
|
|
Clicked="Out_Clicked" />
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</Grid>
|
|
</ContentPage>
|