autosos-maui/Views/LoginView.xaml

38 lines
1.9 KiB
XML

<?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="autosos_maui.Views.LoginView"
xmlns:viewmodels="clr-namespace:autosos_maui.ViewModels"
x:DataType="viewmodels:LoginViewModel">
<ContentPage.Content>
<VerticalStackLayout Padding="20" Spacing="20">
<HorizontalStackLayout VerticalOptions="Center">
<Image Source="ic_launcher.png" WidthRequest="50" HeightRequest="50" />
<VerticalStackLayout Margin="20,0">
<Label Text="欢迎登录啾啾救援" FontSize="20" FontAttributes="Bold"></Label>
<Label Text="宁波易到互联科技有限公司"></Label>
</VerticalStackLayout>
</HorizontalStackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="+86" Padding="10" HorizontalOptions="Center" VerticalOptions="Center" FontSize="16"></Label>
<Label Text="|" Padding="15" HorizontalOptions="Center" VerticalOptions="Center"></Label>
<StackLayout HorizontalOptions="FillAndExpand">
<Entry Placeholder="请输入手机号" Text="{Binding UserName,Mode=TwoWay}"
Style="{StaticResource Autosos-Entry}" Keyboard="Numeric">
</Entry>
</StackLayout>
</StackLayout>
<StackLayout HorizontalOptions="FillAndExpand">
<Entry Placeholder="请输入密码" Text="{Binding Password, Mode=TwoWay}"
Style="{StaticResource Autosos-Entry}" Keyboard="Numeric">
</Entry>
</StackLayout>
<Button Text="登录" Command="{Binding LoginCommand}"></Button>
</VerticalStackLayout>
</ContentPage.Content>
</ContentPage>