fix: 补齐餐饮首页可编辑区域

This commit is contained in:
que01 committed 2026-10-09 17:53:47 +08:00
1 parent 66dbba5748
commit df2b1f6031
5 files changed
+79 -5

No files matched your search

@@ -267,6 +267,10 @@ export const generatedTemplatePackageRegistry = [
"key": "food.home.offerings-heading",
"label": "餐品区域标题"
},
{
"key": "food.home.actions",
"label": "首页操作按钮"
},
{
"key": "food.home.promise-heading",
"label": "出餐承诺标题"
@@ -326,6 +330,27 @@ export const generatedTemplatePackageRegistry = [
"label": "招牌餐品标题",
"input": "text"
},
{
"key": "moreAction",
"previewTarget": "food.home.offerings-heading",
"binding": "brand.config.visualPresentation.home.moreAction",
"label": "查看全部按钮",
"input": "text"
},
{
"key": "primaryAction",
"previewTarget": "food.home.actions",
"binding": "brand.config.visualPresentation.home.primaryAction",
"label": "咨询按钮",
"input": "text"
},
{
"key": "secondaryAction",
"previewTarget": "food.home.actions",
"binding": "brand.config.visualPresentation.home.secondaryAction",
"label": "餐品按钮",
"input": "text"
},
{
"key": "manifestoTitle",
"previewTarget": "food.home.promise-heading",
@@ -2641,4 +2666,4 @@ export const generatedTemplatePackageRegistry = [
}
];
export const generatedTemplatePackageRegistryHash =
"4c99ea207a1a3689f19179ee3e56401585b838c2eeda237487943ca856dbbe52";
"a0e75797819fae48ed9592704c7ab271725298617aca56fa9e674c132684dde2";
@@ -29,12 +29,12 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
<Text>{text(brand.address)}</Text>
{p.stallTime && <Text className="notice-time">{p.stallTime}</Text>}
</View>
<View className="actions">
<View className="actions" data-editor-target="food.home.actions">
<Button className="home-action" onClick={() => navigate("inquiry")}>
咨询 / 预订
{p.primaryAction || "咨询 / 预订"}
</Button>
<Button className="home-action muted" onClick={() => navigate("offerings")}>
查看餐品
{p.secondaryAction || "查看餐品"}
</Button>
</View>
</View>
@@ -57,7 +57,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
<Text className="heading">{p.worksTitle || "可选餐品"}</Text>
</View>
<Text className="more" onClick={() => navigate("offerings")}>
查看全部 ›
{p.moreAction || "查看全部"} ›
</Text>
</View>
<View className="dish-grid">
@@ -260,6 +260,10 @@
"key": "food.home.offerings-heading",
"label": "餐品区域标题"
},
{
"key": "food.home.actions",
"label": "首页操作按钮"
},
{
"key": "food.home.promise-heading",
"label": "出餐承诺标题"
@@ -319,6 +323,27 @@
"label": "招牌餐品标题",
"input": "text"
},
{
"key": "moreAction",
"previewTarget": "food.home.offerings-heading",
"binding": "brand.config.visualPresentation.home.moreAction",
"label": "查看全部按钮",
"input": "text"
},
{
"key": "primaryAction",
"previewTarget": "food.home.actions",
"binding": "brand.config.visualPresentation.home.primaryAction",
"label": "咨询按钮",
"input": "text"
},
{
"key": "secondaryAction",
"previewTarget": "food.home.actions",
"binding": "brand.config.visualPresentation.home.secondaryAction",
"label": "餐品按钮",
"input": "text"
},
{
"key": "manifestoTitle",
"previewTarget": "food.home.promise-heading",