什么是资源位
- 资源位 描述一个投放页面页面上存在的坑位,每个资源位包含多个资源
- 资源 指某个资源位展示的具体内容,由物料内容和投放策略组成
- 资源位组 用于同一页面同一个位置多个资源位创建资源位组,并定义资源位组下每个资源位的类型,前端用于区分不同交互形式的资源位
- 物料 指图片、链接、文字、商品id等不同类型的数据单个数据元
- 投放策略 针对每个资源的定向投放策略,包含投放时间、周期类型、投放端、投放城市、投放人群
- JSON schema 用来描述组件的json文件
前端物料动态化
- 通过动态表单的能力配置运营活动
- 通过sdk的形式,有C端快速接入运营活动
个性化投放配置
- 基于人群的投放策略
- 基于灰度的投放策略
- 基于城市的投放策略
物料定义
物料包含:ID,名称,schema(用来描述组件的一些props,如文本输入框和url输入都是Input组件,但是他们校验规则不一样)
-
图片物料
{ "form": { "title": "图片", "type": "string", "ui": "@didi/delta-react-components-boss.ImageUpload", "props": {} }, "view": { "title": "图片", "type": "string", "ui": "@didi/delta-react-components-boss.ImageUpload.View", "props": { "style": { "maxWidth": 500 } } }, "propsDefine": { "title": "图片规则", "type": "object", "properties": { "maxWidth": { "type": "number", "title": "宽度(px)" }, "maxHeight": { "type": "number", "title": "高度(px)" }, "maxSize": { "type": "number", "title": "大小(kb)" } } } } -
文本
{ "form": { "title": "文本", "type": "string", "ui": "Input.TextArea", "props": { "autosize": { "minRows": 1, "maxRows": 10 } } }, "view": { "title": "文本", "type": "string" }, "propsDefine": { "title": "图片规则", "type": "object", "properties": { "maxlength": { "type": "number", "title": "字符长度(字)" } } } } -
链接
{ "form": { "title": "链接", "type": "string", "ui": "Input", "rules": [ { "pattern": "^https:\/\/.+|^OneTravel.+", "message": "请填写正确的url" } ] }, "view": { "title": "链接", "type": "string" } } -
活动
{ "form": { "title": "活动", "type": "string", "ui": "@didi/delta-react-components-boss.SelectActivity" }, "view": { "title": "活动", "ui": "@didi/delta-react-components-boss.SelectActivity.View" } } -
问题
{ "form": { "title": "问题", "type": "string", "ui": "@didi/delta-react-components-boss.SelectQuestion" }, "view": { "title": "问题", "ui": "@didi/delta-react-components-boss.SelectQuestion.View" } } -
布尔值
{ "form": { "title": "布尔值", "type": "boolen", "ui": "Radio.Group", "props": { "options": [ { "label": "是", "value": true }, { "label": "否", "value": false } ] } }, "view": { "title": "布尔值", "type": "string" } }
创建资源位时,保存每个物料的规则。创建物料时,这些规则将作为物料组价的参数 http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=189834367 组件需支持:Antd,@didi/delta-react-component-boss,DCMS平台组件