feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
@@ -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 || "个人品牌" });
|
||||
|
||||
Reference in new issue
Block a user