fix: 完善模板可视化编辑闭环与通用验收

This commit is contained in:
que01 committed 2026-10-10 16:20:08 +08:00
1 parent fa6b492bce
commit 22a82dbfba
39 files changed
+7773 -443

No files matched your search

@@ -222,7 +222,11 @@ function Service({ workspace }: { workspace: RuntimeWorkspace }) {
)}
<Text>{text(process.config.refundNote)}</Text>
</View>
<Button className="process-action" onClick={() => navigate("inquiry")}>
<Button
data-editor-target="food.service.process-action"
className="process-action"
onClick={() => navigate("inquiry")}
>
{p.processAction || "立即咨询"} →
</Button>
</View>
@@ -461,7 +465,9 @@ function OfferingList({ workspace }: { workspace: RuntimeWorkspace }) {
<Text className="subtitle">{item.desc}</Text>
<View className="dish-bottom">
<Text className="price">{item.priceRange}</Text>
<Text className="more">{p.detailAction || "查看详情 ›"}</Text>
<Text className="more" data-editor-target="acheng-campus-food.offerings.action">
{p.detailAction || "查看详情 ›"}
</Text>
</View>
</View>
</View>
@@ -560,7 +566,7 @@ function Detail({ workspace, id }: { workspace: RuntimeWorkspace; id?: string })
))}
</View>
</View>
<View className="bar">
<View className="bar" data-editor-target="acheng-campus-food.detail.action">
<Button onClick={() => navigate("inquiry", { offeringId: item.id })}>
{p.inquiryAction || "咨询 / 提前预订"}
</Button>
@@ -185,6 +185,30 @@
"label": "记录数量单位",
"input": "text",
"previewTarget": "acheng-campus-food.profile.identity"
},
{
"key": "acheng-campus-food_profile_identity_avatarUrl",
"binding": "brand.avatarUrl",
"label": "主理人头像",
"input": "image",
"previewTarget": "acheng-campus-food.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "acheng-campus-food_profile_identity_name",
"binding": "brand.name",
"label": "品牌名称",
"input": "text",
"previewTarget": "acheng-campus-food.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "acheng-campus-food_profile_identity_description",
"binding": "brand.description",
"label": "主理人简介",
"input": "textarea",
"previewTarget": "acheng-campus-food.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
}
],
"previewTargets": [
@@ -228,6 +252,14 @@
"label": "封面图片",
"input": "image",
"previewTarget": "acheng-campus-food.home.offering"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image",
"previewTarget": "acheng-campus-food.home.offering",
"help": "此图优先用于卡片和详情;未填写时使用封面图片。"
}
],
"previewTargets": [
@@ -356,6 +388,38 @@
"binding": "brand.config.visualPresentation.home.manifestoTitle",
"label": "出餐承诺标题",
"input": "text"
},
{
"key": "food_home_identity_avatarUrl",
"binding": "brand.avatarUrl",
"label": "主理人头像",
"input": "image",
"previewTarget": "food.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "food_home_identity_description",
"binding": "brand.description",
"label": "主理人简介",
"input": "textarea",
"previewTarget": "food.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "food_home_location_address",
"binding": "brand.address",
"label": "服务地址",
"input": "text",
"previewTarget": "food.home.location",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "food_home_hero_name",
"binding": "brand.name",
"label": "品牌名称",
"input": "text",
"previewTarget": "food.home.hero",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
}
]
},
@@ -369,16 +433,21 @@
{
"key": "processAction",
"binding": "brand.config.visualPresentation.service.processAction",
"label": "流程咨询按钮",
"label": "咨询按钮文字",
"input": "text",
"placeholder": "例如:立即预订",
"previewTarget": "acheng-campus-food.service.service"
"previewTarget": "food.service.process-action"
}
],
"previewTargets": [
{
"key": "acheng-campus-food.service.service",
"label": "出摊服务页说明"
"label": "出摊服务页说明",
"composite": true,
"children": ["food.service.process-action"]
},
{
"key": "food.service.process-action",
"label": "咨询按钮文字"
}
]
},
@@ -416,6 +485,21 @@
"label": "封面图片",
"input": "image",
"previewTarget": "acheng-campus-food.offerings.item"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image",
"previewTarget": "acheng-campus-food.offerings.item",
"help": "此图优先用于卡片和详情;未填写时使用封面图片。"
},
{
"key": "categoryLabel",
"binding": "offering.config.categoryLabel",
"label": "餐品类别",
"input": "text",
"previewTarget": "acheng-campus-food.offerings.item"
}
],
"previewTargets": [
@@ -666,21 +750,6 @@
"label": "食材与搭配标题",
"input": "text",
"previewTarget": "acheng-campus-food.detail.detailCopy"
},
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text",
"previewTarget": "acheng-campus-food.detail.detailCopy"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只写能够兑现的联系和确认方式。",
"input": "textarea",
"previewTarget": "acheng-campus-food.detail.detailCopy"
}
],
"previewTargets": [
@@ -790,6 +859,58 @@
"label": "咨询记录页"
}
]
},
{
"key": "offerings_detailAction",
"title": "详情按钮文字",
"description": "此页同类按钮共用此文案。",
"page": "offerings",
"target": "brand",
"previewTargets": [
{
"key": "acheng-campus-food.offerings.action",
"label": "详情按钮文字"
}
],
"fields": [
{
"key": "detailAction",
"binding": "brand.config.visualPresentation.offerings.detailAction",
"label": "详情按钮文字",
"input": "text",
"previewTarget": "acheng-campus-food.offerings.action"
}
]
},
{
"key": "detailAction",
"title": "详情页咨询入口",
"description": "公共按钮与提示,对所有业务详情生效。",
"page": "detail",
"target": "brand",
"fields": [
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text",
"previewTarget": "acheng-campus-food.detail.action"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只写能够兑现的联系和确认方式。",
"input": "textarea",
"previewTarget": "acheng-campus-food.detail.action"
}
],
"previewTargets": [
{
"key": "acheng-campus-food.detail.action",
"label": "详情页咨询入口"
}
]
}
]
},