Commit a4e41853 authored by 姜春辉's avatar 姜春辉

完成身份认证界面布局

parent b41b4c29
......@@ -24,7 +24,7 @@ namespace GS.Terminal.VisitorSelfService.Logic
private void Instance_onRuntimeCompleted(object sender)
{
ThirdAddon.LogicShell.ShowView(_Locator.MenuPage);
ThirdAddon.LogicShell.ShowView(_Locator.AuthenticationPage);
}
public void Stop(IAddonContext Context)
......
......@@ -19,6 +19,7 @@ namespace ViewModels
ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
CheckRegistVM<Foot>();
CheckRegistVM<Pages.MenuPage.ViewModel>();
CheckRegistVM<Pages.AuthenticationPage.ViewModel>();
}
private void CheckRegistVM<T>() where T : class
......@@ -42,5 +43,13 @@ namespace ViewModels
return SimpleIoc.Default.GetInstance<Pages.MenuPage.ViewModel>();
}
}
public Pages.AuthenticationPage.ViewModel AuthenticationPage
{
get
{
return SimpleIoc.Default.GetInstance<Pages.AuthenticationPage.ViewModel>();
}
}
}
}
using GalaSoft.MvvmLight;
using GS.Terminal.LogicShell.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ViewModels.Pages.AuthenticationPage
{
public partial class ViewModel : ViewModelBase, IViewModel
{
public string ViewID => "bbf0b764-4029-4db8-8beb-97b9627a4ac5";
public void Reset()
{
}
}
}
......@@ -65,6 +65,7 @@
<ItemGroup>
<Compile Include="Foot.cs" />
<Compile Include="Locator.cs" />
<Compile Include="Pages\AuthenticationPage\ViewModel.cs" />
<Compile Include="Pages\MenuPage\ViewModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
......
<Page x:Class="Views.Pages.AuthenticationPage.Index"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Views.Pages.AuthenticationPage"
xmlns:gs="clr-namespace:Develop.Extension.Wpf;assembly=Develop.Extension.Wpf"
mc:Ignorable="d"
d:DesignHeight="1695" d:DesignWidth="1080"
Title="Index">
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Style.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid>
<Grid Margin="100,130,100,0">
<Grid.RowDefinitions>
<RowDefinition Height="990"/>
<RowDefinition/>
<RowDefinition Height="140"/>
</Grid.RowDefinitions>
<StackPanel>
<TextBlock Text="正在通过人脸识别您的身份" FontSize="60" HorizontalAlignment="Center"/>
<Border>
<Grid Margin="0,100,0,0">
<Border Width="600" Height="600" BorderThickness="10" BorderBrush="#02eea6" CornerRadius="300">
<!--580*580-->
<Image/>
</Border>
</Grid>
</Border>
</StackPanel>
<!--识别方式-->
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="其他识别方式" FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Top"/>
<Grid Grid.Row="1" VerticalAlignment="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button VerticalAlignment="Center" HorizontalAlignment="Center">
<Button.Template>
<ControlTemplate TargetType="Button">
<StackPanel>
<gs:ImageButtonFix Command="{TemplateBinding Command}" CommandParameter="{TemplateBinding CommandParameter}"
Width="330" Height="250" HorizontalAlignment="Center" VerticalAlignment="Center"
Image="/Views;component/Resources/auth_mode_idcard.png" />
<TextBlock Text="二代证识别" HorizontalAlignment="Center" FontSize="36"/>
</StackPanel>
</ControlTemplate>
</Button.Template>
</Button>
<Button Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<Button.Template>
<ControlTemplate TargetType="Button">
<StackPanel>
<gs:ImageButtonFix Command="{TemplateBinding Command}" CommandParameter="{TemplateBinding CommandParameter}"
Width="330" Height="250" HorizontalAlignment="Center" VerticalAlignment="Center"
Image="/Views;component/Resources/auth_mode_qrcode.png" />
<TextBlock Text="预约二维码识别" HorizontalAlignment="Center" FontSize="36"/>
</StackPanel>
</ControlTemplate>
</Button.Template>
</Button>
</Grid>
</Grid>
</Grid>
</Grid>
</Page>
using GS.Terminal.LogicShell.Interface;
using GS.Unitive.Framework.Security.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Views.Pages.AuthenticationPage
{
/// <summary>
/// Index.xaml 的交互逻辑
/// </summary>
[Export(typeof(IView))]
[UnitiveView("身份证认证", "", "bbf0b764-4029-4db8-8beb-97b9627a4ac5", null)]
public partial class Index : Page, IView
{
public Index()
{
InitializeComponent();
}
public void BindDataContext(IViewModel vm)
{
DataContext = vm;
}
public object Clone()
{
throw new NotImplementedException();
}
public void GoBack()
{
throw new NotImplementedException();
}
public void GoForward()
{
throw new NotImplementedException();
}
public void NavigateToContent(object content)
{
throw new NotImplementedException();
}
public void Reset()
{
throw new NotImplementedException();
}
}
}
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Views.Pages.AuthenticationPage">
</ResourceDictionary>
\ No newline at end of file
......@@ -26,7 +26,7 @@
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="PART_bg" Value="#f8f6f5"/>
<Setter Property="Background" TargetName="PART_bg" Value="#f0f0ef"/>
</Trigger>
<Trigger Property="IsPressed" Value="False">
<Setter Property="Background" TargetName="PART_bg" Value="#f7f6f5"/>
......
......@@ -67,6 +67,9 @@
<Compile Include="Foot.xaml.cs">
<DependentUpon>Foot.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\AuthenticationPage\Index.xaml.cs">
<DependentUpon>Index.xaml</DependentUpon>
</Compile>
<Compile Include="Pages\MenuPage\Index.xaml.cs">
<DependentUpon>Index.xaml</DependentUpon>
</Compile>
......@@ -98,6 +101,14 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\AuthenticationPage\Index.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\AuthenticationPage\Style.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Pages\MenuPage\Index.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
......@@ -117,5 +128,10 @@
<ItemGroup>
<Resource Include="Resources\menu_or.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\auth_mode_qrcode.png" />
<Resource Include="Resources\auth_mode_idcard.png" />
<Resource Include="Resources\auth_mode_face.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment