Browse Source

展示效果

Lishi
xxe 2 years ago
parent
commit
c7b2939d89
6 changed files with 15 additions and 6 deletions
  1. +1
    -1
      HKCardOUT/Bootstrapper.cs
  2. +1
    -0
      HKCardOUT/DTO/AdDTO.cs
  3. +2
    -1
      HKCardOUT/Logic/RemoteService.cs
  4. +2
    -1
      HKCardOUT/ViewModels/RootViewModel.cs
  5. +8
    -2
      HKCardOUT/Views/RootView.xaml
  6. +1
    -1
      HKCardOUT/options.json

+ 1
- 1
HKCardOUT/Bootstrapper.cs View File

@@ -40,7 +40,7 @@ namespace HKCardOUT
DataBus.SaasRoute = configer["SaasRoute"];
DataBus.StoreId = configer["StoreId"];
DbContext.InitTable();
//RemoteService.PullShopInfo();
RemoteService.PullShopInfo();
base.Configure();
}



+ 1
- 0
HKCardOUT/DTO/AdDTO.cs View File

@@ -16,5 +16,6 @@ namespace DTO
set => SetAndNotify(ref _IsActive, value);
}
public string Ad { get; set; }
public string Stalls { get; set; }
}
}

+ 2
- 1
HKCardOUT/Logic/RemoteService.cs View File

@@ -40,11 +40,12 @@ namespace HKCardOUT.Logic
/// </summary>
public static void PullShopInfo()
{
IHttpMultiClient.HttpMulti.AddNode(t =>
var data = IHttpMultiClient.HttpMulti.AddNode(t =>
{
t.NodePath = ApiRoute.PullShopInfo;
}).Build().RunStringFirst()
.ToModel<JObject>()["data"].ToJson().ToModel<StoreInfoResponse>();
DataBus.StoreInfo = data;
}
}
}

+ 2
- 1
HKCardOUT/ViewModels/RootViewModel.cs View File

@@ -33,7 +33,8 @@ namespace HKCardOUT.ViewModels
{
Ad = x.Remaek,
IsActive = false,
Device = $"{x.Name}({t.Name})"
Device =t.Name,
Stalls=x.Name
}).ToList();
if (Init != null)
Ad = new ObservableCollection<AdDTO>(Init);


+ 8
- 2
HKCardOUT/Views/RootView.xaml View File

@@ -53,7 +53,7 @@
<ListBox.ItemTemplate>
<DataTemplate>
<Button
Width="100"
Width="160"
Height="80"
Margin="20,0,0,0"
s:View.ActionTarget="{Binding DataContext, ElementName=Main}"
@@ -67,7 +67,13 @@
VerticalAlignment="Center"
FontSize="18"
FontWeight="Bold"
Text="{Binding Device}" />
Text="{Binding Stalls, StringFormat=档口:{0}}" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="18"
FontWeight="Bold"
Text="{Binding Device, StringFormat=设备:{0}}" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"


+ 1
- 1
HKCardOUT/options.json View File

@@ -1,7 +1,7 @@
{
"SaasRoute": "https://bpa.black-pa.com:21527/kitchen/",
"Cron": "0 0 11,15 * * ? ",
"StoreId": "",
"StoreId": "0ff87696-957b-475a-9dbf-41eae349dab4",
"ConnectionStrings": {
"Sqlite": "HKSQL.db3"
}


Loading…
Cancel
Save