21 lines
639 B
JavaScript
21 lines
639 B
JavaScript
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
|
|
const { openPage } = require("../../utils/navigation");
|
|
Page({
|
|
data: { brand: {}, presentation: {}, trustItems: [], loading: true },
|
|
onLoad() {
|
|
loadWorkspaceWithFallback()
|
|
.then((workspace) =>
|
|
this.setData({
|
|
brand: workspace.brand || {},
|
|
presentation: workspace.brand?.visualPresentation?.home || {},
|
|
trustItems: workspace.trustItems || [],
|
|
loading: false,
|
|
}),
|
|
)
|
|
.catch(() => this.setData({ loading: false }));
|
|
},
|
|
inquire() {
|
|
openPage("/pages/inquiry/index");
|
|
},
|
|
});
|