Commit ec0cdd1b authored by 黄奎's avatar 黄奎

新增实体类

parent 38b719ec
......@@ -969,4 +969,91 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public string content { get; set; }
}
/// <summary>
/// 优惠券插件
/// </summary>
public class couponItem
{
/// <summary>
/// 字体颜色
/// </summary>
public string textColor { get; set; }
/// <summary>
/// 不可领取
/// </summary>
public string receiveBg { get; set; }
/// <summary>
/// 可领取
/// </summary>
public string unclaimedBg { get; set; }
/// <summary>
/// showImg
/// </summary>
public bool showImg { get; set; }
/// <summary>
/// 背景颜色
/// </summary>
public string backgroundColor { get; set; }
/// <summary>
/// backgroundPicUrl
/// </summary>
public string backgroundPicUrl { get; set; }
public int position { get; set; }
public int mode { get; set; }
public int backgroundHeight { get; set; }
public int backgroundWidth { get; set; }
}
/// <summary>
/// 倒计时插件
/// </summary>
public class timerItem
{
/// <summary>
/// 图片
/// </summary>
public string picUrl { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public string startDateTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public string endDateTime { get; set; }
/// <summary>
/// 链接
/// </summary>
public timerLink link { get; set; }
}
/// <summary>
/// 倒计时链接
/// </summary>
public class timerLink
{
/// <summary>
/// 链接
/// </summary>
public string url { get; set; }
/// <summary>
/// 打开类型
/// </summary>
public string openType { get; set; }
}
}
......@@ -113,6 +113,8 @@ namespace Mall.Module.MarketingCenter
case "map": item.data = JsonHelper.DeserializeObject<mapItem>(item.data.ToString()); break;
case "mp-link": item.data = JsonHelper.DeserializeObject<mplinkItem>(item.data.ToString()); break;
case "image-text": item.data = JsonHelper.DeserializeObject<imagetextItem>(item.data.ToString()); break;
case "coupon": item.data = JsonHelper.DeserializeObject<couponItem>(item.data.ToString()); break;
case "timer": item.data = JsonHelper.DeserializeObject<timerItem>(item.data.ToString()); break;
}
}
}
......
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