Browse Source

加入竞品SKU输入窗口

master
feng 3 years ago
parent
commit
bef2348cb8
  1. 5
      src/Coldairarrow.Entity/DTO/ItemLabelDto.cs
  2. 3
      客户端/齐越慧眼/齐越慧眼/MainWindow.xaml.cs
  3. 5
      客户端/齐越慧眼/齐越慧眼/Models/ItemLabelDto.cs
  4. 22
      客户端/齐越慧眼/齐越慧眼/SkuWindow.xaml
  5. 26
      客户端/齐越慧眼/齐越慧眼/SkuWindow.xaml.cs
  6. 8
      客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs

5
src/Coldairarrow.Entity/DTO/ItemLabelDto.cs

@ -27,6 +27,11 @@ namespace Coldairarrow.Entity.DTO
/// 平台
/// </summary>
public ItemPlatform Platform { get; set; }
/// <summary>
/// 自己的SKU
/// </summary>
public string Sku { get; set; }
}
/// <summary>

3
客户端/齐越慧眼/齐越慧眼/MainWindow.xaml.cs

@ -52,6 +52,9 @@ namespace 齐越慧眼
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
SkuWindow skuWindow = new SkuWindow();
skuWindow.Show();
var u = ApiHelper.GetUserInfo();
if (u.isOk)

5
客户端/齐越慧眼/齐越慧眼/Models/ItemLabelDto.cs

@ -27,6 +27,11 @@ namespace 齐越慧眼.Models
/// 平台
/// </summary>
public ItemPlatform Platform { get; set; }
/// <summary>
/// 自己的SKU
/// </summary>
public string Sku { get; set; }
}
/// <summary>

22
客户端/齐越慧眼/齐越慧眼/SkuWindow.xaml

@ -0,0 +1,22 @@
<hc:GlowWindow x:Class="齐越慧眼.SkuWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:齐越慧眼"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d" Background="White"
WindowStartupLocation="CenterScreen"
ActiveGlowColor="Transparent"
Title="竞品确认" Height="180" Width="350">
<Border Padding="20">
<StackPanel>
<DockPanel Margin="0 20 0 0" VerticalAlignment="Center">
<TextBlock VerticalAlignment="Center" Text="SKU:"></TextBlock>
<hc:TextBox VerticalAlignment="Center" hc:InfoElement.Placeholder="请输入我方需要对标的SKU" Text="{Binding UserName}"></hc:TextBox>
</DockPanel>
<Button Command="{Binding _Btn_OkClick}" Style="{StaticResource ButtonPrimary}" Margin="0 20 0 20" Content="确认" Width="200" Cursor="Hand"/>
</StackPanel>
</Border>
</hc:GlowWindow>

26
客户端/齐越慧眼/齐越慧眼/SkuWindow.xaml.cs

@ -0,0 +1,26 @@
using HandyControl.Controls;
using System;
using System.Collections.Generic;
using System.Text;
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.Shapes;
namespace
{
/// <summary>
/// SkuWindow.xaml 的交互逻辑
/// </summary>
public partial class SkuWindow : GlowWindow
{
public SkuWindow()
{
InitializeComponent();
}
}
}

8
客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs

@ -1020,6 +1020,14 @@ namespace 齐越慧眼.UserControls
string img = data.img;
string itemId = data.itemid;
//如果是竞品,则需要输入自己的SKU
if (type == 3)
{
}
var result = ApiHelper.SetItemLabel(new Models.ItemLabelDto()
{
Img = img,

Loading…
Cancel
Save