From cfd42e17f8880fc3aa7f88eb1345228ffb3082d7 Mon Sep 17 00:00:00 2001 From: que01 Date: Fri, 16 Oct 2026 11:40:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=94=B6=E6=95=9B=E5=B7=A5?= =?UTF-8?q?=E5=9D=8A=E6=A8=A1=E6=9D=BF=E9=A1=B5=E9=9D=A2=E8=81=8C=E8=B4=A3?= =?UTF-8?q?=E4=B8=8E=E8=A7=86=E8=A7=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/template-build.json | 2 +- docs/atelier-template-acceptance.md | 2 +- .../config/src/generated-template-packages.ts | 61 +------------------ packages/config/src/visual-templates.ts | 2 +- .../template-atelier-solopreneur/README.md | 6 +- .../miniapp/app.json | 6 +- .../miniapp/pages/bookings/index.wxml | 2 +- .../miniapp/pages/bookings/index.wxss | 12 ++-- .../miniapp/pages/index/index.wxml | 2 +- .../miniapp/pages/index/index.wxss | 12 ++-- .../miniapp/pages/services/index.wxml | 2 +- .../miniapp/pages/services/index.wxss | 12 ++-- .../taro/index.tsx | 42 +++++-------- .../taro/style.css | 32 +++++----- .../template.json | 59 +----------------- 15 files changed, 64 insertions(+), 190 deletions(-) diff --git a/config/template-build.json b/config/template-build.json index db9e09d..e6cd850 100644 --- a/config/template-build.json +++ b/config/template-build.json @@ -14,7 +14,7 @@ { "packageKey": "atelier-solopreneur", "packageName": "@personal-brand/template-atelier-solopreneur", - "version": "1.0.0" + "version": "1.1.0" } ] } diff --git a/docs/atelier-template-acceptance.md b/docs/atelier-template-acceptance.md index cee4306..524e613 100644 --- a/docs/atelier-template-acceptance.md +++ b/docs/atelier-template-acceptance.md @@ -6,7 +6,7 @@ - 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、我的。 - 首页(含主理人身份卡)、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。 -- 暖白与森林绿视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。 +- 浅灰与深蓝视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。主理人身份卡只在首页维护,咨询记录入口只在“我的”页维护。 - 包内示例显式导入,不新增全局 seed、不更改已有品牌与两套模板包。 - 当前视觉模板决定示例来源;已有配置和启用表单保留;案例封面来自包内资源。 - 咨询表单 chips 为共享 Inquiry 的可选样式,不改默认模板行为;校验失败保留输入,不伪造成功。 diff --git a/packages/config/src/generated-template-packages.ts b/packages/config/src/generated-template-packages.ts index d8d3a69..0635867 100644 --- a/packages/config/src/generated-template-packages.ts +++ b/packages/config/src/generated-template-packages.ts @@ -1516,7 +1516,7 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ }, { packageKey: "atelier-solopreneur", - version: "1.0.0", + version: "1.1.0", displayName: "独立工坊 · 品牌小程序", defaultBrandSlug: "atelier-studio", runtimeContract: "1.0", @@ -2098,13 +2098,6 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ input: "text", previewTarget: "atelier.profile.contact", }, - { - key: "recordsAction", - binding: "brand.config.visualPresentation.profile.recordsAction", - label: "记录入口", - input: "text", - previewTarget: "atelier.profile.contact", - }, { key: "contactWechat", binding: "brand.contactWechat", @@ -2208,56 +2201,6 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ }, ], }, - { - key: "profile_identity", - title: "主理人介绍", - description: "修改后保存为草稿,发布后对访客生效。", - page: "profile", - target: "brand", - previewTargets: [ - { - key: "atelier.profile.identity", - label: "主理人介绍", - }, - ], - fields: [ - { - key: "founder", - binding: "brand.config.founder", - label: "主理人姓名", - input: "text", - previewTarget: "atelier.profile.identity", - }, - { - key: "title", - binding: "brand.config.title", - label: "身份与专长", - input: "text", - previewTarget: "atelier.profile.identity", - }, - { - key: "avatarUrl", - binding: "brand.avatarUrl", - label: "主理人头像", - input: "image", - previewTarget: "atelier.profile.identity", - }, - { - key: "description", - binding: "brand.description", - label: "主理人介绍", - input: "textarea", - previewTarget: "atelier.profile.identity", - }, - { - key: "contactWechat", - binding: "brand.contactWechat", - label: "微信号", - input: "text", - previewTarget: "atelier.profile.identity", - }, - ], - }, { key: "inquiry_intro", title: "意向单说明", @@ -4961,4 +4904,4 @@ export const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[ }, ]; export const generatedTemplatePackageRegistryHash = - "36c0f988f11fa4d1b106520d517428f502568490d32db935730fbff2a01dee37"; + "6a2736b95fc446c4a9c8a106d8d4726f393992fefcfe9a8a27e8509fdca8c5a9"; diff --git a/packages/config/src/visual-templates.ts b/packages/config/src/visual-templates.ts index 98139f9..85072f8 100644 --- a/packages/config/src/visual-templates.ts +++ b/packages/config/src/visual-templates.ts @@ -40,7 +40,7 @@ export const visualTemplates: Record正在加载…{{error}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}{{brand.founder}}{{brand.title}}{{brand.description}}{{presentation.wechatLabel}}{{brand.contactWechat || presentation.contactHint}}{{presentation.promise}}{{presentation.faqTitle}}{{presentation.faqSubtitle}}{{index+1}} · {{item.title}} {{opened===index ? "−" : "+"}}{{item.description}}{{presentation.footerQuote}}{{presentation.footerNote}} +正在加载…{{error}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}{{presentation.wechatLabel}}{{brand.contactWechat || presentation.contactHint}}{{presentation.promise}}{{presentation.faqTitle}}{{presentation.faqSubtitle}}{{index+1}} · {{item.title}} {{opened===index ? "−" : "+"}}{{item.description}}{{presentation.footerQuote}}{{presentation.footerNote}} diff --git a/packages/template-atelier-solopreneur/miniapp/pages/bookings/index.wxss b/packages/template-atelier-solopreneur/miniapp/pages/bookings/index.wxss index d67146d..3e009e8 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/bookings/index.wxss +++ b/packages/template-atelier-solopreneur/miniapp/pages/bookings/index.wxss @@ -1,5 +1,5 @@ page { - background: #fbf9f5; + background: #f6f6f4; color: #1b1c1a; font-size: 28rpx; line-height: 1.7; @@ -15,8 +15,8 @@ text { } .eyebrow { display: inline-block; - background: #eaf0e9; - color: #183329; + background: #e8edf5; + color: #1f3a5f; border-radius: 99rpx; padding: 4rpx 16rpx; font-size: 21rpx; @@ -97,7 +97,7 @@ text { border-radius: 16rpx; } .cta { - background: #183329; + background: #1f3a5f; color: white; padding: 30rpx; border-radius: 28rpx; @@ -132,7 +132,7 @@ button { align-items: center; justify-content: center; min-height: 88rpx; - background: #183329; + background: #1f3a5f; color: white; border: 0; border-radius: 24rpx; @@ -145,5 +145,5 @@ button::after { } .cta button { background: white; - color: #183329; + color: #1f3a5f; } diff --git a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml index a3b3277..4ca57e9 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml +++ b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxml @@ -1 +1 @@ -正在加载…{{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}} +正在加载…{{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 272ecbc..e3f5f55 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss +++ b/packages/template-atelier-solopreneur/miniapp/pages/index/index.wxss @@ -1,5 +1,5 @@ page { - background: #fbf9f5; + background: #f6f6f4; color: #1b1c1a; font-size: 28rpx; line-height: 1.7; @@ -72,8 +72,8 @@ text { } .eyebrow { display: inline-block; - background: #eaf0e9; - color: #183329; + background: #e8edf5; + color: #1f3a5f; border-radius: 99rpx; padding: 4rpx 16rpx; font-size: 21rpx; @@ -154,7 +154,7 @@ text { border-radius: 16rpx; } .cta { - background: #183329; + background: #1f3a5f; color: white; padding: 30rpx; border-radius: 28rpx; @@ -189,7 +189,7 @@ button { align-items: center; justify-content: center; min-height: 88rpx; - background: #183329; + background: #1f3a5f; color: white; border: 0; border-radius: 24rpx; @@ -202,5 +202,5 @@ button::after { } .cta button { background: white; - color: #183329; + color: #1f3a5f; } diff --git a/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxml b/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxml index 98e0d25..d5b48da 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxml +++ b/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxml @@ -1 +1 @@ -正在加载…{{error}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}{{presentation.deliverablesTitle}}{{presentation.deliverablesEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{presentation.processTitle}}{{presentation.processEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{presentation.proofTitle}}{{presentation.proofEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{item.title}}{{item.summary}}{{item.content}}{{presentation.ctaTitle}}{{presentation.ctaSubtitle}} +正在加载…{{error}}{{presentation.eyebrow}}{{presentation.title}}{{presentation.subtitle}}{{presentation.deliverablesTitle}}{{presentation.deliverablesEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{presentation.processTitle}}{{presentation.processEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{presentation.proofTitle}}{{presentation.proofEnglish}}{{item.tag}}{{index+1}} · {{item.title}}{{item.description}}{{item.title}}{{item.summary}}{{item.content}}{{presentation.ctaTitle}}{{presentation.ctaSubtitle}} diff --git a/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxss b/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxss index d67146d..3e009e8 100644 --- a/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxss +++ b/packages/template-atelier-solopreneur/miniapp/pages/services/index.wxss @@ -1,5 +1,5 @@ page { - background: #fbf9f5; + background: #f6f6f4; color: #1b1c1a; font-size: 28rpx; line-height: 1.7; @@ -15,8 +15,8 @@ text { } .eyebrow { display: inline-block; - background: #eaf0e9; - color: #183329; + background: #e8edf5; + color: #1f3a5f; border-radius: 99rpx; padding: 4rpx 16rpx; font-size: 21rpx; @@ -97,7 +97,7 @@ text { border-radius: 16rpx; } .cta { - background: #183329; + background: #1f3a5f; color: white; padding: 30rpx; border-radius: 28rpx; @@ -132,7 +132,7 @@ button { align-items: center; justify-content: center; min-height: 88rpx; - background: #183329; + background: #1f3a5f; color: white; border: 0; border-radius: 24rpx; @@ -145,5 +145,5 @@ button::after { } .cta button { background: white; - color: #183329; + color: #1f3a5f; } diff --git a/packages/template-atelier-solopreneur/taro/index.tsx b/packages/template-atelier-solopreneur/taro/index.tsx index 99b1a39..ac3c202 100644 --- a/packages/template-atelier-solopreneur/taro/index.tsx +++ b/packages/template-atelier-solopreneur/taro/index.tsx @@ -129,7 +129,7 @@ function Home({ workspace }: Props) { {p.ctaTitle} {p.ctaSubtitle} - + ); @@ -238,34 +238,22 @@ function Profile({ workspace }: Props) { {p.recordsAction} - - - - {text(b.avatarUrl) && } - - {text(b.founder)} - {text(b.title)} - + + + + + {p.wechatLabel} + {text(b.contactWechat) || p.contactHint} - {text(b.description)} - - - - - - {p.wechatLabel} - {text(b.contactWechat) || p.contactHint} - - - - ✓ {p.promise} + + ✓ {p.promise} {p.faqTitle} diff --git a/packages/template-atelier-solopreneur/taro/style.css b/packages/template-atelier-solopreneur/taro/style.css index 582572a..15d725b 100644 --- a/packages/template-atelier-solopreneur/taro/style.css +++ b/packages/template-atelier-solopreneur/taro/style.css @@ -216,7 +216,7 @@ font: 72px Georgia, serif; - color: #183329; + color: #1f3a5f; } .atelier-case-copy { padding: 20px; @@ -244,14 +244,14 @@ } .atelier-symbol { font-size: 36px; - color: #183329; + color: #1f3a5f; } .atelier-cta { display: flex; align-items: center; gap: 20px; justify-content: space-between; - background: #183329; + background: #1f3a5f; color: #fff; border-radius: 28px; padding: 30px; @@ -262,13 +262,13 @@ } .atelier-cta .atelier-caption, .atelier-cta .atelier-body { - color: #c5d1c6; + color: #c8d3e4; } .atelier-cta button { --brand-button-height: 72px; width: auto; background: #fff; - color: #183329; + color: #1f3a5f; flex-shrink: 0; font-size: 23px; } @@ -278,7 +278,7 @@ .atelier-cta-large button { margin-top: 24px; width: 100%; - background: #fcdfb1; + background: #fff; } .atelier-deliverable { display: grid; @@ -312,7 +312,7 @@ border-left: 1px solid #deded5; } .atelier-step-dot { - background: #183329; + background: #1f3a5f; color: #fff; width: 34px; height: 34px; @@ -373,7 +373,7 @@ width: auto; padding: 6px 14px; font-size: 20px; - color: #183329; + color: #1f3a5f; background: #e8eae3; flex-shrink: 0; } @@ -386,7 +386,7 @@ .atelier .atelier-records { --brand-button-height: 60px; background: transparent; - color: #183329; + color: #1f3a5f; font-size: 22px; margin-top: 12px; } @@ -402,7 +402,7 @@ grid-template-columns: 36px 1fr 22px; gap: 16px; background: transparent; - color: #183329; + color: #1f3a5f; text-align: left; padding: 4px; } @@ -469,7 +469,7 @@ .atelier-forms .inquiry-page, .atelier-forms .success-page, .atelier-forms .records-page { - background: #fbf9f5; + background: #f6f6f4; padding: 40px; } .atelier-forms .form-intro { @@ -489,11 +489,11 @@ border-radius: 18px; } .atelier-forms .form-title { - color: #183329; + color: #1f3a5f; font-family: "Songti SC", serif; } .atelier-forms .submit-button { - background: #183329; + background: #1f3a5f; } .atelier-privacy { padding: 0 40px 60px; @@ -515,9 +515,9 @@ padding: 14px 10px; } .atelier-forms .choice.selected { - color: #183329; - background: #eaf0e9; - border-color: #183329; + color: #1f3a5f; + background: #e8edf5; + border-color: #1f3a5f; } .atelier-forms .atelier-privacy { padding: 28px; diff --git a/packages/template-atelier-solopreneur/template.json b/packages/template-atelier-solopreneur/template.json index 347fc2c..c1a20ea 100644 --- a/packages/template-atelier-solopreneur/template.json +++ b/packages/template-atelier-solopreneur/template.json @@ -1,6 +1,6 @@ { "packageKey": "atelier-solopreneur", - "version": "1.0.0", + "version": "1.1.0", "displayName": "独立工坊 · 品牌小程序", "defaultBrandSlug": "atelier-studio", "runtimeContract": "1.0", @@ -582,13 +582,6 @@ "input": "text", "previewTarget": "atelier.profile.contact" }, - { - "key": "recordsAction", - "binding": "brand.config.visualPresentation.profile.recordsAction", - "label": "记录入口", - "input": "text", - "previewTarget": "atelier.profile.contact" - }, { "key": "contactWechat", "binding": "brand.contactWechat", @@ -692,56 +685,6 @@ } ] }, - { - "key": "profile_identity", - "title": "主理人介绍", - "description": "修改后保存为草稿,发布后对访客生效。", - "page": "profile", - "target": "brand", - "previewTargets": [ - { - "key": "atelier.profile.identity", - "label": "主理人介绍" - } - ], - "fields": [ - { - "key": "founder", - "binding": "brand.config.founder", - "label": "主理人姓名", - "input": "text", - "previewTarget": "atelier.profile.identity" - }, - { - "key": "title", - "binding": "brand.config.title", - "label": "身份与专长", - "input": "text", - "previewTarget": "atelier.profile.identity" - }, - { - "key": "avatarUrl", - "binding": "brand.avatarUrl", - "label": "主理人头像", - "input": "image", - "previewTarget": "atelier.profile.identity" - }, - { - "key": "description", - "binding": "brand.description", - "label": "主理人介绍", - "input": "textarea", - "previewTarget": "atelier.profile.identity" - }, - { - "key": "contactWechat", - "binding": "brand.contactWechat", - "label": "微信号", - "input": "text", - "previewTarget": "atelier.profile.identity" - } - ] - }, { "key": "inquiry_intro", "title": "意向单说明",