From 6de7dd8d9e514c29c32d80610ab34ff7418b92bc Mon Sep 17 00:00:00 2001 From: que01 Date: Fri, 16 Oct 2026 09:26:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E5=B7=A5=E5=9D=8A?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=BB=E7=90=86=E4=BA=BA=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/atelier-template-acceptance.md | 2 +- .../config/src/generated-template-packages.ts | 79 +++++++++++++++++- .../template-atelier-solopreneur/README.md | 2 +- .../miniapp/pages/index/index.wxml | 2 +- .../miniapp/pages/index/index.wxss | 57 +++++++++++++ .../taro/index.tsx | 26 ++++++ .../taro/style.css | 62 ++++++++++++++ .../template.json | 81 ++++++++++++++++++- 8 files changed, 305 insertions(+), 6 deletions(-) diff --git a/docs/atelier-template-acceptance.md b/docs/atelier-template-acceptance.md index bd4bcb7..cee4306 100644 --- a/docs/atelier-template-acceptance.md +++ b/docs/atelier-template-acceptance.md @@ -5,7 +5,7 @@ ## 已实现 - 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、我的。 -- 首页、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。 +- 首页(含主理人身份卡)、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。 - 暖白与森林绿视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。 - 包内示例显式导入,不新增全局 seed、不更改已有品牌与两套模板包。 - 当前视觉模板决定示例来源;已有配置和启用表单保留;案例封面来自包内资源。 diff --git a/packages/config/src/generated-template-packages.ts b/packages/config/src/generated-template-packages.ts index 23121ca..d8d3a69 100644 --- a/packages/config/src/generated-template-packages.ts +++ b/packages/config/src/generated-template-packages.ts @@ -1605,6 +1605,69 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ ], admin: { sections: [ + { + key: "home_identity", + title: "首页主理人卡", + description: "展示主理人身份、经验和当前状态;头像复用品牌头像。", + page: "home", + target: "brand", + previewTargets: [ + { + key: "atelier.home.identity", + label: "首页主理人卡", + }, + ], + fields: [ + { + key: "founder", + binding: "brand.config.founder", + label: "主理人姓名", + input: "text", + previewTarget: "atelier.home.identity", + }, + { + key: "title", + binding: "brand.config.title", + label: "身份与专长", + input: "text", + previewTarget: "atelier.home.identity", + }, + { + key: "avatarUrl", + binding: "brand.avatarUrl", + label: "主理人头像", + input: "image", + previewTarget: "atelier.home.identity", + }, + { + key: "experience", + binding: "brand.config.atelier.identity.experience", + label: "经验年限", + input: "text", + previewTarget: "atelier.home.identity", + }, + { + key: "status", + binding: "brand.config.atelier.identity.status", + label: "当前状态", + input: "text", + previewTarget: "atelier.home.identity", + }, + { + key: "tags", + binding: "brand.config.atelier.identity.tags", + label: "身份标签", + input: "list", + previewTarget: "atelier.home.identity", + itemFields: [ + { + key: "title", + label: "标签", + }, + ], + }, + ], + }, { key: "home_intro", title: "首页价值定位", @@ -3327,7 +3390,21 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ "需求对齐、结构梳理、视觉确认、内容配置与上线分阶段推进。微信认证与审核由平台决定,所需材料和分工提前确认。", }, ], + identity: { + status: "当前可接新项目", + experience: "10 年", + tags: [ + { + title: "大屏可视化", + }, + { + title: "小程序", + }, + ], + }, }, + founder: "验收主理人", + title: "产品设计 / 全栈开发", }, }, }, @@ -4884,4 +4961,4 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ }, ]; export const generatedTemplatePackageRegistryHash = - "e135c8d9587003db4353e43d4fcce7fa31dafe12f7385742262a7c840a42e29e"; + "36c0f988f11fa4d1b106520d517428f502568490d32db935730fbff2a01dee37"; diff --git a/packages/template-atelier-solopreneur/README.md b/packages/template-atelier-solopreneur/README.md index 4d144bf..677d4e5 100644 --- a/packages/template-atelier-solopreneur/README.md +++ b/packages/template-atelier-solopreneur/README.md @@ -14,7 +14,7 @@ pnpm --filter @personal-brand/api exec node --env-file=.env scripts/create-ateli 脚本可重复执行,不覆盖已有品牌,不导入样例或发布。刷新后台,在顶部品牌列表选择「独立工坊 · 品牌小程序」,再在「配置与发布」中显式导入示例内容。 -- 首页:价值定位、差异化卡片、试点案例、目标客户和咨询入口。 +- 首页:主理人身份卡、价值定位、差异化卡片、试点案例、目标客户和咨询入口。 - 服务:交付体系、协作流程、信任基础与合作边界。 - 我的:咨询记录入口、新增咨询、主理人联系和 FAQ。 - 咨询表单是内页,不再占用主 Tab;共享详情、成功页和记录页复用 Runtime 能力。 diff --git a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml index 8884d3f..a3b3277 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml +++ b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml @@ -1 +1 @@ -正在加载…{{error}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}✓ {{item.title}}{{presentation.featuresTitle}}{{presentation.featuresEnglish}}{{item.tag}}{{item.title}}{{item.description}}{{presentation.casesTitle}}{{presentation.casesSubtitle}}{{presentation.caseAction}}{{item.name}}{{item.summary}}{{presentation.audienceTitle}}{{presentation.audienceEnglish}}{{item.symbol}}{{item.title}}{{item.description}}{{presentation.ctaTitle}}{{presentation.ctaSubtitle}} +正在加载…{{error}}{{brand.founder[0] || "·"}}{{brand.founder || "待补充主理人"}}{{brand.title}}{{config.identity.experience ? " · " + config.identity.experience : ""}}{{config.identity.status}}{{item.title}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}✓ {{item.title}}{{presentation.featuresTitle}}{{presentation.featuresEnglish}}{{item.tag}}{{item.title}}{{item.description}}{{presentation.casesTitle}}{{presentation.casesSubtitle}}{{presentation.caseAction}}{{item.name}}{{item.summary}}{{presentation.audienceTitle}}{{presentation.audienceEnglish}}{{item.symbol}}{{item.title}}{{item.description}}{{presentation.ctaTitle}}{{presentation.ctaSubtitle}} diff --git a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss index d67146d..272ecbc 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss +++ b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss @@ -10,6 +10,63 @@ text { .page { padding: 40rpx; } +.founder { + display: flex; + align-items: flex-start; + gap: 24rpx; +} +.founder image, +.monogram { + width: 104rpx; + height: 104rpx; + border-radius: 24rpx; + flex-shrink: 0; + border: 1rpx solid #e4e2dd; + background: #fff; +} +.monogram { + display: flex; + align-items: center; + justify-content: center; + font-family: "Songti SC", "Noto Serif CJK SC", serif; + font-size: 48rpx; + color: #1b1c1a; +} +.founder-name { + font-size: 38rpx; + font-weight: 600; + line-height: 1.4; +} +.founder-role { + font-size: 24rpx; + color: #555953; + margin-top: 2rpx; +} +.tagrow { + display: flex; + flex-wrap: wrap; + gap: 12rpx; + margin-top: 20rpx; +} +.founder .tag { + font-size: 21rpx; + padding: 4rpx 16rpx; + border-radius: 99rpx; + border: 1rpx solid #deded5; + background: #fff; + color: #555953; + text-align: center; +} +.founder .tag-live { + border-color: #c9d8c9; + background: #f1f6f0; + color: #2f5b36; +} +.hair { + height: 1rpx; + background: #e4e2dd; + margin: 32rpx 0; +} .intro { margin-bottom: 36rpx; } diff --git a/packages/template-atelier-solopreneur/taro/index.tsx b/packages/template-atelier-solopreneur/taro/index.tsx index 0fbe34b..99b1a39 100644 --- a/packages/template-atelier-solopreneur/taro/index.tsx +++ b/packages/template-atelier-solopreneur/taro/index.tsx @@ -20,8 +20,34 @@ function InquiryAction({ workspace, label }: Props & { label: string }) { function Home({ workspace }: Props) { const p = presentation(workspace, "home"); const config = object(workspace.brand.atelier); + const identity = object(config.identity); + const founderStatus = text(identity.status); + const founderExperience = text(identity.experience); + const b = workspace.brand; return ( + + {text(b.avatarUrl) ? ( + + ) : ( + {(text(b.founder) || "·").slice(0, 1)} + )} + + {text(b.founder) || "待补充主理人"} + + {[text(b.title), founderExperience].filter(Boolean).join(" · ")} + + + {founderStatus && {founderStatus}} + {rows(identity.tags).map((item, index) => ( + + {item.title} + + ))} + + + + {p.eyebrow} {p.title} diff --git a/packages/template-atelier-solopreneur/taro/style.css b/packages/template-atelier-solopreneur/taro/style.css index 690e9f7..eb53fea 100644 --- a/packages/template-atelier-solopreneur/taro/style.css +++ b/packages/template-atelier-solopreneur/taro/style.css @@ -10,6 +10,68 @@ .atelier-page { padding: 48px 40px 72px; } +.atelier-founder { + display: flex; + align-items: flex-start; + gap: 24px; +} +.atelier-founder image { + width: 104px; + height: 104px; + border-radius: 24px; + flex-shrink: 0; + border: 1px solid #e4e2dd; + background: #fff; +} +.atelier-monogram { + width: 104px; + height: 104px; + border-radius: 24px; + border: 1px solid #e4e2dd; + background: #fff; + display: flex; + align-items: center; + justify-content: center; + font-family: "Songti SC", "Noto Serif CJK SC", serif; + font-size: 48px; + color: #1b1c1a; + flex-shrink: 0; +} +.atelier-founder-name { + font-size: 38px; + font-weight: 600; + line-height: 1.4; +} +.atelier-founder-role { + font-size: 24px; + color: #555953; + margin-top: 2px; +} +.atelier-tagrow { + display: flex; + flex-wrap: wrap; + gap: 12px; + margin-top: 20px; +} +.atelier-tag { + font-size: 21px; + padding: 4px 16px; + border-radius: 999px; + border: 1px solid #deded5; + background: #fff; + color: #555953; + line-height: 1.6; +} +.atelier-tag-live { + border-color: #c9d8c9; + background: #f1f6f0; + color: #2f5b36; +} +.atelier-hair { + height: 1px; + background: #e4e2dd; + margin: 32px 0; +} .atelier text { display: block; } diff --git a/packages/template-atelier-solopreneur/template.json b/packages/template-atelier-solopreneur/template.json index f2aed0d..347fc2c 100644 --- a/packages/template-atelier-solopreneur/template.json +++ b/packages/template-atelier-solopreneur/template.json @@ -89,6 +89,69 @@ ], "admin": { "sections": [ + { + "key": "home_identity", + "title": "首页主理人卡", + "description": "展示主理人身份、经验和当前状态;头像复用品牌头像。", + "page": "home", + "target": "brand", + "previewTargets": [ + { + "key": "atelier.home.identity", + "label": "首页主理人卡" + } + ], + "fields": [ + { + "key": "founder", + "binding": "brand.config.founder", + "label": "主理人姓名", + "input": "text", + "previewTarget": "atelier.home.identity" + }, + { + "key": "title", + "binding": "brand.config.title", + "label": "身份与专长", + "input": "text", + "previewTarget": "atelier.home.identity" + }, + { + "key": "avatarUrl", + "binding": "brand.avatarUrl", + "label": "主理人头像", + "input": "image", + "previewTarget": "atelier.home.identity" + }, + { + "key": "experience", + "binding": "brand.config.atelier.identity.experience", + "label": "经验年限", + "input": "text", + "previewTarget": "atelier.home.identity" + }, + { + "key": "status", + "binding": "brand.config.atelier.identity.status", + "label": "当前状态", + "input": "text", + "previewTarget": "atelier.home.identity" + }, + { + "key": "tags", + "binding": "brand.config.atelier.identity.tags", + "label": "身份标签", + "input": "list", + "previewTarget": "atelier.home.identity", + "itemFields": [ + { + "key": "title", + "label": "标签" + } + ] + } + ] + }, { "key": "home_intro", "title": "首页价值定位", @@ -1797,8 +1860,22 @@ "title": "设计和上线怎么配合?", "description": "需求对齐、结构梳理、视觉确认、内容配置与上线分阶段推进。微信认证与审核由平台决定,所需材料和分工提前确认。" } - ] - } + ], + "identity": { + "status": "当前可接新项目", + "experience": "10 年", + "tags": [ + { + "title": "大屏可视化" + }, + { + "title": "小程序" + } + ] + } + }, + "founder": "验收主理人", + "title": "产品设计 / 全栈开发" } } },