fix: 收口模板预览状态与媒体矩阵

This commit is contained in:
que01 committed 2026-10-16 22:53:05 +08:00
1 parent 5bf54096be
commit b1e8012ded
28 files changed
+1015 -56

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

@@ -1,6 +1,6 @@
{
"name": "@personal-brand/template-acheng-campus-food",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"type": "module",
"files": [
@@ -1,6 +1,6 @@
{
"packageKey": "acheng-campus-food",
"version": "1.0.0",
"version": "1.0.1",
"displayName": "阿成校园餐",
"defaultBrandSlug": "default-brand",
"runtimeContract": "1.0",
@@ -500,9 +500,18 @@
"label": "餐品类别",
"input": "select",
"options": [
{ "value": "set-meal", "label": "套餐" },
{ "value": "private-chef", "label": "私厨" },
{ "value": "custom", "label": "定制餐品" }
{
"value": "set-meal",
"label": "套餐"
},
{
"value": "private-chef",
"label": "私厨"
},
{
"value": "custom",
"label": "定制餐品"
}
],
"previewTarget": "acheng-campus-food.offerings.item"
}
@@ -611,9 +620,18 @@
"label": "餐品类别",
"input": "select",
"options": [
{ "value": "set-meal", "label": "套餐" },
{ "value": "private-chef", "label": "私厨" },
{ "value": "custom", "label": "定制餐品" }
{
"value": "set-meal",
"label": "套餐"
},
{
"value": "private-chef",
"label": "私厨"
},
{
"value": "custom",
"label": "定制餐品"
}
],
"previewTarget": "acheng-campus-food.detail.dishDetail"
},
@@ -1223,13 +1241,35 @@
"kind": "package",
"name": "示例·今日套餐",
"summary": "现做家常套餐示例内容。",
"categoryKey": "set-meal"
"categoryKey": "set-meal",
"coverUrl": "/assets/content/package-01.jpg",
"priceText": "¥28 起 / 份",
"config": {
"media": [
{
"url": "/assets/content/package-01.jpg",
"alt": "",
"type": "image"
}
]
}
},
{
"kind": "service",
"name": "示例·聚餐定制",
"summary": "按人数和口味沟通定制餐品。",
"categoryKey": "private-chef"
"categoryKey": "private-chef",
"coverUrl": "/assets/content/private-chef.jpg",
"priceText": "按人数和菜单确认",
"config": {
"media": [
{
"url": "/assets/content/private-chef.jpg",
"alt": "",
"type": "image"
}
]
}
}
],
"trustContent": [
@@ -1478,7 +1518,76 @@
"required": true
}
],
"capabilityKey": "booking"
"capabilityKey": "booking",
"brandConfig": {
"visualTemplateKey": "acheng-campus-food",
"founder": "阿成",
"title": "私房菜主理人",
"slogan": "认真做好每一顿家常饭。",
"phone": "",
"wechat": "",
"studioAddress": "大学城生活区东门附近",
"avatarUrl": "/assets/owner/portrait.jpg",
"heroImage": "/assets/content/package-01.jpg",
"visualPresentation": {
"home": {
"stallTitle": "服务地点",
"primaryAction": "咨询 / 预订",
"secondaryAction": "查看菜单",
"worksEyebrow": "今日推荐",
"worksTitle": "热门套餐",
"worksAction": "查看全部 →",
"manifestoTitle": "我们的服务承诺"
},
"offerings": {
"title": "餐品与定制",
"subtitle": "现做家常餐、团体餐和活动定制",
"materialLabel": "包含:",
"hardwareLabel": "定制说明:",
"detailAction": "查看详情 →",
"inquiryAction": "预订 / 咨询"
},
"detail": {
"priceLabel": "价格参考",
"spaceLabel": "适合场景",
"backgroundTitle": "餐品说明",
"conceptTitle": "备餐方式",
"craftsTitle": "服务内容",
"materialsTitle": "交付说明",
"inquiryAction": "预订 / 咨询",
"inquiryHint": "提交后会由主理人与你确认时间、数量和地点。"
},
"profile": {
"phoneLabel": "联系电话",
"wechatLabel": "微信",
"addressLabel": "服务地点",
"callAction": "呼叫",
"copyAction": "复制",
"recordsTitle": "我的订单与咨询",
"recordsCountUnit": "条记录"
},
"inquiry": {
"eyebrow": "ORDER",
"title": "餐品预订",
"subtitle": "留下用餐时间和人数,我会尽快确认。",
"submitLabel": "提交预订需求"
},
"success": {
"eyebrow": "ORDER",
"title": "已收到你的需求",
"intro": "确认备餐时间和数量后,我会尽快回复。",
"recordsAction": "查看咨询记录",
"homeAction": "返回首页"
},
"records": {
"title": "我的咨询记录",
"createAction": "新增咨询",
"emptyTitle": "还没有咨询记录",
"emptyDescription": "提交一次需求,开始与主理人沟通。",
"emptyAction": "开始咨询"
}
}
}
}
},
"pages": [