using System; namespace Api.Framework.Data.TB { /// /// 商品信息 /// public class TBItemInfoData { /// /// 购买口令 /// public string BuyPass { get; set; } /// /// 中间页地址 /// public string ZJYUrl { get; set; } /// /// 优惠券ID /// public string ActivityId { get; set; } /// /// 优惠券地址 /// public string CouponUrl { get; set; } /// /// 宝贝ID /// public string ItemId { get; set; } /// /// 商品地址 /// public string ItemUrl { get; set; } /// /// 商品名称 /// public string ItemTitle { get; set; } /// /// 宝贝价格 /// public decimal Price { get; set; } /// /// 佣金比例 /// public decimal CommissionRatio { get; set; } /// /// 是否需要技术费 /// public bool IsTip { get; set; } = false; /// /// 佣金金额(根据付款金额及佣金比例自动计算) /// public decimal CommissionMoney => Math.Round(Price * (IsTip ? 0.9m : 1m) * CommissionRatio, 2); /// /// 优惠券金额 /// public decimal CouponPrice { get; set; } /// /// 使用券后价 /// public decimal UseCouponPrice { get; set; } /// /// 券后佣金 /// public decimal CommissionUseCouponMoney => Math.Round((UseCouponPrice <= 0 ? Price : UseCouponPrice) * (IsTip ? 0.9m : 1m) * CommissionRatio, 2); /// /// 不使用券佣金 /// public decimal CommissionUnUseCouponMoney => Math.Round(Price * (IsTip ? 0.9m : 1m) * CommissionRatio, 2); /// /// 宝贝图片 /// public string ImageUrl { get; set; } /// /// 月销量 /// public int Sales { get; set; } /// /// 店铺ID /// public string ShopId { get; set; } /// /// 店铺昵称 /// public string ShopNick { get; set; } /// /// 购买地址 /// public string BuyUrl { get; set; } } }