feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
<view class="page linjing-works"><view class="works-intro"><text class="eyebrow">{{presentation.worksEyebrow || 'SELECTED WORKS'}}</text><text class="title">{{presentation.worksTitle || '案例与体系'}}</text><text class="subtitle">{{presentation.subtitle || '从建筑入口到室内秩序,呈现每一扇门的完整构造。'}}</text></view><view class="category-line"><text wx:for="{{categories}}" wx:key="*this" class="category-tab {{activeCategory === item ? 'active' : ''}}" data-category="{{item}}" bindtap="chooseCategory">{{item}}</text></view><view wx:if="{{!visibleOfferings.length}}" class="empty">暂无该类别案例</view><view class="works-list"><view wx:for="{{visibleOfferings}}" wx:key="id" class="work" data-id="{{item.id}}" bindtap="open"><image src="{{item.image || item.coverUrl}}" mode="aspectFill"/><view class="work-copy"><text class="category">{{item.category || item.presentation.categoryLabel}}</text><text class="name">{{item.name}}</text><text class="series">{{item.series || item.summary}}</text><view class="meta"><text>{{item.area || 'PRIVATE RESIDENCE'}}</text><text>查看项目 →</text></view></view></view></view><view class="closing"><text>每一套门系统,都是建筑秩序的一部分。</text><text class="more" bindtap="more">预约一次私宅门系统沟通 →</text></view></view>
|
||||
<view class="page linjing-works"><view class="works-intro"><text class="eyebrow">{{presentation.worksEyebrow || 'SELECTED WORKS'}}</text><text class="title">{{presentation.worksTitle || '案例与体系'}}</text><text class="subtitle">{{presentation.subtitle}}</text></view><view class="category-line"><text wx:for="{{categories}}" wx:key="*this" class="category-tab {{activeCategory === item ? 'active' : ''}}" data-category="{{item}}" bindtap="chooseCategory">{{item}}</text></view><view wx:if="{{!visibleOfferings.length}}" class="empty">暂无该类别案例</view><view class="works-list"><view wx:for="{{visibleOfferings}}" wx:key="id" class="work" data-id="{{item.id}}" bindtap="open"><image src="{{item.image || item.coverUrl}}" mode="aspectFill"/><view class="work-copy"><text class="category">{{item.category || item.presentation.categoryLabel}}</text><text class="name">{{item.name}}</text><text class="series">{{item.series || item.summary}}</text><view class="meta"><text wx:if="{{item.area}}">{{item.area}}</text><text>查看项目 →</text></view></view></view></view><view wx:if="{{presentation.closingText || presentation.closingAction}}" class="closing"><text>{{presentation.closingText}}</text><text wx:if="{{presentation.closingAction}}" class="more" bindtap="more">{{presentation.closingAction}} →</text></view></view>
|
||||
@@ -17,7 +17,13 @@ Page({
|
||||
brand.homeHero && typeof brand.homeHero === "object" ? brand.homeHero : {};
|
||||
this.setData({
|
||||
brand,
|
||||
trustContent: workspace.trustPresentation || {},
|
||||
trustContent: {
|
||||
...(workspace.trustPresentation || {}),
|
||||
bio:
|
||||
workspace.trustPresentation?.bio ||
|
||||
(workspace.trustItems || []).find((item) => item.type === "credential")?.content ||
|
||||
"",
|
||||
},
|
||||
offerings,
|
||||
hero: {
|
||||
...this.data.hero,
|
||||
@@ -26,6 +32,7 @@ Page({
|
||||
title: (offerings[0] && offerings[0].name) || brand.name,
|
||||
slogan: brand.description || "",
|
||||
...configuredHero,
|
||||
image: brand.heroImage || "",
|
||||
},
|
||||
});
|
||||
wx.setNavigationBarTitle({ title: brand.name || "个人品牌" });
|
||||
|
||||
@@ -199,17 +199,163 @@
|
||||
"label": "信任介绍标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "proofEyebrow",
|
||||
"binding": "brand.config.visualPresentation.home.proofEyebrow",
|
||||
"label": "信任介绍小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "manifestoEyebrow",
|
||||
"binding": "brand.config.visualPresentation.home.manifestoEyebrow",
|
||||
"label": "品牌主张小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "manifestoTitle",
|
||||
"binding": "brand.config.visualPresentation.home.manifestoTitle",
|
||||
"label": "品牌主张",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksEyebrow",
|
||||
"binding": "brand.config.visualPresentation.home.worksEyebrow",
|
||||
"label": "代表案例小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksTitle",
|
||||
"binding": "brand.config.visualPresentation.home.worksTitle",
|
||||
"label": "代表案例标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksAction",
|
||||
"binding": "brand.config.visualPresentation.home.worksAction",
|
||||
"label": "查看案例入口",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "flowEyebrow",
|
||||
"binding": "brand.config.visualPresentation.home.flowEyebrow",
|
||||
"label": "合作流程小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "flowTitle",
|
||||
"binding": "brand.config.visualPresentation.home.flowTitle",
|
||||
"label": "项目流程标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "heroTitle",
|
||||
"binding": "brand.config.homeHero.title",
|
||||
"label": "首页主标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "heroEyebrow",
|
||||
"binding": "brand.config.homeHero.eyebrow",
|
||||
"label": "主图项目标注",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "heroDescription",
|
||||
"binding": "brand.config.homeHero.slogan",
|
||||
"label": "首页主图说明",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "heroAction",
|
||||
"binding": "brand.config.homeHero.cta",
|
||||
"label": "主图行动文字",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "profileDetails",
|
||||
"title": "服务区域与履约说明",
|
||||
"description": "在主理人与我页面说明可服务的地区和真实履约承诺。",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
"key": "coverage",
|
||||
"binding": "brand.config.profilePresentation.coverage",
|
||||
"label": "服务区域",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "title", "label": "区域名称" },
|
||||
{ "key": "content", "label": "服务说明", "input": "textarea" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "warranty",
|
||||
"binding": "brand.config.profilePresentation.warranty",
|
||||
"label": "履约与维护说明",
|
||||
"input": "list",
|
||||
"itemValueKey": "value",
|
||||
"itemFields": [{ "key": "value", "label": "承诺内容", "input": "textarea" }]
|
||||
},
|
||||
{
|
||||
"key": "recordsTitle",
|
||||
"binding": "brand.config.visualPresentation.profile.recordsTitle",
|
||||
"label": "咨询记录入口标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "recordsSubtitle",
|
||||
"binding": "brand.config.visualPresentation.profile.recordsSubtitle",
|
||||
"label": "咨询记录入口说明",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "coverageTitle",
|
||||
"binding": "brand.config.visualPresentation.profile.coverageTitle",
|
||||
"label": "服务区域标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "warrantyTitle",
|
||||
"binding": "brand.config.visualPresentation.profile.warrantyTitle",
|
||||
"label": "履约说明标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "phoneLabel",
|
||||
"binding": "brand.config.visualPresentation.profile.phoneLabel",
|
||||
"label": "电话标签",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "wechatLabel",
|
||||
"binding": "brand.config.visualPresentation.profile.wechatLabel",
|
||||
"label": "微信标签",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "addressLabel",
|
||||
"binding": "brand.config.visualPresentation.profile.addressLabel",
|
||||
"label": "地址标签",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "callAction",
|
||||
"binding": "brand.config.visualPresentation.profile.callAction",
|
||||
"label": "拨打电话按钮",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "copyAction",
|
||||
"binding": "brand.config.visualPresentation.profile.copyAction",
|
||||
"label": "复制微信按钮",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "recordsCountUnit",
|
||||
"binding": "brand.config.visualPresentation.profile.recordsCountUnit",
|
||||
"label": "记录数量单位",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -237,6 +383,18 @@
|
||||
"label": "案例页说明",
|
||||
"input": "textarea",
|
||||
"maxLength": 140
|
||||
},
|
||||
{
|
||||
"key": "closingText",
|
||||
"binding": "brand.config.visualPresentation.offerings.closingText",
|
||||
"label": "案例页结语",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "closingAction",
|
||||
"binding": "brand.config.visualPresentation.offerings.closingAction",
|
||||
"label": "案例页咨询入口",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -264,6 +422,228 @@
|
||||
"binding": "brand.config.visualPresentation.inquiry.submitLabel",
|
||||
"label": "提交按钮文字",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "eyebrow",
|
||||
"binding": "brand.config.visualPresentation.inquiry.eyebrow",
|
||||
"label": "咨询页小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "note",
|
||||
"binding": "brand.config.visualPresentation.inquiry.note",
|
||||
"label": "咨询前提示",
|
||||
"input": "textarea"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "projectDetail",
|
||||
"title": "案例详情",
|
||||
"description": "以下内容分别填写在每个案例中,空白内容不会展示。",
|
||||
"target": "offering",
|
||||
"fields": [
|
||||
{
|
||||
"key": "categoryLabel",
|
||||
"binding": "offering.config.categoryLabel",
|
||||
"label": "案例类别",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "detailHero",
|
||||
"binding": "offering.config.detailHero",
|
||||
"label": "详情主图",
|
||||
"input": "image"
|
||||
},
|
||||
{
|
||||
"key": "area",
|
||||
"binding": "offering.config.area",
|
||||
"label": "项目地点",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "series",
|
||||
"binding": "offering.config.series",
|
||||
"label": "产品系列",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "spaceType",
|
||||
"binding": "offering.config.spaceType",
|
||||
"label": "适用空间",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "background",
|
||||
"binding": "offering.config.details.background",
|
||||
"label": "项目背景",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "designConcept",
|
||||
"binding": "offering.config.details.designConcept",
|
||||
"label": "设计理念",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "keywords",
|
||||
"binding": "offering.config.keywords",
|
||||
"label": "项目关键词",
|
||||
"input": "list",
|
||||
"itemValueKey": "value",
|
||||
"itemFields": [{ "key": "value", "label": "关键词" }]
|
||||
},
|
||||
{
|
||||
"key": "crafts",
|
||||
"binding": "offering.config.details.crafts",
|
||||
"label": "工艺要点",
|
||||
"input": "list",
|
||||
"itemValueKey": "value",
|
||||
"itemFields": [{ "key": "value", "label": "工艺说明" }]
|
||||
},
|
||||
{
|
||||
"key": "materialsList",
|
||||
"binding": "offering.config.details.materialsList",
|
||||
"label": "材料说明",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "name", "label": "材料名称" },
|
||||
{ "key": "spec", "label": "规格说明" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "detailCopy",
|
||||
"title": "详情页说明",
|
||||
"description": "说明案例内容、价格与咨询后的真实处理方式。",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
"key": "priceLabel",
|
||||
"binding": "brand.config.visualPresentation.detail.priceLabel",
|
||||
"label": "价格说明标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "spaceLabel",
|
||||
"binding": "brand.config.visualPresentation.detail.spaceLabel",
|
||||
"label": "适用空间标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "backgroundTitle",
|
||||
"binding": "brand.config.visualPresentation.detail.backgroundTitle",
|
||||
"label": "项目背景标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "conceptTitle",
|
||||
"binding": "brand.config.visualPresentation.detail.conceptTitle",
|
||||
"label": "设计理念标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "craftsTitle",
|
||||
"binding": "brand.config.visualPresentation.detail.craftsTitle",
|
||||
"label": "工艺要点标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "materialsTitle",
|
||||
"binding": "brand.config.visualPresentation.detail.materialsTitle",
|
||||
"label": "材料说明标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "inquiryAction",
|
||||
"binding": "brand.config.visualPresentation.detail.inquiryAction",
|
||||
"label": "咨询按钮文字",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "inquiryHint",
|
||||
"binding": "brand.config.visualPresentation.detail.inquiryHint",
|
||||
"label": "咨询后的处理说明",
|
||||
"help": "只填写能兑现的服务安排。",
|
||||
"input": "textarea"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "successCopy",
|
||||
"title": "提交成功页",
|
||||
"description": "访客提交后看到的确认信息与后续预期。",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
"key": "eyebrow",
|
||||
"binding": "brand.config.visualPresentation.success.eyebrow",
|
||||
"label": "页面小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "title",
|
||||
"binding": "brand.config.visualPresentation.success.title",
|
||||
"label": "确认标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "intro",
|
||||
"binding": "brand.config.visualPresentation.success.intro",
|
||||
"label": "后续联系说明",
|
||||
"help": "回复时间必须与实际承诺一致。",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "recordsAction",
|
||||
"binding": "brand.config.visualPresentation.success.recordsAction",
|
||||
"label": "查看记录按钮",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "homeAction",
|
||||
"binding": "brand.config.visualPresentation.success.homeAction",
|
||||
"label": "返回首页按钮",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "recordsCopy",
|
||||
"title": "咨询记录页",
|
||||
"description": "访客查看咨询状态时看到的内容。",
|
||||
"target": "brand",
|
||||
"fields": [
|
||||
{
|
||||
"key": "title",
|
||||
"binding": "brand.config.visualPresentation.records.title",
|
||||
"label": "记录页标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "createAction",
|
||||
"binding": "brand.config.visualPresentation.records.createAction",
|
||||
"label": "新增咨询按钮",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "emptyTitle",
|
||||
"binding": "brand.config.visualPresentation.records.emptyTitle",
|
||||
"label": "暂无记录标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "emptyDescription",
|
||||
"binding": "brand.config.visualPresentation.records.emptyDescription",
|
||||
"label": "暂无记录说明",
|
||||
"input": "textarea"
|
||||
},
|
||||
{
|
||||
"key": "emptyAction",
|
||||
"binding": "brand.config.visualPresentation.records.emptyAction",
|
||||
"label": "空状态按钮",
|
||||
"input": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -291,6 +671,40 @@
|
||||
"type": "credential",
|
||||
"label": "专业资历与方法",
|
||||
"help": "填写经验、资质、专业标准或工作方法。",
|
||||
"configFields": [
|
||||
{
|
||||
"key": "stats",
|
||||
"binding": "trust.config.stats",
|
||||
"label": "信任数据",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "value", "label": "数字或成果" },
|
||||
{ "key": "label", "label": "说明" },
|
||||
{ "key": "sub", "label": "补充说明", "required": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "pillars",
|
||||
"binding": "trust.config.pillars",
|
||||
"label": "专业方法",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "title", "label": "方法名称" },
|
||||
{ "key": "desc", "label": "方法说明" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"key": "serviceFlow",
|
||||
"binding": "trust.config.serviceFlow",
|
||||
"label": "合作流程",
|
||||
"input": "list",
|
||||
"itemFields": [
|
||||
{ "key": "step", "label": "步骤编号" },
|
||||
{ "key": "name", "label": "步骤名称" },
|
||||
{ "key": "desc", "label": "步骤说明" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
{ "type": "case", "label": "项目案例与客户反馈", "help": "填写代表性项目、成果或客户评价。" },
|
||||
|
||||
Reference in new issue
Block a user