fix: 让信任内容管理保持行业无关

This commit is contained in:
que01 committed 2026-09-27 12:34:34 +08:00
1 parent 774ae2c8e3
commit 6d7fae95b3
7 files changed
+66 -26

No files matched your search

@@ -20,12 +20,36 @@ import { ImageUrlField } from "../../components/ImageUrlField.js";
import { MutationError, QueryState } from "../../components/QueryState.js";
const types = [
{ value: "profile", label: "个人经历" },
{ value: "experience", label: "工作经验" },
{ value: "credential", label: "资历与证明" },
{ value: "portfolio", label: "案例与作品" },
{ value: "process", label: "合作流程" },
{ value: "testimonial", label: "客户反馈" },
{
value: "schedule",
label: "时间与服务安排",
help: "说明你通常什么时候提供服务、接受预约或处理订单。多项内容可以分行填写。",
},
{
value: "coverage",
label: "服务范围与方式",
help: "说明服务地点、覆盖范围、适用对象或承接边界。多项内容可以分行填写。",
},
{
value: "process",
label: "合作流程",
help: "说明客户从提出需求到完成合作会经历哪些步骤,每行写一步。",
},
{
value: "credential",
label: "资质与专业证明",
help: "说明资质、经验、制作标准或让客户放心的专业依据。",
},
{
value: "case",
label: "案例与客户反馈",
help: "写代表性案例、服务结果或客户评价,多条内容可以分行填写。",
},
{
value: "promise",
label: "服务承诺与响应说明",
help: "说明回复时间、交付承诺、售后方式或合作预期。",
},
];
export function TrustContentPage() {
@@ -71,7 +95,7 @@ export function TrustContentPage() {
...(item.coverUrl ? { coverUrl: item.coverUrl } : {}),
isPublished: item.isPublished,
}
: { type: "profile", isPublished: false },
: { type: "credential", isPublished: false },
);
};
return (
@@ -146,7 +170,7 @@ export function TrustContentPage() {
destroyOnClose
>
<Form form={form} layout="vertical" onFinish={(values) => save.mutate(values)}>
<Form.Item name="type" label="证据类型" rules={[{ required: true }]}>
<Form.Item name="type" label="内容用途" rules={[{ required: true }]}>
<Select options={types} />
</Form.Item>
<Form.Item name="title" label="标题" rules={[{ required: true }]}>
@@ -155,8 +179,18 @@ export function TrustContentPage() {
<Form.Item name="summary" label="摘要">
<Input />
</Form.Item>
<Form.Item name="content" label="详细内容" rules={[{ required: true }]}>
<Input.TextArea rows={8} showCount maxLength={2000} />
<Form.Item
name="content"
label="详细内容"
help="每行写一项,页面会按模板样式展示。不要填写 HTML 或代码。"
rules={[{ required: true }]}
>
<Input.TextArea
rows={8}
showCount
maxLength={2000}
placeholder="例如:\n周一至周五 17:00 - 22:30\n周末接受团体预约"
/>
</Form.Item>
<Form.Item
name="coverUrl"