巴克励步
发布于:2024-07-07
checkboxParam | Description | Input |
|---|---|---|
Type | — | checkbox |
Label | — | |
Default | — | 0 1 false true |
Info | — |
truetrue{
"id": "recommend_to_index",
"type": "checkbox",
"label": "推荐到首页展示",
"default": true
}
colorParam | Description | Input |
|---|---|---|
Type | — | color |
Label | — | |
Default | — | #00AA00 |
Colors | — | #FF0000|#00FF00|#0000FF |
Info | — |
#00AA00{
"id": "text_color",
"type": "color",
"label": "Hero 文字颜色"
}
color_backgroundParam | Description | Input |
|---|---|---|
Id | — | bg_color |
Label | — | |
Info | — | |
Default | — | {"from":"#0F69E8","to":"#1C0597"} |
Colors | — | rgba(244, 67, 54, 1)|rgba(233, 30, 99, 1) |
linear-gradient(90deg, #0F69E8, #1C0597)#1C059790#0F69E8{
"id": "banner_background",
"label": "Hero 背景色",
"type": "color_background"
}
dateParam | Description | Input |
|---|---|---|
Type | — | date |
Label | — | foo |
Default | — | 2024-01-28 |
Info | — | 这是一个日期选择器 |
"2024-01-28"2024-01-28{
"id": "start_at",
"type": "date",
"label": "开始时间",
"default": "2025-01-01"
}
font_pickerParam | Description | Input |
|---|---|---|
Type | — | font_picker |
Label | — | |
Default | — | arial |
Fonts | — | ["system-ui", "arial"] |
Info | — | 选择一个字体 |
"arial"arial{
"id": "font",
"type": "font_picker",
"label": "字体",
"default": "Arial"
}header* 没有前端变量
Param | Description | Input |
|---|---|---|
Content | — |
{
"type": "header",
"content": "分组 1"
}
paragraph* 没有前端变量
Param | Description | Input |
|---|---|---|
Content | — |
{
"type": "paragraph",
"content": "paragraph"
}
htmlParam | Description | Input |
|---|---|---|
Id | — | google_ads |
Label | — | 谷歌广告代码 |
Default | — | |
Info | — | 粘贴谷歌广告 HTML 代码 |
"<strong style=\"color: blue;\">这是蓝色粗体字</strong>"这是蓝色粗体字{
"id": "third_party_video_url",
"type": "html",
"label": "Youtube或其他视频地址",
"info": "<iframe src='https://www.youtube.com/embed/yrLV3ONB..."
}
link待处理
numberParam | Description | Input |
|---|---|---|
Id | — | price |
Label | — | |
Default | — | 10 |
Min | — | 0 |
Max | — | 10 |
Step | — | 0.5 |
Info | — | 给产品标定一个价格 |
10.010.0{
"id": "price",
"type": "number",
"label": "商品数量",
"min": "0",
"max": "10",
"step": "0.5",
"default": "5"
}
radioParam | Description | Input |
|---|---|---|
Id | — | gender |
Label | — | 性别 |
Default | — | 0 |
Choices | — | [{"label":"保密","value":"0"},{"label":"男","value":"1"},{"label":"女","value":"2"}] |
Info | — |
"#<DynamicForm::RadioComponent::Value:0x000000011bf68738 label: \"保密\", value: \"0\">"保密0保密{
"id": "page_type",
"type": "radio",
"label": "页面格式",
"choices": [{"label":"富文本","value":"0"},{"label":"HTML","value":"1"}],
"default": "0",
"info": "* 如果选择 HTML 格式,则整页面只会呈现【html_content】表单信息"
},
choices 参数改为 choices_from。以下为choices_from 可选值:$self.[setting_key] 从当前页面获取动态表单的值,作为 choices 数据$index.[setting_key] 从首页页面获取动态表单的值,作为 choices 数据$parent.[setting_key] 从当前页面的上级获取动态表单的值,作为 choices 数据$site.[setting_key] 从站点(settings_schema.json)获取动态表单的值,作为 choices 数据$site_user_group 从站点用户组获取数据
# $self.[setting_key]
{
"id": "keywords",
"type": "radio",
"choices_from": "$self.keywords_options"
"label": "关键词",
"info": "从当前页面指定的关键词中选择"
}
# $index.[setting_key]
{
"id": "keywords",
"type": "radio",
"choices_from": "$index.keywords_options"
"label": "关键词",
"info": "从首页页面指定的关键词中选择"
}
# $parent.[setting_key]
{
"id": "keywords",
"type": "radio",
"choices_from": "$parent.keywords_options"
"label": "关键词",
"info": "从当前页面的上级指定的关键词中选择"
}
# $site.[setting_key]
{
"id": "city",
"type": "radio",
"choices_from": "$site.cities",
"label": "所在城市"
"info": "从首页设置城市选择"
}
# $site_user_group
{
"id": "user_group_ids",
"type": "select",
"choices_from": "$site_user_group",
"multiple": true,
"label": "用户组"
}rangeParam | Description | Input |
|---|---|---|
Id | — | distance |
Label | — | 可送范围 |
Default | — | 6.5 |
Min | — | 0 |
Max | — | 10 |
Step | — | 0.5 |
Unit | — | Km |
Info | — | 选择快递可送范围 |
6.56.5{
"id": "distance",
"type": "range",
"label": "配送范围",
"min": "0",
"max": "100",
"step": "0.1",
"default": "15",
"unit": "km",
"info": "选择快递可配送范围"
}
richtextParam | Description | Input |
|---|---|---|
Id | — | foo |
Label | — | |
Default | — | |
Info | — | 这是一个HTML输入框 |
"<strong style=\"color: blue;\">HTML源代码会被转义</strong>"HTML源代码会被转义{
"id": "richtext_1",
"type": "richtext",
"label": "richtext"
}
selectParam | Description | Input |
|---|---|---|
Id | — | company_size |
Label | — | 公司规模 |
Default | — | 1 |
Choices | — | [{"label":"10 人以下","value":"0"},{"label":"10~50人","value":"1"},{"label":"50~200人","value":"2"},{"label":"200~1000人","value":"3"},{"label":"1000以上","value":"4"}] |
Info | — |
{
"id": "source_type",
"type": "select",
"default": "0",
"choices": [{"label":"资源库视频","value":"0"},{"label":"Youtube视频","value":"1"},{"label":"其他","value":"2"}],
"label": "视频来源"
}
Param | Description | Input |
|---|---|---|
Id | — | city |
Label | — | 城市 |
Default | — | km |
Choices | — | [{"group":"四川省","label":"成都市","value":"cd"},{"group":"四川省","label":"德阳市","value":"dy"},{"group":"云南省","label":"昆明市","value":"km"},{"group":"云南省","label":"大理市","value":"dl"}] |
Info | — | 选择您所在的城市 |
昆明市km昆明市Param | Description | Input |
|---|---|---|
Id | — | city |
Label | — | 城市 |
Default | — | ["km", "dl"] |
Choices | — | [{"group":"四川省","label":"成都市","value":"cd"},{"group":"四川省","label":"德阳市","value":"dy"},{"group":"云南省","label":"昆明市","value":"km"},{"group":"云南省","label":"大理市","value":"dl"}] |
Info | — | 选择您所在的城市 |
choices 参数改为 choices_from。以下为choices_from 可选值:$self.[setting_key] 从当前页面获取动态表单的值,作为 choices 数据$index.[setting_key] 从首页页面获取动态表单的值,作为 choices 数据$parent.[setting_key] 从当前页面的上级获取动态表单的值,作为 choices 数据$site.[setting_key] 从站点(settings_schema.json)获取动态表单的值,作为 choices 数据$site_user_group 从站点用户组获取数据
# $self.[setting_key]
{
"id": "keywords",
"type": "select",
"choices_from": "$self.keywords_options",
"multiple": true,
"label": "关键词",
"info": "从当前页面指定的关键词中选择"
}
# $index.[setting_key]
{
"id": "keywords",
"type": "select",
"choices_from": "$index.keywords_options",
"multiple": true,
"label": "关键词",
"info": "从首页页面指定的关键词中选择"
}
# $parent.[setting_key]
{
"id": "keywords",
"type": "select",
"choices_from": "$parent.keywords_options",
"multiple": true,
"label": "关键词",
"info": "从当前页面的上级指定的关键词中选择"
}
# $site.[setting_key]
{
"id": "city",
"type": "select",
"choices_from": "$site.cities",
"label": "所在城市"
"info": "从首页设置城市选择"
}
# $site_user_group
{
"id": "user_group_ids",
"type": "select",
"choices_from": "$site_user_group",
"multiple": true,
"label": "用户组"
}textParam | Description | Input |
|---|---|---|
Id | — | |
Label | — | |
Default | — | |
Info | — |
"<strong style="color: blue;">HTML源代码会被转义</strong>"<strong style="color: blue;">HTML源代码会被转义</strong>{
"id": "slogan",
"type": "text",
"label": "站点口号",
"default": "👋 引领先锋,探码科技"
}
textareaParam | Description | Input |
|---|---|---|
Id | — | foo |
Label | — | foo |
Default | — | |
Rows | — | 4 |
Info | — | 这是一个HTML输入框 |
"<strong style="color: blue;">HTML源代码会被转义</strong>"<strong style="color: blue;">HTML源代码会被转义</strong>{
"id": "textarea_1",
"type": "textarea",
"label": "Textarea"
}
tag_pickerParam | Description | Input |
|---|---|---|
Id | — | tag |
Label | — | 产品标签 |
Default | — | |
Multiple | — | true |
Info | — |
[][]{
"id": "tags",
"type": "tag_picker",
"multiple": true,
"label": "站点热门标签"
}
video_pickerParam | Description | Input |
|---|---|---|
Id | — | my_video |
Label | — | 宣传视频 |
Default | — | |
Height | — | |
Width | — | 480 |
Ratio | — | 16:9 |
Info | — | 从资源库中选择视频资源 |
视频地址{
"id": "video_url",
"type": "video_picker",
"label": "视频",
"info": "从资源库选择视频"
}image_pickerParam | Description | Input |
|---|---|---|
Id | — | |
Label | — | |
Default | — | |
Width | — | 640 |
Height | — | 400 |
Ratio | 比例, 例如 16:9 | 16:9 |
Info | — | 从资源库中选择图片资源 |
图片路径{
"id": "thumb_image_url",
"type": "image_picker",
"ratio": "16:9",
"width": 240,
"label": "封面图",
"info": "选择一个 16:9 的图片,默认宽度 240px"
}
dam_pickerParam | Description | Input |
|---|---|---|
Id | — | |
Label | — | |
Default | — | |
Info | — | 从资源库中选择任意资源 |
资源路径{
"id": "source_url",
"type": "dam_picker",
"label": "资源地址",
"info": "选择一个资源"
}file_pickerParam | Description | Input |
|---|---|---|
Id | — | |
Label | — | |
Default | — | |
Info | — | 从资源库中选择文件资源 |
文件路径{
"id": "pdf_url",
"type": "file_picker",
"label": "PDF",
"info": "选择一个 pdf 文件"
}