feat: 增加可视化模板页面编辑器
This commit is contained in:
1 parent
9d2038cc93
commit
c5af790554
24 files changed
+773
-129
No files matched your search
@@ -38,7 +38,7 @@ export function BrandPage() {
|
||||
extra={<Tag color="blue">{template.data?.name ?? "当前模板"}</Tag>}
|
||||
/>
|
||||
<Row gutter={[24, 24]} align="top">
|
||||
<Col xs={24} xl={15}>
|
||||
<Col xs={24} xl={16}>
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
@@ -146,30 +146,12 @@ export function BrandPage() {
|
||||
<PresentationEditor
|
||||
templateContent={workspace.data?.templateContent}
|
||||
config={brand.data.config}
|
||||
brand={brand.data}
|
||||
loading={workspace.isLoading}
|
||||
error={workspace.error}
|
||||
/>
|
||||
</Col>
|
||||
<Col xs={24} xl={9}>
|
||||
<Card title="公开表达预览" style={{ position: "sticky", top: 24 }}>
|
||||
<Typography.Text type="secondary">
|
||||
这些资料会用于小程序首页和联系区域
|
||||
</Typography.Text>
|
||||
<Typography.Title level={3}>{brand.data.name || "品牌名称"}</Typography.Title>
|
||||
<Typography.Title level={5}>{brand.data.tagline || "一句话定位"}</Typography.Title>
|
||||
<Typography.Paragraph>
|
||||
{brand.data.description || "品牌简介将在这里展示。"}
|
||||
</Typography.Paragraph>
|
||||
<Typography.Text strong>合作方式</Typography.Text>
|
||||
<Typography.Paragraph type="secondary">
|
||||
{brand.data.deliveryNote || "补充你的响应时间和合作预期。"}
|
||||
</Typography.Paragraph>
|
||||
<Space wrap>
|
||||
{brand.data.contactPhone && <Tag>电话:{brand.data.contactPhone}</Tag>}
|
||||
{brand.data.contactWechat && <Tag>微信:{brand.data.contactWechat}</Tag>}
|
||||
{brand.data.hours && <Tag>时间:{brand.data.hours}</Tag>}
|
||||
</Space>
|
||||
</Card>
|
||||
<Col xs={24} xl={8}>
|
||||
{template.data && (
|
||||
<Card title="模板说明" style={{ marginTop: 24 }}>
|
||||
<Typography.Paragraph>{template.data.description}</Typography.Paragraph>
|
||||
|
||||
Reference in new issue
Block a user