feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
@@ -5,14 +5,15 @@ Page({
|
||||
data: { brand: {}, presentation: {}, trustItems: [], offerings: [], error: "" },
|
||||
onLoad() {
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) =>
|
||||
.then((workspace) => {
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
presentation: workspace.brand?.visualPresentation?.home || {},
|
||||
trustItems: workspace.trustItems || [],
|
||||
offerings: workspace.offerings || [],
|
||||
}),
|
||||
)
|
||||
});
|
||||
wx.setNavigationBarTitle({ title: workspace.brand?.name || "品牌首页" });
|
||||
})
|
||||
.catch((error) => this.setData({ error: error.message }));
|
||||
},
|
||||
selectOffering(event) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "阿成校园餐",
|
||||
"navigationBarTitleText": "品牌首页",
|
||||
"usingComponents": {
|
||||
"acheng-home": "/components/templates/acheng-home/acheng-home"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user