master
CeZhu 2023-12-31 17:17:26 +08:00
parent a6e495b9b5
commit 47f2756ec6
1 changed files with 87 additions and 54 deletions

View File

@ -8,70 +8,103 @@
<ContentPage.Content> <ContentPage.Content>
<VerticalStackLayout Background="#F3F3F3"> <VerticalStackLayout Background="#F3F3F3">
<StackLayout Orientation="Vertical" Padding="20"> <Frame BackgroundColor="White" CornerRadius="5" BorderColor="Transparent"
Margin="10,5">
<Grid RowSpacing="20">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout Orientation="Horizontal" VerticalOptions="Center"> <Grid.ColumnDefinitions>
<Label Text="接单中" WidthRequest="200" HeightRequest="50" VerticalOptions="Center" FontSize="20"></Label> <ColumnDefinition Width="*" />
<Switch IsToggled="{Binding IsToggled,Mode=TwoWay}"></Switch> <ColumnDefinition Width="*" />
<Label Text="|" WidthRequest="20" HeightRequest="20" TextColor="#BFBFBF"></Label> <ColumnDefinition Width="*" />
<StackLayout HorizontalOptions="End" Orientation="Vertical"> </Grid.ColumnDefinitions>
<Image Source="order_receiving_start.png" IsVisible="{Binding IsToggled}" HeightRequest="30"
WidthRequest="30" /> <StackLayout Orientation="Horizontal" VerticalOptions="Center" Grid.ColumnSpan="3">
<Image Source="order_receiving_end.png" <Label Text="接单中" WidthRequest="200" HeightRequest="50" FontSize="20"
IsVisible="{Binding IsToggled,Converter={StaticResource BoolNegationConverter}}" FontAttributes="Bold">
HeightRequest="30" WidthRequest="30" /> </Label>
<Label Text="订单" HorizontalOptions="Center"></Label> <Switch IsToggled="{Binding IsToggled,Mode=TwoWay}"></Switch>
<Label Text="|" WidthRequest="20" HeightRequest="20" TextColor="#BFBFBF"></Label>
<StackLayout HorizontalOptions="End" Orientation="Vertical">
<Image Source="order_receiving_start.png" IsVisible="{Binding IsToggled}"
HeightRequest="30"
WidthRequest="30" />
<Image Source="order_receiving_end.png"
IsVisible="{Binding IsToggled,Converter={StaticResource BoolNegationConverter}}"
HeightRequest="30" WidthRequest="30" />
<Label Text="订单" HorizontalOptions="Center" TextColor="#919191"></Label>
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout>
</StackLayout>
<Grid Padding="20" Margin="0,30" RowSpacing="20"> <VerticalStackLayout Grid.Row="1" Grid.Column="0">
<Grid.RowDefinitions> <Label Text="10" FontSize="20" FontAttributes="Bold" HorizontalOptions="Center"></Label>
<RowDefinition Height="*" /> <Label Text="钱包(元)" FontSize="12" HorizontalOptions="Center"></Label>
<RowDefinition Height="*" /> </VerticalStackLayout>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions> <VerticalStackLayout Grid.Row="1" Grid.Column="1">
<ColumnDefinition Width="*" /> <Label Text="10" FontSize="20" FontAttributes="Bold" HorizontalOptions="Center"></Label>
<ColumnDefinition Width="*" /> <Label Text="总订单数" FontSize="12" HorizontalOptions="Center"></Label>
<ColumnDefinition Width="*" /> </VerticalStackLayout>
</Grid.ColumnDefinitions>
<!-- 第一行,第一列 --> <VerticalStackLayout Grid.Row="1" Grid.Column="2">
<VerticalStackLayout Grid.Row="0" Grid.Column="0"> <Label Text="10" FontSize="20" FontAttributes="Bold" HorizontalOptions="Center"></Label>
<Label Text="钱包(元)" FontSize="12" HorizontalOptions="Center"></Label> <Label Text="总金额(元)" FontSize="12" HorizontalOptions="Center"></Label>
</VerticalStackLayout> </VerticalStackLayout>
<!-- 第一行,第二列 --> <VerticalStackLayout Grid.Row="2" Grid.Column="0">
<VerticalStackLayout Grid.Row="0" Grid.Column="1"> <Image Source="tixian_ic.png" WidthRequest="20" HeightRequest="30" HorizontalOptions="Center"></Image>
<Label Text="总订单数" FontSize="12" HorizontalOptions="Center"></Label> <Label Text="提现" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label>
</VerticalStackLayout> </VerticalStackLayout>
<!-- 第一行,第三列 --> <VerticalStackLayout Grid.Row="2" Grid.Column="1">
<VerticalStackLayout Grid.Row="0" Grid.Column="2"> <Image Source="gerenzhongxin_ic.png" WidthRequest="20" HeightRequest="30"
<Label Text="总金额(元)" FontSize="12" HorizontalOptions="Center"></Label> HorizontalOptions="Center">
</VerticalStackLayout> </Image>
<Label Text="个人中心" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label>
</VerticalStackLayout>
<!-- 第二行,第一列 --> <VerticalStackLayout Grid.Row="2" Grid.Column="2">
<VerticalStackLayout Grid.Row="1" Grid.Column="0"> <Image Source="shezhi_ic.png" WidthRequest="20" HeightRequest="30" HorizontalOptions="Center"></Image>
<Image Source="tixian_ic.png" WidthRequest="20" HeightRequest="30" HorizontalOptions="Center"></Image> <Label Text="设置" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label>
<Label Text="提现" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label> </VerticalStackLayout>
</VerticalStackLayout> </Grid>
</Frame>
<!-- 第二行,第二列 --> <Frame BackgroundColor="White"
<VerticalStackLayout Grid.Row="1" Grid.Column="1"> BorderColor="Transparent"
<Image Source="gerenzhongxin_ic.png" WidthRequest="20" HeightRequest="30" CornerRadius="5"
HorizontalOptions="Center"> Margin="10,5">
</Image> <Grid RowDefinitions="*,*,*,*" ColumnDefinitions="auto,auto,*" ColumnSpacing="10">
<Label Text="个人中心" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label> <Label
</VerticalStackLayout> Grid.Row="0" Grid.Column="0"
Text="搭电"
FontSize="20"
FontAttributes="Bold"
TextColor="{StaticResource Primary}" />
<Frame
Grid.Row="0" Grid.Column="1"
CornerRadius="8"
HeightRequest="16"
HorizontalOptions="Start"
Padding="4,0">
<Label Text="最近订单" FontSize="8" VerticalOptions="Center" HorizontalOptions="Center" TextColor="#919191" />
</Frame>
<Label
Grid.Row="0" Grid.Column="2"
Text="已完成"
HorizontalOptions="End"
VerticalOptions="Center"
TextColor="#919191">
</Label>
</Grid>
</Frame>
<!-- 第二行,第三列 -->
<VerticalStackLayout Grid.Row="1" Grid.Column="2">
<Image Source="shezhi_ic.png" WidthRequest="20" HeightRequest="30" HorizontalOptions="Center"></Image>
<Label Text="设置" FontSize="14" FontAttributes="Bold" HorizontalOptions="Center"></Label>
</VerticalStackLayout>
</Grid>
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>