feat: 完善模板驱动的品牌内容工作台

This commit is contained in:
que01 committed 2026-09-25 05:21:42 +08:00
1 parent 77224ea51f
commit dd55af8d73
46 files changed
+2204 -295

No files matched your search

@@ -53,6 +53,234 @@
}
],
"requiredCapabilities": ["offerings", "inquiry", "booking"],
"dataSlots": [
{
"key": "brand.identity",
"source": "brand",
"required": true,
"description": "摊位名称、主理人和公开联系方式"
},
{
"key": "brand.hero",
"source": "brand",
"required": true,
"description": "出摊现场和首页营业信息"
},
{
"key": "trust.proof",
"source": "trust",
"required": true,
"description": "卫生、履约和订餐信任内容"
},
{
"key": "offerings.list",
"source": "offering",
"required": true,
"description": "今日餐品、套餐和定制服务"
},
{
"key": "offering.detail",
"source": "offering",
"required": true,
"description": "单个餐品或定制服务详情"
},
{
"key": "inquiry.form",
"source": "inquiry",
"required": true,
"description": "预订和定制咨询问题"
},
{
"key": "records.items",
"source": "records",
"required": true,
"description": "访客自己的预订记录"
}
],
"assetSlots": [
{
"key": "brand.portrait",
"binding": "brand.avatarUrl",
"target": "brand",
"label": "主理人照片",
"help": "用于首页和主理人页,建议使用清晰正面照片。",
"required": false,
"kind": "portrait",
"aspectRatio": "1:1"
},
{
"key": "brand.stallHero",
"binding": "brand.config.heroImage",
"target": "brand",
"label": "出摊现场主图",
"help": "展示真实摊位、餐品或取餐场景,避免使用无关的通用图片。",
"required": true,
"kind": "image",
"aspectRatio": "16:9"
},
{
"key": "offering.cover",
"binding": "offering.coverUrl",
"target": "offering",
"label": "餐品或服务封面",
"help": "每项餐品或服务使用一张清晰图片,方便访客快速选择。",
"required": true,
"kind": "image",
"aspectRatio": "1:1"
}
],
"admin": {
"sections": [
{
"key": "identity",
"title": "摊位与主理人",
"description": "让访客知道谁在出餐、在哪里可以找到你。",
"target": "brand",
"fields": [
{
"key": "founder",
"binding": "brand.config.founder",
"label": "主理人姓名",
"input": "text",
"required": true,
"placeholder": "例如:阿成"
},
{
"key": "portrait",
"binding": "brand.config.avatarUrl",
"label": "主理人照片",
"help": "使用清晰、真实的照片,让顾客知道是谁在认真做餐。",
"input": "image"
},
{
"key": "title",
"binding": "brand.config.title",
"label": "你的身份",
"help": "例如:校园餐饮主理人。",
"input": "text",
"required": true
},
{
"key": "slogan",
"binding": "brand.config.slogan",
"label": "想对顾客说的一句话",
"input": "textarea",
"maxLength": 80
},
{
"key": "studioAddress",
"binding": "brand.config.studioAddress",
"label": "出摊地点或服务范围",
"input": "text",
"required": true
},
{
"key": "phone",
"binding": "brand.config.phone",
"label": "公开联系电话",
"input": "phone"
},
{
"key": "wechat",
"binding": "brand.config.wechat",
"label": "公开微信号",
"input": "text"
}
]
},
{
"key": "home",
"title": "首页出摊信息",
"description": "说明今天在哪里、何时营业,以及餐品有什么特点。",
"target": "brand",
"fields": [
{
"key": "stallTitle",
"binding": "brand.config.visualPresentation.home.stallTitle",
"label": "出摊信息标题",
"input": "text",
"placeholder": "例如:今日出摊点"
},
{
"key": "heroImage",
"binding": "brand.config.heroImage",
"label": "出摊现场主图",
"help": "展示真实摊位、餐品或取餐场景,建议使用横向图片。",
"input": "image",
"required": true
},
{
"key": "stallTime",
"binding": "brand.config.visualPresentation.home.stallTime",
"label": "营业时间说明",
"input": "text",
"placeholder": "例如:17:00 - 22:30 · 今日营业中"
},
{
"key": "worksTitle",
"binding": "brand.config.visualPresentation.home.worksTitle",
"label": "招牌餐品标题",
"input": "text"
},
{
"key": "manifestoTitle",
"binding": "brand.config.visualPresentation.home.manifestoTitle",
"label": "出餐承诺标题",
"input": "text"
}
]
},
{
"key": "menu",
"title": "菜单页说明",
"description": "帮助顾客理解日常餐品和团体定制的选择方式。",
"target": "brand",
"fields": [
{
"key": "title",
"binding": "brand.config.visualPresentation.offerings.title",
"label": "菜单页标题",
"input": "text"
},
{
"key": "subtitle",
"binding": "brand.config.visualPresentation.offerings.subtitle",
"label": "菜单页说明",
"input": "textarea",
"maxLength": 120
}
]
},
{
"key": "booking",
"title": "预订与定制",
"description": "告诉顾客提交信息后会如何确认餐品和时间。",
"target": "inquiry",
"fields": [
{
"key": "title",
"binding": "brand.config.visualPresentation.inquiry.title",
"label": "预订页面标题",
"input": "text"
},
{
"key": "subtitle",
"binding": "brand.config.visualPresentation.inquiry.subtitle",
"label": "预订说明",
"input": "textarea",
"maxLength": 120
},
{
"key": "submitLabel",
"binding": "brand.config.visualPresentation.inquiry.submitLabel",
"label": "提交按钮文字",
"input": "text",
"placeholder": "例如:提交预订需求"
}
]
}
]
},
"renderers": {
"home": "acheng-home",
"offerings": "acheng-offerings",