refactor: 收敛工坊模板页面职责与视觉
This commit is contained in:
1 parent
f12003004b
commit
cfd42e17f8
15 files changed
+64
-190
No files matched your search
@@ -14,7 +14,7 @@
|
||||
{
|
||||
"packageKey": "atelier-solopreneur",
|
||||
"packageName": "@personal-brand/template-atelier-solopreneur",
|
||||
"version": "1.0.0"
|
||||
"version": "1.1.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、我的。
|
||||
- 首页(含主理人身份卡)、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。
|
||||
- 暖白与森林绿视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。
|
||||
- 浅灰与深蓝视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。主理人身份卡只在首页维护,咨询记录入口只在“我的”页维护。
|
||||
- 包内示例显式导入,不新增全局 seed、不更改已有品牌与两套模板包。
|
||||
- 当前视觉模板决定示例来源;已有配置和启用表单保留;案例封面来自包内资源。
|
||||
- 咨询表单 chips 为共享 Inquiry 的可选样式,不改默认模板行为;校验失败保留输入,不伪造成功。
|
||||
|
||||
@@ -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";
|
||||
@@ -40,7 +40,7 @@ export const visualTemplates: Record<VisualTemplateKey, VisualTemplateDefinition
|
||||
},
|
||||
"atelier-solopreneur": {
|
||||
key: "atelier-solopreneur",
|
||||
version: "1.0.0",
|
||||
version: "1.1.0",
|
||||
name: "独立工坊 · 品牌小程序",
|
||||
description: "展示品牌小程序服务、试点案例与合作流程,承接需求咨询。",
|
||||
supportedIndustryTemplates: ["personal"],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 独立工坊 · 品牌小程序
|
||||
|
||||
`atelier-solopreneur@1.0.0` 是用于宣传个人品牌小程序构建服务的独立模板,适配 `personal` 行业。视觉参考为用户提供的 Stitch 首页、服务、咨询和意向单设计;保留暖白、森林绿、编辑式排版。
|
||||
`atelier-solopreneur@1.1.0` 是用于宣传个人品牌小程序构建服务的独立模板,适配 `personal` 行业。视觉参考为用户提供的 Stitch 首页、服务、咨询和意向单设计;采用浅灰底、深蓝主色和编辑式排版。
|
||||
|
||||
## 内容与使用
|
||||
|
||||
@@ -14,9 +14,9 @@ pnpm --filter @personal-brand/api exec node --env-file=.env scripts/create-ateli
|
||||
|
||||
脚本可重复执行,不覆盖已有品牌,不导入样例或发布。刷新后台,在顶部品牌列表选择「独立工坊 · 品牌小程序」,再在「配置与发布」中显式导入示例内容。
|
||||
|
||||
- 首页:主理人身份卡、价值定位、差异化卡片、试点案例、目标客户和咨询入口。
|
||||
- 首页:主理人身份卡、价值定位、差异化卡片、试点案例、目标客户和咨询入口;所有“沟通”类 CTA 进入咨询内页。
|
||||
- 服务:交付体系、协作流程、信任基础与合作边界。
|
||||
- 我的:咨询记录入口、新增咨询、主理人联系和 FAQ。
|
||||
- 我的:咨询记录入口、新增咨询、微信直聊和 FAQ;不再重复主理人介绍卡。
|
||||
- 咨询表单是内页,不再占用主 Tab;共享详情、成功页和记录页复用 Runtime 能力。
|
||||
|
||||
在品牌配置中选择本模板,再从后台显式导入示例。`template.json.sampleContent.personal` 是唯一示例来源,不需要改 Prisma seed。导入不会覆盖已有配置和启用表单。信任内容需确认并发布,品牌基本资料与联系方式需填写真实信息。
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"tabBar": {
|
||||
"color": "#686763",
|
||||
"selectedColor": "#183329",
|
||||
"backgroundColor": "#fbf9f5",
|
||||
"selectedColor": "#1f3a5f",
|
||||
"backgroundColor": "#f6f6f4",
|
||||
"borderStyle": "white"
|
||||
},
|
||||
"window": {
|
||||
"navigationBarBackgroundColor": "#fbf9f5"
|
||||
"navigationBarBackgroundColor": "#f6f6f4"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="card"><view class="identity"><image wx:if="{{brand.avatarUrl}}" src="{{brand.avatarUrl}}" mode="aspectFill"/><view><text class="card-title">{{brand.founder}}</text><text class="caption">{{brand.title}}</text></view></view><text class="body">{{brand.description}}</text><button bindtap="inquiry">{{presentation.inquiryAction}} · {{presentation.timeHint}}</button><view class="wechat"><text class="caption">{{presentation.wechatLabel}}</text><text>{{brand.contactWechat || presentation.contactHint}}</text><button disabled="{{!brand.contactWechat}}" bindtap="copy">{{presentation.copyAction}}</button></view><text class="caption">{{presentation.promise}}</text><button bindtap="records">{{presentation.recordsAction}}</button></view><view class="intro"><text class="title">{{presentation.faqTitle}}</text><text class="body">{{presentation.faqSubtitle}}</text></view><view wx:for="{{config.faqs}}" wx:key="index" class="card"><view bindtap="toggle" data-index="{{index}}"><text class="card-title">{{index+1}} · {{item.title}} {{opened===index ? "−" : "+"}}</text></view><text wx:if="{{opened===index}}" class="body">{{item.description}}</text></view><view class="footer"><text>{{presentation.footerQuote}}</text><text class="caption">{{presentation.footerNote}}</text></view></block></view>
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="card"><button bindtap="inquiry">{{presentation.inquiryAction}} · {{presentation.timeHint}}</button><view class="wechat"><text class="caption">{{presentation.wechatLabel}}</text><text>{{brand.contactWechat || presentation.contactHint}}</text><button disabled="{{!brand.contactWechat}}" bindtap="copy">{{presentation.copyAction}}</button></view><text class="caption">{{presentation.promise}}</text><button bindtap="records">{{presentation.recordsAction}}</button></view><view class="intro"><text class="title">{{presentation.faqTitle}}</text><text class="body">{{presentation.faqSubtitle}}</text></view><view wx:for="{{config.faqs}}" wx:key="index" class="card"><view bindtap="toggle" data-index="{{index}}"><text class="card-title">{{index+1}} · {{item.title}} {{opened===index ? "−" : "+"}}</text></view><text wx:if="{{opened===index}}" class="body">{{item.description}}</text></view><view class="footer"><text>{{presentation.footerQuote}}</text><text class="caption">{{presentation.footerNote}}</text></view></block></view>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="founder"><image wx:if="{{brand.avatarUrl}}" src="{{brand.avatarUrl}}" mode="aspectFill"/><view wx:else class="monogram">{{brand.founder[0] || "·"}}</view><view><text class="founder-name">{{brand.founder || "待补充主理人"}}</text><text class="founder-role">{{brand.title}}{{config.identity.experience ? " · " + config.identity.experience : ""}}</text><view class="tagrow"><text wx:if="{{config.identity.status}}" class="tag tag-live">{{config.identity.status}}</text><text wx:for="{{config.identity.tags}}" wx:key="index" class="tag">{{item.title}}</text></view></view></view><view class="hair"/><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="actions"><button bindtap="inquiry">{{presentation.primaryAction}}</button><button bindtap="services">{{presentation.secondaryAction}}</button></view><view class="badges"><text wx:for="{{config.badges}}" wx:key="index">✓ {{item.title}}</text></view><view class="heading"><text>{{presentation.featuresTitle}}</text><text>{{presentation.featuresEnglish}}</text></view><view wx:for="{{config.features}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><view>{{presentation.casesTitle}}<text class="caption">{{presentation.casesSubtitle}}</text></view><text>{{presentation.caseAction}}</text></view><view class="cases"><view wx:for="{{offerings}}" wx:key="id" class="case" bindtap="detail" data-id="{{item.id}}"><image wx:if="{{item.coverUrl}}" src="{{item.coverUrl}}" mode="aspectFill"/><text class="card-title">{{item.name}}</text><text class="caption">{{item.summary}}</text></view></view><view class="heading"><text>{{presentation.audienceTitle}}</text><text>{{presentation.audienceEnglish}}</text></view><view class="audiences"><view wx:for="{{config.audiences}}" wx:key="index" class="card"><text>{{item.symbol}}</text><text>{{item.title}}</text><text class="caption">{{item.description}}</text></view></view><view class="cta"><text class="card-title">{{presentation.ctaTitle}}</text><text class="body">{{presentation.ctaSubtitle}}</text><button bindtap="contact">{{presentation.ctaAction}}</button></view></block></view>
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="founder"><image wx:if="{{brand.avatarUrl}}" src="{{brand.avatarUrl}}" mode="aspectFill"/><view wx:else class="monogram">{{brand.founder[0] || "·"}}</view><view><text class="founder-name">{{brand.founder || "待补充主理人"}}</text><text class="founder-role">{{brand.title}}{{config.identity.experience ? " · " + config.identity.experience : ""}}</text><view class="tagrow"><text wx:if="{{config.identity.status}}" class="tag tag-live">{{config.identity.status}}</text><text wx:for="{{config.identity.tags}}" wx:key="index" class="tag">{{item.title}}</text></view></view></view><view class="hair"/><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="actions"><button bindtap="inquiry">{{presentation.primaryAction}}</button><button bindtap="services">{{presentation.secondaryAction}}</button></view><view class="badges"><text wx:for="{{config.badges}}" wx:key="index">✓ {{item.title}}</text></view><view class="heading"><text>{{presentation.featuresTitle}}</text><text>{{presentation.featuresEnglish}}</text></view><view wx:for="{{config.features}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><view>{{presentation.casesTitle}}<text class="caption">{{presentation.casesSubtitle}}</text></view><text>{{presentation.caseAction}}</text></view><view class="cases"><view wx:for="{{offerings}}" wx:key="id" class="case" bindtap="detail" data-id="{{item.id}}"><image wx:if="{{item.coverUrl}}" src="{{item.coverUrl}}" mode="aspectFill"/><text class="card-title">{{item.name}}</text><text class="caption">{{item.summary}}</text></view></view><view class="heading"><text>{{presentation.audienceTitle}}</text><text>{{presentation.audienceEnglish}}</text></view><view class="audiences"><view wx:for="{{config.audiences}}" wx:key="index" class="card"><text>{{item.symbol}}</text><text>{{item.title}}</text><text class="caption">{{item.description}}</text></view></view><view class="cta"><text class="card-title">{{presentation.ctaTitle}}</text><text class="body">{{presentation.ctaSubtitle}}</text><button bindtap="inquiry">{{presentation.ctaAction}}</button></view></block></view>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="heading"><text>{{presentation.deliverablesTitle}}</text><text>{{presentation.deliverablesEnglish}}</text></view><view wx:for="{{config.deliverables}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><text>{{presentation.processTitle}}</text><text>{{presentation.processEnglish}}</text></view><view wx:for="{{config.process}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><text>{{presentation.proofTitle}}</text><text>{{presentation.proofEnglish}}</text></view><view wx:for="{{config.proofs}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view wx:for="{{trustItems}}" wx:key="id" class="card"><text class="card-title">{{item.title}}</text><text class="caption">{{item.summary}}</text><text class="body">{{item.content}}</text></view><view class="cta"><text class="card-title">{{presentation.ctaTitle}}</text><text class="body">{{presentation.ctaSubtitle}}</text><button bindtap="contact">{{presentation.ctaAction}}</button></view></block></view>
|
||||
<view class="page"><view wx:if="{{loading}}">正在加载…</view><view wx:elif="{{error}}">{{error}}<button bindtap="reload">重试</button></view><block wx:else><view class="intro"><text class="eyebrow">{{presentation.eyebrow}}</text><text class="title">{{presentation.title}}</text><text class="body">{{presentation.subtitle}}</text></view><view class="heading"><text>{{presentation.deliverablesTitle}}</text><text>{{presentation.deliverablesEnglish}}</text></view><view wx:for="{{config.deliverables}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><text>{{presentation.processTitle}}</text><text>{{presentation.processEnglish}}</text></view><view wx:for="{{config.process}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view class="heading"><text>{{presentation.proofTitle}}</text><text>{{presentation.proofEnglish}}</text></view><view wx:for="{{config.proofs}}" wx:key="index" class="card"><text class="tag">{{item.tag}}</text><text class="card-title">{{index+1}} · {{item.title}}</text><text class="body">{{item.description}}</text></view><view wx:for="{{trustItems}}" wx:key="id" class="card"><text class="card-title">{{item.title}}</text><text class="caption">{{item.summary}}</text><text class="body">{{item.content}}</text></view><view class="cta"><text class="card-title">{{presentation.ctaTitle}}</text><text class="body">{{presentation.ctaSubtitle}}</text><button bindtap="inquiry">{{presentation.ctaAction}}</button></view></block></view>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ function Home({ workspace }: Props) {
|
||||
<Text className="atelier-card-title">{p.ctaTitle}</Text>
|
||||
<Text className="atelier-caption">{p.ctaSubtitle}</Text>
|
||||
</View>
|
||||
<Button onClick={() => navigate("profile")}>{p.ctaAction}</Button>
|
||||
<InquiryAction workspace={workspace} label={p.ctaAction} />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
@@ -238,34 +238,22 @@ function Profile({ workspace }: Props) {
|
||||
{p.recordsAction}
|
||||
</Button>
|
||||
</View>
|
||||
<View className="atelier-card">
|
||||
<View data-editor-target="atelier.profile.identity">
|
||||
<View className="atelier-identity">
|
||||
{text(b.avatarUrl) && <Image src={text(b.avatarUrl)} mode="aspectFill" />}
|
||||
<View>
|
||||
<Text className="atelier-card-title">{text(b.founder)}</Text>
|
||||
<Text className="atelier-caption">{text(b.title)}</Text>
|
||||
</View>
|
||||
<View className="atelier-card" data-editor-target="atelier.profile.contact">
|
||||
<InquiryAction workspace={workspace} label={`${p.inquiryAction} ${p.timeHint}`} />
|
||||
<View className="atelier-wechat">
|
||||
<View>
|
||||
<Text className="atelier-caption">{p.wechatLabel}</Text>
|
||||
<Text>{text(b.contactWechat) || p.contactHint}</Text>
|
||||
</View>
|
||||
<Text className="atelier-body atelier-bio">{text(b.description)}</Text>
|
||||
</View>
|
||||
<View data-editor-target="atelier.profile.contact">
|
||||
<InquiryAction workspace={workspace} label={`${p.inquiryAction} ${p.timeHint}`} />
|
||||
<View className="atelier-wechat">
|
||||
<View>
|
||||
<Text className="atelier-caption">{p.wechatLabel}</Text>
|
||||
<Text>{text(b.contactWechat) || p.contactHint}</Text>
|
||||
</View>
|
||||
<Button
|
||||
className="atelier-copy"
|
||||
disabled={!text(b.contactWechat)}
|
||||
onClick={() => void copyWechat()}
|
||||
>
|
||||
{p.copyAction}
|
||||
</Button>
|
||||
</View>
|
||||
<Text className="atelier-contact-note">✓ {p.promise}</Text>
|
||||
<Button
|
||||
className="atelier-copy"
|
||||
disabled={!text(b.contactWechat)}
|
||||
onClick={() => void copyWechat()}
|
||||
>
|
||||
{p.copyAction}
|
||||
</Button>
|
||||
</View>
|
||||
<Text className="atelier-contact-note">✓ {p.promise}</Text>
|
||||
</View>
|
||||
<View className="atelier-faq-heading" data-editor-target="atelier.profile.faqHeading">
|
||||
<Text className="atelier-title">{p.faqTitle}</Text>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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": "意向单说明",
|
||||
|
||||
Reference in new issue
Block a user