Files
persionalBrand/packages/template-compiler/test/fixtures/template-drill-consultant/template.json
T

59 lines
1.6 KiB
JSON

{
"packageKey": "drill-consultant",
"version": "0.1.0",
"displayName": "咨询师演练模板",
"defaultBrandSlug": "drill-consultant",
"runtimeContract": "1.0",
"supportedIndustryTemplates": ["consulting"],
"entrypoints": {
"home": "pages/index/index",
"offerings": "pages/services/index",
"detail": "pages/offering/detail",
"inquiry": "pages/inquiry/index",
"success": "pages/inquiry-success/index",
"records": "pages/records/index",
"profile": "pages/profile/index"
},
"navigation": [
{ "key": "home", "label": "首页", "page": "home" },
{ "key": "offerings", "label": "服务", "page": "offerings" },
{ "key": "profile", "label": "关于我", "page": "profile" }
],
"requiredCapabilities": ["offerings", "inquiry"],
"pages": ["pages/index/index", "pages/services/index", "pages/profile/index"],
"dataSlots": [
{
"key": "brand.identity",
"source": "brand",
"required": true,
"description": "顾问姓名、定位和联系方式"
},
{
"key": "offering.list",
"source": "offering",
"required": true,
"description": "咨询服务项目"
}
],
"assetSlots": [],
"admin": {
"sections": [
{
"key": "identity",
"title": "顾问介绍",
"description": "客户在首页看到的姓名和定位",
"page": "home",
"fields": [
{
"key": "name",
"binding": "brand.name",
"label": "姓名",
"input": "text",
"required": true
}
]
}
]
}
}