mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:03:27 +08:00
【新增】优化广告组件,表【CoreCmsAdvertPosition】新增【platform】广告平台字段,【type】广告位类型两个字段,用于区分pc,h5,小程序多端,以及图片还是轮播图展示形式。
This commit is contained in:
@@ -1790,7 +1790,7 @@ namespace CoreCms.Net.Configuration
|
||||
/// <summary>
|
||||
/// 广告表类型【关联CoreCmsAdvertisement.type字段】
|
||||
/// </summary>
|
||||
public enum AdvertPositionType
|
||||
public enum AdvertisementType
|
||||
{
|
||||
/// <summary>
|
||||
/// 网址URL
|
||||
@@ -1820,35 +1820,39 @@ namespace CoreCms.Net.Configuration
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 广告模板编码
|
||||
/// 广告表类型【关联CoreCmsAdvertPosition.type字段】
|
||||
/// </summary>
|
||||
public enum AdvertTemplateCode
|
||||
public enum AdvertPositionType
|
||||
{
|
||||
/// <summary>
|
||||
/// 首页幻灯片广告位
|
||||
/// 图片
|
||||
/// </summary>
|
||||
[Description("首页幻灯片广告位")]
|
||||
TplSlider = 1,
|
||||
[Description("<button type=\"button\" class=\"layui-btn layui-btn-normal layui-btn-xs\">图片</button>")]
|
||||
Image = 1,
|
||||
/// <summary>
|
||||
/// 首页广告位1
|
||||
/// 轮播图
|
||||
/// </summary>
|
||||
[Description("首页广告位1")]
|
||||
TplIndexBanner1 = 2,
|
||||
/// <summary>
|
||||
/// 首页广告位2
|
||||
/// </summary>
|
||||
[Description("首页广告位2")]
|
||||
TplIndexBanner2 = 3,
|
||||
/// <summary>
|
||||
/// 首页广告位3
|
||||
/// </summary>
|
||||
[Description("首页广告位3")]
|
||||
TplIndexBanner3 = 4,
|
||||
/// <summary>
|
||||
/// 分类页广告位
|
||||
/// </summary>
|
||||
[Description("分类页广告位")]
|
||||
TplClassBanner1 = 5
|
||||
[Description("<button type=\"button\" class=\"layui-btn layui-btn-warm layui-btn-xs\">轮播图</button>")]
|
||||
Swiper = 2
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 广告来源
|
||||
/// </summary>
|
||||
public enum AdvertPlatform
|
||||
{
|
||||
[Description("PC页面")]
|
||||
PC页面 = 1,
|
||||
[Description("H5页面")]
|
||||
H5页面 = 2,
|
||||
[Description("微信小程序")]
|
||||
微信小程序 = 3,
|
||||
[Description("支付宝小程序")]
|
||||
支付宝小程序 = 4,
|
||||
[Description("APP")]
|
||||
APP = 5,
|
||||
[Description("头条系小程序")]
|
||||
头条 = 6
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user