17 changed files with 903 additions and 26 deletions
@ -0,0 +1,185 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Text.RegularExpressions; |
||||
|
|
||||
|
namespace 齐越慧眼.Models |
||||
|
{ |
||||
|
|
||||
|
public class TeamItem |
||||
|
{ |
||||
|
public String Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创建时间
|
||||
|
/// </summary>
|
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创建人Id
|
||||
|
/// </summary>
|
||||
|
public String CreatorId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 否已删除
|
||||
|
/// </summary>
|
||||
|
public Boolean Deleted { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品表的ID
|
||||
|
/// </summary>
|
||||
|
public String ItemId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 宝贝标题
|
||||
|
/// </summary>
|
||||
|
public String Title { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 宝贝价格
|
||||
|
/// </summary>
|
||||
|
public Decimal? Price { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 收货人数
|
||||
|
/// </summary>
|
||||
|
public string Sales { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品图片
|
||||
|
/// </summary>
|
||||
|
public String ItemImg { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 添加人
|
||||
|
/// </summary>
|
||||
|
public String UserId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队Id
|
||||
|
/// </summary>
|
||||
|
public String TeamId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标商品标题
|
||||
|
/// </summary>
|
||||
|
public String RivalTitle { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标商品价格
|
||||
|
/// </summary>
|
||||
|
public Decimal? RivalPrice { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标收货人数
|
||||
|
/// </summary>
|
||||
|
public String RivalSales { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标商品图片
|
||||
|
/// </summary>
|
||||
|
public String RivalImg { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标商品ID
|
||||
|
/// </summary>
|
||||
|
public String RivalGoodsId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 状态
|
||||
|
/// </summary>
|
||||
|
public Int32? State { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 扩展信息
|
||||
|
/// </summary>
|
||||
|
public String ExtensionJson { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 竞品列表Json
|
||||
|
/// </summary>
|
||||
|
public string CompetingItemJson { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对标商品评价数量
|
||||
|
/// </summary>
|
||||
|
public string RivalPLCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 接比价任务的用户ID
|
||||
|
/// </summary>
|
||||
|
public string PriceTaskUserId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 品类词ID
|
||||
|
/// </summary>
|
||||
|
public string CatId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否合格
|
||||
|
/// </summary>
|
||||
|
public bool? IsQualified { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 完成时间
|
||||
|
/// </summary>
|
||||
|
public DateTime? UpdateDate { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 比价发布日期
|
||||
|
/// </summary>
|
||||
|
public DateTime? PriceTaskCreateDate { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 竞品信息
|
||||
|
/// </summary>
|
||||
|
public class TeamCompetingItem |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 图片地址
|
||||
|
/// </summary>
|
||||
|
public string ImgUrl { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 标题
|
||||
|
/// </summary>
|
||||
|
public string Title { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 价格
|
||||
|
/// </summary>
|
||||
|
public string Price { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 评价数量
|
||||
|
/// </summary>
|
||||
|
public string CommentCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 竞品链接
|
||||
|
/// </summary>
|
||||
|
public string ItemUrl { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 平台
|
||||
|
/// </summary>
|
||||
|
public int Platform { get; set; } |
||||
|
|
||||
|
public string Spu { get; set; } |
||||
|
|
||||
|
private string _Sku; |
||||
|
|
||||
|
public string Sku |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
if(string.IsNullOrEmpty(_Sku)) |
||||
|
_Sku= Regex.Match(ImgUrl, @"item\.jd\.com/(.*?)\.html").Groups[1].Value; |
||||
|
return _Sku; |
||||
|
} |
||||
|
set { |
||||
|
_Sku = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
using GalaSoft.MvvmLight; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using 齐越慧眼.Models; |
||||
|
|
||||
|
namespace 齐越慧眼.ViewModels |
||||
|
{ |
||||
|
public class CompetingWindowViewModel:ViewModelBase |
||||
|
{ |
||||
|
public static CompetingWindowViewModel Instance { get; private set;} |
||||
|
/// <summary>
|
||||
|
/// 当前操作对象
|
||||
|
/// </summary>
|
||||
|
TeamItem Item { get; set; } |
||||
|
|
||||
|
public CompetingWindowViewModel(TeamItem item) |
||||
|
{ |
||||
|
_ItemList = new System.Collections.ObjectModel.ObservableCollection<TeamCompetingItem>(); |
||||
|
Item = item; |
||||
|
Instance = this; |
||||
|
} |
||||
|
|
||||
|
private System.Collections.ObjectModel.ObservableCollection<TeamCompetingItem> _ItemList; |
||||
|
|
||||
|
public System.Collections.ObjectModel.ObservableCollection<TeamCompetingItem> ItemList |
||||
|
{ |
||||
|
get { return _ItemList; } |
||||
|
set { Set(ref _ItemList, value); } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>client</title><link href="/css/app.css" rel="preload" as="style"><link href="/css/app.fe8cfd8e.css" rel="preload" as="style"><link href="/css/chunk-vendors.09af4a6b.css" rel="preload" as="style"><link href="/css/chunk-vendors.css" rel="preload" as="style"><link href="/js/app.js" rel="preload" as="script"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/css/chunk-vendors.09af4a6b.css" rel="stylesheet"><link href="/css/chunk-vendors.css" rel="stylesheet"><link href="/css/app.fe8cfd8e.css" rel="stylesheet"><link href="/css/app.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/app.js"></script></body></html> |
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>client</title><link href="/css/app.c6957eae.css" rel="preload" as="style"><link href="/css/app.css" rel="preload" as="style"><link href="/css/chunk-vendors.09af4a6b.css" rel="preload" as="style"><link href="/css/chunk-vendors.css" rel="preload" as="style"><link href="/js/app.js" rel="preload" as="script"><link href="/js/chunk-vendors.js" rel="preload" as="script"><link href="/css/chunk-vendors.09af4a6b.css" rel="stylesheet"><link href="/css/chunk-vendors.css" rel="stylesheet"><link href="/css/app.c6957eae.css" rel="stylesheet"><link href="/css/app.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.js"></script><script src="/js/app.js"></script></body></html> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue