fix: 恢复工坊首页主理人身份卡
This commit is contained in:
1 parent
0862a4c01d
commit
6de7dd8d9e
8 files changed
+305
-6
No files matched your search
@@ -5,7 +5,7 @@
|
||||
## 已实现
|
||||
|
||||
- 独立模板包、真实 manifest、Taro 页面与原生模板入口,三项导航:首页、服务、我的。
|
||||
- 首页、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。
|
||||
- 首页(含主理人身份卡)、服务、我的、案例详情、意向表单、成功页、咨询记录;咨询表单为内页。
|
||||
- 暖白与森林绿视觉;文案、列表子字段、主理人、联系方式、案例和信任内容均有后台配置入口。
|
||||
- 包内示例显式导入,不新增全局 seed、不更改已有品牌与两套模板包。
|
||||
- 当前视觉模板决定示例来源;已有配置和启用表单保留;案例封面来自包内资源。
|
||||
|
||||
@@ -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";
|
||||
@@ -14,7 +14,7 @@ pnpm --filter @personal-brand/api exec node --env-file=.env scripts/create-ateli
|
||||
|
||||
脚本可重复执行,不覆盖已有品牌,不导入样例或发布。刷新后台,在顶部品牌列表选择「独立工坊 · 品牌小程序」,再在「配置与发布」中显式导入示例内容。
|
||||
|
||||
- 首页:价值定位、差异化卡片、试点案例、目标客户和咨询入口。
|
||||
- 首页:主理人身份卡、价值定位、差异化卡片、试点案例、目标客户和咨询入口。
|
||||
- 服务:交付体系、协作流程、信任基础与合作边界。
|
||||
- 我的:咨询记录入口、新增咨询、主理人联系和 FAQ。
|
||||
- 咨询表单是内页,不再占用主 Tab;共享详情、成功页和记录页复用 Runtime 能力。
|
||||
|
||||
@@ -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="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="contact">{{presentation.ctaAction}}</button></view></block></view>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
<View className="atelier-page">
|
||||
<View className="atelier-founder" data-editor-target="atelier.home.identity">
|
||||
{text(b.avatarUrl) ? (
|
||||
<Image src={text(b.avatarUrl)} mode="aspectFill" />
|
||||
) : (
|
||||
<View className="atelier-monogram">{(text(b.founder) || "·").slice(0, 1)}</View>
|
||||
)}
|
||||
<View>
|
||||
<Text className="atelier-founder-name">{text(b.founder) || "待补充主理人"}</Text>
|
||||
<Text className="atelier-founder-role">
|
||||
{[text(b.title), founderExperience].filter(Boolean).join(" · ")}
|
||||
</Text>
|
||||
<View className="atelier-tagrow">
|
||||
{founderStatus && <Text className="atelier-tag atelier-tag-live">{founderStatus}</Text>}
|
||||
{rows(identity.tags).map((item, index) => (
|
||||
<Text className="atelier-tag" key={index}>
|
||||
{item.title}
|
||||
</Text>
|
||||
))}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
<View className="atelier-hair" />
|
||||
<View className="atelier-intro" data-editor-target="atelier.home.intro">
|
||||
<Text className="atelier-eyebrow">{p.eyebrow}</Text>
|
||||
<Text className="atelier-title">{p.title}</Text>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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": "产品设计 / 全栈开发"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user