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>