fix: 收敛模板编辑发布契约并还原餐饮页面视觉
This commit is contained in:
1 parent
20bcb43534
commit
f4061a24bd
102 files changed
+4510
-870
No files matched your search
@@ -208,6 +208,20 @@ export interface TemplatePackageManifest {
|
||||
required: boolean;
|
||||
description: string;
|
||||
}[];
|
||||
templateFields?: readonly {
|
||||
key: string;
|
||||
page?: string;
|
||||
binding?: string;
|
||||
label: string;
|
||||
help?: string;
|
||||
input: string;
|
||||
itemFields?: readonly { key: string; label: string; input?: string; required?: boolean }[];
|
||||
itemValueKey?: string;
|
||||
required?: boolean;
|
||||
maxLength?: number;
|
||||
placeholder?: string;
|
||||
options?: readonly { value: string; label: string }[];
|
||||
}[];
|
||||
assetSlots: readonly {
|
||||
key: string;
|
||||
binding: string;
|
||||
@@ -236,9 +250,18 @@ export interface TemplatePackageManifest {
|
||||
trustContentTypes?: readonly {
|
||||
type: string;
|
||||
label: string;
|
||||
adminFields: {
|
||||
title: string;
|
||||
summary: string;
|
||||
content: string;
|
||||
summaryHelp?: string;
|
||||
summaryPlaceholder?: string;
|
||||
};
|
||||
help?: string;
|
||||
placeholder?: string;
|
||||
required?: boolean;
|
||||
maxPublishedItems?: number;
|
||||
hideStandardFields?: readonly ("summary" | "content")[];
|
||||
configFields?: readonly {
|
||||
key: string;
|
||||
binding: string;
|
||||
@@ -246,6 +269,7 @@ export interface TemplatePackageManifest {
|
||||
input: string;
|
||||
itemFields?: readonly { key: string; label: string; input?: string; required?: boolean }[];
|
||||
itemValueKey?: string;
|
||||
required?: boolean;
|
||||
}[];
|
||||
}[];
|
||||
sampleContent?: Partial<Record<BrandTemplateKey, TemplateSampleContent>>;
|
||||
@@ -287,13 +311,20 @@ export function validateTemplatePackageManifest(manifest: TemplatePackageManifes
|
||||
|
||||
export interface TemplateSampleContent {
|
||||
templateKey: BrandTemplateKey;
|
||||
inquiryFormName: string;
|
||||
offerings: Array<{
|
||||
kind: "service" | "product" | "package" | "subscription";
|
||||
name: string;
|
||||
summary: string;
|
||||
categoryKey: string;
|
||||
}>;
|
||||
trustContent: Array<{ type: string; title: string; content: string; summary?: string }>;
|
||||
trustContent: Array<{
|
||||
type: string;
|
||||
title: string;
|
||||
content: string;
|
||||
summary?: string;
|
||||
config?: Record<string, unknown>;
|
||||
}>;
|
||||
fields: Array<{
|
||||
key: string;
|
||||
label: string;
|
||||
@@ -306,6 +337,7 @@ export interface TemplateSampleContent {
|
||||
|
||||
const doorsSampleContent: TemplateSampleContent = {
|
||||
templateKey: "doors",
|
||||
inquiryFormName: "门系统咨询表单",
|
||||
offerings: [
|
||||
{
|
||||
kind: "product",
|
||||
@@ -349,6 +381,7 @@ const doorsSampleContent: TemplateSampleContent = {
|
||||
|
||||
const foodSampleContent: TemplateSampleContent = {
|
||||
templateKey: "food",
|
||||
inquiryFormName: "餐品预订与定制表单",
|
||||
offerings: [
|
||||
{
|
||||
kind: "package",
|
||||
@@ -377,6 +410,7 @@ const foodSampleContent: TemplateSampleContent = {
|
||||
|
||||
const personalSampleContent: TemplateSampleContent = {
|
||||
templateKey: "personal",
|
||||
inquiryFormName: "合作咨询表单",
|
||||
offerings: [
|
||||
{
|
||||
kind: "service",
|
||||
|
||||
Reference in new issue
Block a user