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

@@ -60,7 +60,11 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
>
{credential?.content}
</Text>
<View className="stats">
<View
className="stats"
data-editor-target="editorial.home.proof.stats"
data-editor-record-id={credential?.id}
>
{t.stats?.map((item, index) => (
<View key={index}>
<Text className="stat-value">{item.value}</Text>
@@ -73,12 +77,18 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
<View className="trust" data-editor-target="editorial.home.manifesto">
<Text className="eyebrow">{p.manifestoEyebrow}</Text>
<Text className="section-title light">{p.manifestoTitle}</Text>
{t.pillars?.map((item, index) => (
<View className="pillar" key={index}>
<Text className="pillar-title">{item.title}</Text>
<Text className="pillar-desc">{item.desc}</Text>
</View>
))}
<View
className="pillars-content"
data-editor-target="editorial.home.manifesto.pillars"
data-editor-record-id={credential?.id}
>
{t.pillars?.map((item, index) => (
<View className="pillar" key={index}>
<Text className="pillar-title">{item.title}</Text>
<Text className="pillar-desc">{item.desc}</Text>
</View>
))}
</View>
</View>
<View className="section">
<View className="section-head" data-editor-target="editorial.home.works">
@@ -111,10 +121,14 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
</View>
))}
</View>
<View className="flow">
<View className="flow" data-editor-target="editorial.home.flow">
<Text className="flow-eyebrow">{p.flowEyebrow}</Text>
<Text className="flow-title">{p.flowTitle}</Text>
<View className="flow-grid">
<View
className="flow-grid"
data-editor-target="editorial.home.flow.steps"
data-editor-record-id={credential?.id}
>
{t.serviceFlow?.map((step, index) => (
<View className="flow-item" key={index}>
<Text className="flow-step">{step.step}</Text>
@@ -183,7 +197,11 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
)}
</View>
</View>
<View className="records-card" onClick={() => navigate("records")}>
<View
className="records-card"
data-editor-target="linjing-editorial.profile.records"
onClick={() => navigate("records")}
>
<View className="entry-copy">
<Text>{p.recordsTitle || "我的咨询记录"}</Text>
<Text>{p.recordsSubtitle}</Text>
@@ -191,7 +209,7 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
<Text>查看 ›</Text>
</View>
{rows(config.coverage).length > 0 && (
<View className="info-card">
<View className="info-card" data-editor-target="linjing-editorial.profile.coverage">
<View className="card-title">{p.coverageTitle}</View>
{rows(config.coverage).map((item, index) => (
<View className="note" key={index}>
@@ -202,7 +220,7 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
</View>
)}
{Array.isArray(config.warranty) && config.warranty.length > 0 && (
<View className="info-card">
<View className="info-card" data-editor-target="linjing-editorial.profile.warranty">
<View className="card-title">{p.warrantyTitle}</View>
{config.warranty.map((item, index) => (
<View className="warranty" key={index}>
@@ -233,8 +251,8 @@ function List({ workspace }: { workspace: RuntimeWorkspace }) {
return (
<View className="editorial-list" data-editor-target="linjing-editorial.offerings.cases">
<View className="page">
<Text className="eyebrow">{p.eyebrow}</Text>
<Text className="section-title">{p.title || "作品与服务"}</Text>
<Text className="eyebrow">{p.worksEyebrow}</Text>
<Text className="section-title">{p.worksTitle || "作品与服务"}</Text>
<Text className="subtitle">{p.subtitle}</Text>
{workspace.offerings.map(offering).map((item) => (
<View
@@ -252,7 +270,9 @@ function List({ workspace }: { workspace: RuntimeWorkspace }) {
<Text className="work-name">{item.name}</Text>
<Text className="work-desc">{item.desc}</Text>
<Text className="work-price">{item.priceRange}</Text>
<Text className="more">{p.detailAction || "了解详情 →"}</Text>
<Text className="more" data-editor-target="linjing-editorial.offerings.action">
{p.detailAction || "了解详情 →"}
</Text>
</View>
</View>
))}
@@ -345,7 +365,7 @@ function Detail({ workspace, id }: { workspace: RuntimeWorkspace; id?: string })
))}
</View>
</View>
<View className="bar">
<View className="bar" data-editor-target="linjing-editorial.detail.action">
<Button onClick={() => navigate("inquiry", { offeringId: item.id })}>
{p.inquiryAction}
</Button>
+281 -52
View File
@@ -87,7 +87,7 @@
"key": "designPhilosophy",
"page": "home",
"binding": "brand.config.templateData.designPhilosophy",
"previewTarget": "linjing-editorial.home.home",
"previewTarget": "editorial.home.hero",
"label": "设计理念",
"help": "用一两句话说明你的设计方法。",
"input": "textarea",
@@ -152,6 +152,38 @@
"required": true,
"placeholder": "例如:别墅门系统主理人",
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "avatarUrl",
"binding": "brand.avatarUrl",
"label": "主理人头像",
"input": "image",
"previewTarget": "linjing-editorial.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "contactPhone",
"binding": "brand.contactPhone",
"label": "联系电话",
"input": "phone",
"previewTarget": "linjing-editorial.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "contactWechat",
"binding": "brand.contactWechat",
"label": "联系微信",
"input": "text",
"previewTarget": "linjing-editorial.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "address",
"binding": "brand.address",
"label": "联系地址",
"input": "text",
"previewTarget": "linjing-editorial.profile.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
}
],
"previewTargets": [
@@ -175,26 +207,55 @@
"input": "text",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "summary",
"binding": "offering.summary",
"label": "简介",
"input": "textarea",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "priceText",
"binding": "offering.priceText",
"label": "价格说明",
"input": "text",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "coverUrl",
"binding": "offering.coverUrl",
"label": "封面图片",
"input": "image",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image",
"previewTarget": "linjing-editorial.home.offering",
"help": "此图优先用于卡片和详情;未填写时使用封面图片。"
},
{
"key": "categoryLabel",
"binding": "offering.config.categoryLabel",
"label": "案例类别",
"input": "text",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "area",
"binding": "offering.config.area",
"label": "项目地点",
"input": "text",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "series",
"binding": "offering.config.series",
"label": "产品系列",
"input": "text",
"previewTarget": "linjing-editorial.home.offering"
},
{
"key": "keywords",
"binding": "offering.config.keywords",
"label": "项目关键词",
"input": "list",
"itemValueKey": "value",
"itemFields": [
{
"key": "value",
"label": "关键词"
}
],
"previewTarget": "linjing-editorial.home.offering"
}
],
"previewTargets": [
@@ -213,7 +274,7 @@
"previewTargets": [
{
"key": "editorial.home.identity",
"label": "主理人标签"
"label": "主理人介绍"
},
{
"key": "editorial.home.hero",
@@ -233,7 +294,21 @@
},
{
"key": "linjing-editorial.home.home",
"label": "首页品牌表达"
"label": "首页品牌表达",
"composite": true,
"children": [
"editorial.home.identity",
"editorial.home.hero",
"editorial.home.proof",
"editorial.home.manifesto",
"editorial.home.works",
"editorial.home.flow",
"linjing-editorial.home.offering"
]
},
{
"key": "editorial.home.flow",
"label": "合作流程标题"
}
],
"fields": [
@@ -301,49 +376,105 @@
"binding": "brand.config.visualPresentation.home.worksAction",
"label": "查看案例入口",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.works"
},
{
"key": "flowEyebrow",
"binding": "brand.config.visualPresentation.home.flowEyebrow",
"label": "合作流程小标题",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.flow"
},
{
"key": "flowTitle",
"binding": "brand.config.visualPresentation.home.flowTitle",
"label": "项目流程标题",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.flow"
},
{
"key": "heroTitle",
"binding": "brand.config.homeHero.title",
"label": "首页主标题",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.hero"
},
{
"key": "heroEyebrow",
"binding": "brand.config.homeHero.eyebrow",
"label": "主图项目标注",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.hero"
},
{
"key": "heroDescription",
"binding": "brand.config.homeHero.slogan",
"label": "首页主图说明",
"input": "textarea",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.hero"
},
{
"key": "heroAction",
"binding": "brand.config.homeHero.cta",
"label": "主图行动文字",
"input": "text",
"previewTarget": "linjing-editorial.home.home"
"previewTarget": "editorial.home.hero"
},
{
"key": "avatarUrl",
"binding": "brand.avatarUrl",
"label": "主理人头像",
"input": "image",
"previewTarget": "editorial.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "founder",
"binding": "brand.config.founder",
"label": "主理人姓名",
"input": "text",
"previewTarget": "editorial.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "title",
"binding": "brand.config.title",
"label": "身份或职位",
"input": "text",
"previewTarget": "editorial.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "description",
"binding": "brand.description",
"label": "主理人简介",
"input": "textarea",
"previewTarget": "editorial.home.identity",
"help": "共享品牌资料,修改后同步影响其他展示位置。"
},
{
"key": "heroFallback_name",
"binding": "brand.name",
"label": "备用主标题(品牌名称)",
"input": "text",
"previewTarget": "editorial.home.hero",
"help": "共享品牌值;对应主图文案为空时使用。"
},
{
"key": "heroFallback_tagline",
"binding": "brand.tagline",
"label": "备用标注(品牌标语)",
"input": "text",
"previewTarget": "editorial.home.hero",
"help": "共享品牌值;对应主图文案为空时使用。"
},
{
"key": "heroFallback_description",
"binding": "brand.description",
"label": "备用说明(品牌简介)",
"input": "text",
"previewTarget": "editorial.home.hero",
"help": "共享品牌值;对应主图文案为空时使用。"
}
]
},
@@ -370,7 +501,7 @@
"input": "textarea"
}
],
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.coverage"
},
{
"key": "warranty",
@@ -385,83 +516,102 @@
"input": "textarea"
}
],
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.warranty"
},
{
"key": "recordsTitle",
"binding": "brand.config.visualPresentation.profile.recordsTitle",
"label": "咨询记录入口标题",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.records"
},
{
"key": "recordsSubtitle",
"binding": "brand.config.visualPresentation.profile.recordsSubtitle",
"label": "咨询记录入口说明",
"input": "textarea",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.records"
},
{
"key": "coverageTitle",
"binding": "brand.config.visualPresentation.profile.coverageTitle",
"label": "服务区域标题",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.coverage"
},
{
"key": "warrantyTitle",
"binding": "brand.config.visualPresentation.profile.warrantyTitle",
"label": "履约说明标题",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.warranty"
},
{
"key": "phoneLabel",
"binding": "brand.config.visualPresentation.profile.phoneLabel",
"label": "电话标签",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "wechatLabel",
"binding": "brand.config.visualPresentation.profile.wechatLabel",
"label": "微信标签",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "addressLabel",
"binding": "brand.config.visualPresentation.profile.addressLabel",
"label": "地址标签",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "callAction",
"binding": "brand.config.visualPresentation.profile.callAction",
"label": "拨打电话按钮",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "copyAction",
"binding": "brand.config.visualPresentation.profile.copyAction",
"label": "复制微信按钮",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
},
{
"key": "recordsCountUnit",
"binding": "brand.config.visualPresentation.profile.recordsCountUnit",
"label": "记录数量单位",
"input": "text",
"previewTarget": "linjing-editorial.profile.profileDetails"
"previewTarget": "linjing-editorial.profile.identity"
}
],
"previewTargets": [
{
"key": "linjing-editorial.profile.profileDetails",
"label": "服务区域与履约说明"
"label": "主理人页面",
"composite": true,
"children": [
"linjing-editorial.profile.identity",
"linjing-editorial.profile.records",
"linjing-editorial.profile.coverage",
"linjing-editorial.profile.warranty"
]
},
{
"key": "linjing-editorial.profile.records",
"label": "咨询记录入口"
},
{
"key": "linjing-editorial.profile.coverage",
"label": "服务区域"
},
{
"key": "linjing-editorial.profile.warranty",
"label": "履约说明"
}
]
},
@@ -499,6 +649,28 @@
"label": "封面图片",
"input": "image",
"previewTarget": "linjing-editorial.offerings.item"
},
{
"key": "detailHero",
"binding": "offering.config.detailHero",
"label": "详情主图",
"input": "image",
"previewTarget": "linjing-editorial.offerings.item",
"help": "此图优先用于卡片和详情;未填写时使用封面图片。"
},
{
"key": "categoryLabel",
"binding": "offering.config.categoryLabel",
"label": "案例类别",
"input": "text",
"previewTarget": "linjing-editorial.offerings.item"
},
{
"key": "area",
"binding": "offering.config.area",
"label": "项目地点",
"input": "text",
"previewTarget": "linjing-editorial.offerings.item"
}
],
"previewTargets": [
@@ -767,21 +939,6 @@
"label": "材料说明标题",
"input": "text",
"previewTarget": "linjing-editorial.detail.detailCopy"
},
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text",
"previewTarget": "linjing-editorial.detail.detailCopy"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只填写能兑现的服务安排。",
"input": "textarea",
"previewTarget": "linjing-editorial.detail.detailCopy"
}
],
"previewTargets": [
@@ -891,6 +1048,58 @@
"label": "咨询记录页"
}
]
},
{
"key": "offerings_detailAction",
"title": "详情按钮文字",
"description": "此页同类按钮共用此文案。",
"page": "offerings",
"target": "brand",
"previewTargets": [
{
"key": "linjing-editorial.offerings.action",
"label": "详情按钮文字"
}
],
"fields": [
{
"key": "detailAction",
"binding": "brand.config.visualPresentation.offerings.detailAction",
"label": "详情按钮文字",
"input": "text",
"previewTarget": "linjing-editorial.offerings.action"
}
]
},
{
"key": "detailAction",
"title": "详情页咨询入口",
"description": "公共按钮与提示,对所有业务详情生效。",
"page": "detail",
"target": "brand",
"fields": [
{
"key": "inquiryAction",
"binding": "brand.config.visualPresentation.detail.inquiryAction",
"label": "咨询按钮文字",
"input": "text",
"previewTarget": "linjing-editorial.detail.action"
},
{
"key": "inquiryHint",
"binding": "brand.config.visualPresentation.detail.inquiryHint",
"label": "咨询后的处理说明",
"help": "只填写能兑现的服务安排。",
"input": "textarea",
"previewTarget": "linjing-editorial.detail.action"
}
],
"previewTargets": [
{
"key": "linjing-editorial.detail.action",
"label": "详情页咨询入口"
}
]
}
]
},
@@ -940,12 +1149,30 @@
},
"pages": ["home", "profile"],
"help": "填写经验、资质、专业标准或工作方法。",
"previewTargets": [
{
"key": "editorial.home.proof.stats",
"label": "信任数据",
"page": "home"
},
{
"key": "editorial.home.manifesto.pillars",
"label": "专业方法",
"page": "home"
},
{
"key": "editorial.home.flow.steps",
"label": "合作流程步骤",
"page": "home"
}
],
"configFields": [
{
"key": "stats",
"binding": "trust.config.stats",
"label": "信任数据",
"input": "list",
"previewTarget": "editorial.home.proof.stats",
"itemFields": [
{
"key": "value",
@@ -967,6 +1194,7 @@
"binding": "trust.config.pillars",
"label": "专业方法",
"input": "list",
"previewTarget": "editorial.home.manifesto.pillars",
"itemFields": [
{
"key": "title",
@@ -983,6 +1211,7 @@
"binding": "trust.config.serviceFlow",
"label": "合作流程",
"input": "list",
"previewTarget": "editorial.home.flow.steps",
"itemFields": [
{
"key": "step",