feat: 完善模板内容后台配置能力

This commit is contained in:
que01 committed 2026-09-28 17:30:34 +08:00
1 parent 2bc2193b44
commit 9266ec824a
37 files changed
+2273 -63

No files matched your search

@@ -223,6 +223,24 @@ export const generatedTemplatePackageRegistry = [
"input": "text",
"placeholder": "例如:17:00 - 22:30 · 今日营业中"
},
{
"key": "coverageContent",
"binding": "brand.config.visualPresentation.profile.coverageContent",
"label": "取餐与配送说明",
"input": "textarea"
},
{
"key": "coverageTitle",
"binding": "brand.config.visualPresentation.profile.coverageTitle",
"label": "服务方式标题",
"input": "text"
},
{
"key": "worksEyebrow",
"binding": "brand.config.visualPresentation.home.worksEyebrow",
"label": "餐品区域小标题",
"input": "text"
},
{
"key": "worksTitle",
"binding": "brand.config.visualPresentation.home.worksTitle",
@@ -255,6 +273,13 @@ export const generatedTemplatePackageRegistry = [
"label": "菜单页说明",
"input": "textarea",
"maxLength": 120
},
{
"key": "menuTip",
"binding": "brand.config.visualPresentation.offerings.menuTip",
"label": "菜单提示",
"help": "只填写当前实际提供的取餐、加菜或定制服务。",
"input": "textarea"
}
]
},
@@ -283,6 +308,239 @@ export const generatedTemplatePackageRegistry = [
"label": "提交按钮文字",
"input": "text",
"placeholder": "例如:提交预订需求"
},
{
"key": "promise",
"binding": "brand.config.visualPresentation.inquiry.promise",
"label": "真实服务承诺",
"help": "仅填写能兑现的回复时间、订金和联系规则;留空则不显示。",
"input": "textarea"
}
]
},
{
"key": "dishDetail",
"title": "餐品与服务详情",
"description": "每项餐品或服务单独填写;没有内容的详情区块不会展示。",
"target": "offering",
"fields": [
{
"key": "categoryLabel",
"binding": "offering.config.categoryLabel",
"label": "餐品类别",
"input": "text"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image"
},
{
"key": "area",
"binding": "offering.config.area",
"label": "供应地点",
"input": "text"
},
{
"key": "series",
"binding": "offering.config.series",
"label": "套餐或系列说明",
"input": "text"
},
{
"key": "spaceType",
"binding": "offering.config.spaceType",
"label": "适合场景",
"input": "text"
},
{
"key": "background",
"binding": "offering.config.details.background",
"label": "餐品介绍",
"input": "textarea"
},
{
"key": "designConcept",
"binding": "offering.config.details.designConcept",
"label": "口味与分量",
"input": "textarea"
},
{
"key": "keywords",
"binding": "offering.config.keywords",
"label": "餐品特色",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "特色"
}
]
},
{
"key": "crafts",
"binding": "offering.config.details.crafts",
"label": "制作方式",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "制作说明"
}
]
},
{
"key": "materialsList",
"binding": "offering.config.details.materialsList",
"label": "食材与搭配",
"input": "list",
"itemFields": [
{
"key": "name",
"label": "食材或搭配"
},
{
"key": "spec",
"label": "说明"
}
]
}
]
},
{
"key": "detailCopy",
"title": "详情页说明",
"description": "解释价格、餐品内容和咨询后会怎样处理。",
"target": "brand",
"fields": [
{
"key": "priceLabel",
"binding": "brand.config.visualPresentation.detail.priceLabel",
"label": "价格说明标题",
"input": "text"
},
{
"key": "spaceLabel",
"binding": "brand.config.visualPresentation.detail.spaceLabel",
"label": "适合场景标题",
"input": "text"
},
{
"key": "backgroundTitle",
"binding": "brand.config.visualPresentation.detail.backgroundTitle",
"label": "餐品介绍标题",
"input": "text"
},
{
"key": "conceptTitle",
"binding": "brand.config.visualPresentation.detail.conceptTitle",
"label": "口味与分量标题",
"input": "text"
},
{
"key": "craftsTitle",
"binding": "brand.config.visualPresentation.detail.craftsTitle",
"label": "制作方式标题",
"input": "text"
},
{
"key": "materialsTitle",
"binding": "brand.config.visualPresentation.detail.materialsTitle",
"label": "食材与搭配标题",
"input": "text"
},
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只写能够兑现的联系和确认方式。",
"input": "textarea"
}
]
},
{
"key": "successCopy",
"title": "提交成功页",
"description": "顾客提交后看到的确认信息与后续预期。",
"target": "brand",
"fields": [
{
"key": "eyebrow",
"binding": "brand.config.visualPresentation.success.eyebrow",
"label": "页面小标题",
"input": "text"
},
{
"key": "title",
"binding": "brand.config.visualPresentation.success.title",
"label": "确认标题",
"input": "text"
},
{
"key": "intro",
"binding": "brand.config.visualPresentation.success.intro",
"label": "后续联系说明",
"help": "若写回复时间,请确认日常能兑现。",
"input": "textarea"
},
{
"key": "recordsAction",
"binding": "brand.config.visualPresentation.success.recordsAction",
"label": "查看记录按钮",
"input": "text"
},
{
"key": "homeAction",
"binding": "brand.config.visualPresentation.success.homeAction",
"label": "返回首页按钮",
"input": "text"
}
]
},
{
"key": "recordsCopy",
"title": "咨询记录页",
"description": "顾客查看预订与咨询处理进度时看到的内容。",
"target": "brand",
"fields": [
{
"key": "title",
"binding": "brand.config.visualPresentation.records.title",
"label": "记录页标题",
"input": "text"
},
{
"key": "createAction",
"binding": "brand.config.visualPresentation.records.createAction",
"label": "新增咨询按钮",
"input": "text"
},
{
"key": "emptyTitle",
"binding": "brand.config.visualPresentation.records.emptyTitle",
"label": "暂无记录标题",
"input": "text"
},
{
"key": "emptyDescription",
"binding": "brand.config.visualPresentation.records.emptyDescription",
"label": "暂无记录说明",
"input": "textarea"
},
{
"key": "emptyAction",
"binding": "brand.config.visualPresentation.records.emptyAction",
"label": "空状态按钮",
"input": "text"
}
]
}
@@ -649,17 +907,176 @@ export const generatedTemplatePackageRegistry = [
"label": "信任介绍标题",
"input": "text"
},
{
"key": "proofEyebrow",
"binding": "brand.config.visualPresentation.home.proofEyebrow",
"label": "信任介绍小标题",
"input": "text"
},
{
"key": "manifestoEyebrow",
"binding": "brand.config.visualPresentation.home.manifestoEyebrow",
"label": "品牌主张小标题",
"input": "text"
},
{
"key": "manifestoTitle",
"binding": "brand.config.visualPresentation.home.manifestoTitle",
"label": "品牌主张",
"input": "text"
},
{
"key": "worksEyebrow",
"binding": "brand.config.visualPresentation.home.worksEyebrow",
"label": "代表案例小标题",
"input": "text"
},
{
"key": "worksTitle",
"binding": "brand.config.visualPresentation.home.worksTitle",
"label": "代表案例标题",
"input": "text"
},
{
"key": "worksAction",
"binding": "brand.config.visualPresentation.home.worksAction",
"label": "查看案例入口",
"input": "text"
},
{
"key": "flowEyebrow",
"binding": "brand.config.visualPresentation.home.flowEyebrow",
"label": "合作流程小标题",
"input": "text"
},
{
"key": "flowTitle",
"binding": "brand.config.visualPresentation.home.flowTitle",
"label": "项目流程标题",
"input": "text"
},
{
"key": "heroTitle",
"binding": "brand.config.homeHero.title",
"label": "首页主标题",
"input": "text"
},
{
"key": "heroEyebrow",
"binding": "brand.config.homeHero.eyebrow",
"label": "主图项目标注",
"input": "text"
},
{
"key": "heroDescription",
"binding": "brand.config.homeHero.slogan",
"label": "首页主图说明",
"input": "textarea"
},
{
"key": "heroAction",
"binding": "brand.config.homeHero.cta",
"label": "主图行动文字",
"input": "text"
}
]
},
{
"key": "profileDetails",
"title": "服务区域与履约说明",
"description": "在主理人与我页面说明可服务的地区和真实履约承诺。",
"target": "brand",
"fields": [
{
"key": "coverage",
"binding": "brand.config.profilePresentation.coverage",
"label": "服务区域",
"input": "list",
"itemFields": [
{
"key": "title",
"label": "区域名称"
},
{
"key": "content",
"label": "服务说明",
"input": "textarea"
}
]
},
{
"key": "warranty",
"binding": "brand.config.profilePresentation.warranty",
"label": "履约与维护说明",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "承诺内容",
"input": "textarea"
}
]
},
{
"key": "recordsTitle",
"binding": "brand.config.visualPresentation.profile.recordsTitle",
"label": "咨询记录入口标题",
"input": "text"
},
{
"key": "recordsSubtitle",
"binding": "brand.config.visualPresentation.profile.recordsSubtitle",
"label": "咨询记录入口说明",
"input": "textarea"
},
{
"key": "coverageTitle",
"binding": "brand.config.visualPresentation.profile.coverageTitle",
"label": "服务区域标题",
"input": "text"
},
{
"key": "warrantyTitle",
"binding": "brand.config.visualPresentation.profile.warrantyTitle",
"label": "履约说明标题",
"input": "text"
},
{
"key": "phoneLabel",
"binding": "brand.config.visualPresentation.profile.phoneLabel",
"label": "电话标签",
"input": "text"
},
{
"key": "wechatLabel",
"binding": "brand.config.visualPresentation.profile.wechatLabel",
"label": "微信标签",
"input": "text"
},
{
"key": "addressLabel",
"binding": "brand.config.visualPresentation.profile.addressLabel",
"label": "地址标签",
"input": "text"
},
{
"key": "callAction",
"binding": "brand.config.visualPresentation.profile.callAction",
"label": "拨打电话按钮",
"input": "text"
},
{
"key": "copyAction",
"binding": "brand.config.visualPresentation.profile.copyAction",
"label": "复制微信按钮",
"input": "text"
},
{
"key": "recordsCountUnit",
"binding": "brand.config.visualPresentation.profile.recordsCountUnit",
"label": "记录数量单位",
"input": "text"
}
]
},
@@ -687,6 +1104,18 @@ export const generatedTemplatePackageRegistry = [
"label": "案例页说明",
"input": "textarea",
"maxLength": 140
},
{
"key": "closingText",
"binding": "brand.config.visualPresentation.offerings.closingText",
"label": "案例页结语",
"input": "textarea"
},
{
"key": "closingAction",
"binding": "brand.config.visualPresentation.offerings.closingAction",
"label": "案例页咨询入口",
"input": "text"
}
]
},
@@ -714,6 +1143,244 @@ export const generatedTemplatePackageRegistry = [
"binding": "brand.config.visualPresentation.inquiry.submitLabel",
"label": "提交按钮文字",
"input": "text"
},
{
"key": "eyebrow",
"binding": "brand.config.visualPresentation.inquiry.eyebrow",
"label": "咨询页小标题",
"input": "text"
},
{
"key": "note",
"binding": "brand.config.visualPresentation.inquiry.note",
"label": "咨询前提示",
"input": "textarea"
}
]
},
{
"key": "projectDetail",
"title": "案例详情",
"description": "以下内容分别填写在每个案例中,空白内容不会展示。",
"target": "offering",
"fields": [
{
"key": "categoryLabel",
"binding": "offering.config.categoryLabel",
"label": "案例类别",
"input": "text"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image"
},
{
"key": "area",
"binding": "offering.config.area",
"label": "项目地点",
"input": "text"
},
{
"key": "series",
"binding": "offering.config.series",
"label": "产品系列",
"input": "text"
},
{
"key": "spaceType",
"binding": "offering.config.spaceType",
"label": "适用空间",
"input": "text"
},
{
"key": "background",
"binding": "offering.config.details.background",
"label": "项目背景",
"input": "textarea"
},
{
"key": "designConcept",
"binding": "offering.config.details.designConcept",
"label": "设计理念",
"input": "textarea"
},
{
"key": "keywords",
"binding": "offering.config.keywords",
"label": "项目关键词",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "关键词"
}
]
},
{
"key": "crafts",
"binding": "offering.config.details.crafts",
"label": "工艺要点",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "工艺说明"
}
]
},
{
"key": "materialsList",
"binding": "offering.config.details.materialsList",
"label": "材料说明",
"input": "list",
"itemFields": [
{
"key": "name",
"label": "材料名称"
},
{
"key": "spec",
"label": "规格说明"
}
]
}
]
},
{
"key": "detailCopy",
"title": "详情页说明",
"description": "说明案例内容、价格与咨询后的真实处理方式。",
"target": "brand",
"fields": [
{
"key": "priceLabel",
"binding": "brand.config.visualPresentation.detail.priceLabel",
"label": "价格说明标题",
"input": "text"
},
{
"key": "spaceLabel",
"binding": "brand.config.visualPresentation.detail.spaceLabel",
"label": "适用空间标题",
"input": "text"
},
{
"key": "backgroundTitle",
"binding": "brand.config.visualPresentation.detail.backgroundTitle",
"label": "项目背景标题",
"input": "text"
},
{
"key": "conceptTitle",
"binding": "brand.config.visualPresentation.detail.conceptTitle",
"label": "设计理念标题",
"input": "text"
},
{
"key": "craftsTitle",
"binding": "brand.config.visualPresentation.detail.craftsTitle",
"label": "工艺要点标题",
"input": "text"
},
{
"key": "materialsTitle",
"binding": "brand.config.visualPresentation.detail.materialsTitle",
"label": "材料说明标题",
"input": "text"
},
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只填写能兑现的服务安排。",
"input": "textarea"
}
]
},
{
"key": "successCopy",
"title": "提交成功页",
"description": "访客提交后看到的确认信息与后续预期。",
"target": "brand",
"fields": [
{
"key": "eyebrow",
"binding": "brand.config.visualPresentation.success.eyebrow",
"label": "页面小标题",
"input": "text"
},
{
"key": "title",
"binding": "brand.config.visualPresentation.success.title",
"label": "确认标题",
"input": "text"
},
{
"key": "intro",
"binding": "brand.config.visualPresentation.success.intro",
"label": "后续联系说明",
"help": "回复时间必须与实际承诺一致。",
"input": "textarea"
},
{
"key": "recordsAction",
"binding": "brand.config.visualPresentation.success.recordsAction",
"label": "查看记录按钮",
"input": "text"
},
{
"key": "homeAction",
"binding": "brand.config.visualPresentation.success.homeAction",
"label": "返回首页按钮",
"input": "text"
}
]
},
{
"key": "recordsCopy",
"title": "咨询记录页",
"description": "访客查看咨询状态时看到的内容。",
"target": "brand",
"fields": [
{
"key": "title",
"binding": "brand.config.visualPresentation.records.title",
"label": "记录页标题",
"input": "text"
},
{
"key": "createAction",
"binding": "brand.config.visualPresentation.records.createAction",
"label": "新增咨询按钮",
"input": "text"
},
{
"key": "emptyTitle",
"binding": "brand.config.visualPresentation.records.emptyTitle",
"label": "暂无记录标题",
"input": "text"
},
{
"key": "emptyDescription",
"binding": "brand.config.visualPresentation.records.emptyDescription",
"label": "暂无记录说明",
"input": "textarea"
},
{
"key": "emptyAction",
"binding": "brand.config.visualPresentation.records.emptyAction",
"label": "空状态按钮",
"input": "text"
}
]
}
@@ -741,6 +1408,65 @@ export const generatedTemplatePackageRegistry = [
"type": "credential",
"label": "专业资历与方法",
"help": "填写经验、资质、专业标准或工作方法。",
"configFields": [
{
"key": "stats",
"binding": "trust.config.stats",
"label": "信任数据",
"input": "list",
"itemFields": [
{
"key": "value",
"label": "数字或成果"
},
{
"key": "label",
"label": "说明"
},
{
"key": "sub",
"label": "补充说明",
"required": false
}
]
},
{
"key": "pillars",
"binding": "trust.config.pillars",
"label": "专业方法",
"input": "list",
"itemFields": [
{
"key": "title",
"label": "方法名称"
},
{
"key": "desc",
"label": "方法说明"
}
]
},
{
"key": "serviceFlow",
"binding": "trust.config.serviceFlow",
"label": "合作流程",
"input": "list",
"itemFields": [
{
"key": "step",
"label": "步骤编号"
},
{
"key": "name",
"label": "步骤名称"
},
{
"key": "desc",
"label": "步骤说明"
}
]
}
],
"required": true
},
{
@@ -985,4 +1711,4 @@ export const generatedTemplatePackageRegistry = [
}
];
export const generatedTemplatePackageRegistryHash =
"f7ba069156be4fdf8f21c6e600796082ff87d5c04b0ed2a07d3b7d4ca68817b5";
"2a4344e4bb932b06eb386cba64d407290fa125799bf16a204eddb945179e68fc";