fix: 完善工坊模板安装预览与详情样例
This commit is contained in:
1 parent
5313fd9d32
commit
50753db79d
16 files changed
+496
-26
No files matched your search
@@ -4,6 +4,16 @@
|
||||
|
||||
## 内容与使用
|
||||
|
||||
本模板适配独立的 `personal` 品牌,不会出现在 `food` 或 `doors` 品牌的视觉选项中。已有的阿成、林境品牌保持原行业。首次使用可显式创建宣传品牌并授权指定管理员:
|
||||
|
||||
```sh
|
||||
pnpm --filter @personal-brand/config build
|
||||
pnpm --filter @personal-brand/api build
|
||||
pnpm --filter @personal-brand/api exec node --env-file=.env scripts/create-atelier-brand.mjs admin
|
||||
```
|
||||
|
||||
脚本可重复执行,不覆盖已有品牌,不导入样例或发布。刷新后台,在顶部品牌列表选择「独立工坊 · 品牌小程序」,再在「配置与发布」中显式导入示例内容。
|
||||
|
||||
- 首页:价值定位、差异化卡片、试点案例、目标客户和咨询入口。
|
||||
- 服务:交付体系、协作流程、信任基础与合作边界。
|
||||
- 咨询:主理人、微信复制、FAQ 和咨询记录。
|
||||
|
||||
@@ -292,19 +292,35 @@ function Detail({ workspace, id }: Props & { id?: string }) {
|
||||
data-editor-target="atelier-solopreneur.detail.projectDetail"
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
<View className="atelier-card">
|
||||
<Text>
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.priceLabel}</Text>:
|
||||
{item.priceRange}
|
||||
<View className="atelier-card atelier-detail-facts">
|
||||
<View className="atelier-detail-row">
|
||||
<Text
|
||||
className="atelier-detail-label"
|
||||
data-editor-target="atelier-solopreneur.detail.detailCopy"
|
||||
>
|
||||
{p.priceLabel}
|
||||
</Text>
|
||||
<Text className="atelier-detail-value">{item.priceRange}</Text>
|
||||
</View>
|
||||
<View className="atelier-detail-row">
|
||||
<Text
|
||||
className="atelier-detail-label"
|
||||
data-editor-target="atelier-solopreneur.detail.detailCopy"
|
||||
>
|
||||
{p.spaceLabel}
|
||||
</Text>
|
||||
<Text className="atelier-detail-value">{text(item.presentation.spaceType)}</Text>
|
||||
</View>
|
||||
<View className="atelier-detail-meta">
|
||||
{[item.category, item.area, item.series].filter(Boolean).map((value, index) => (
|
||||
<Text className="atelier-tag" key={index}>
|
||||
{value}
|
||||
</Text>
|
||||
))}
|
||||
</View>
|
||||
<Text className="atelier-caption atelier-detail-keywords">
|
||||
{item.keywords.join(" · ")}
|
||||
</Text>
|
||||
<Text>
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.spaceLabel}</Text>:
|
||||
{text(item.presentation.spaceType)}
|
||||
</Text>
|
||||
<Text>
|
||||
{item.category} {item.area} {item.series}
|
||||
</Text>
|
||||
<Text>{item.keywords.join(" · ")}</Text>
|
||||
</View>
|
||||
<Text className="atelier-heading">
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">
|
||||
|
||||
@@ -366,6 +366,37 @@
|
||||
.atelier-detail-action {
|
||||
margin-top: 50px;
|
||||
}
|
||||
.atelier-detail-facts {
|
||||
margin-top: 28px;
|
||||
}
|
||||
.atelier-detail-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 24px;
|
||||
}
|
||||
.atelier-detail-row + .atelier-detail-row {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.atelier-detail-label {
|
||||
flex: 0 0 112px;
|
||||
color: #777b73;
|
||||
}
|
||||
.atelier-detail-value {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.atelier-detail-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 28px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #eeece6;
|
||||
}
|
||||
.atelier-detail-keywords {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.atelier-detail-action .atelier-caption {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
|
||||
@@ -1363,15 +1363,73 @@
|
||||
"kind": "service",
|
||||
"name": "校园餐饮品牌",
|
||||
"summary": "敏捷菜单 + 品牌展示 + 咨询承接",
|
||||
"categoryKey": "prototype",
|
||||
"coverUrl": "/assets/cases/campus.jpg"
|
||||
"categoryKey": "portfolio",
|
||||
"coverUrl": "/assets/cases/campus.jpg",
|
||||
"priceText": "按需求确认范围与报价",
|
||||
"config": {
|
||||
"spaceType": "餐饮品牌展示与咨询承接",
|
||||
"series": "试点架构原型",
|
||||
"keywords": ["模板演示", "可持续运营", "后台配置"],
|
||||
"details": {
|
||||
"background": "校园餐饮品牌需要让访客快速了解餐品、营业安排与预订方式。本案例是用于验证系统结构的试点模板,不代表真实客户项目。",
|
||||
"designConcept": "以品牌介绍建立第一印象,通过菜单与服务说明帮助访客了解供给,再通过咨询表单承接具体需求。",
|
||||
"crafts": [
|
||||
"品牌介绍与餐品内容由后台维护",
|
||||
"草稿预览与发布分离,确认后更新公开内容",
|
||||
"咨询表单收集需求,支持后续人工跟进"
|
||||
],
|
||||
"materialsList": [
|
||||
{
|
||||
"name": "品牌展示",
|
||||
"spec": "首页、主理人介绍与信任内容"
|
||||
},
|
||||
{
|
||||
"name": "餐品管理",
|
||||
"spec": "列表、详情与封面配置"
|
||||
},
|
||||
{
|
||||
"name": "需求承接",
|
||||
"spec": "咨询表单与跟进记录"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"kind": "service",
|
||||
"name": "个人编辑型品牌",
|
||||
"summary": "案例沉淀 + 专业表达 + 合作咨询",
|
||||
"categoryKey": "prototype",
|
||||
"coverUrl": "/assets/cases/editorial.jpg"
|
||||
"categoryKey": "portfolio",
|
||||
"coverUrl": "/assets/cases/editorial.jpg",
|
||||
"priceText": "按需求确认范围与报价",
|
||||
"config": {
|
||||
"spaceType": "个人品牌作品展示与合作咨询",
|
||||
"series": "试点架构原型",
|
||||
"keywords": ["模板演示", "可持续运营", "后台配置"],
|
||||
"details": {
|
||||
"background": "个人品牌需要将定位、代表作品与合作方式组织成清晰的了解路径。本案例展示编辑型模板的结构,不构成客户合作背书。",
|
||||
"designConcept": "围绕专业表达与作品沉淀组织页面,让访客先了解品牌与工作方式,再浏览案例细节并提出合作需求。",
|
||||
"crafts": [
|
||||
"个人定位、作品与流程可持续更新",
|
||||
"案例详情展示背景、构建思路与交付要点",
|
||||
"通过咨询入口衔接后续需求沟通"
|
||||
],
|
||||
"materialsList": [
|
||||
{
|
||||
"name": "专业表达",
|
||||
"spec": "定位、简介与品牌理念"
|
||||
},
|
||||
{
|
||||
"name": "作品沉淀",
|
||||
"spec": "案例列表、详情与图片"
|
||||
},
|
||||
{
|
||||
"name": "合作沟通",
|
||||
"spec": "合作说明、咨询表单与跟进记录"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"trustContent": [
|
||||
|
||||
Reference in new issue
Block a user