fix: 收敛模板编辑发布契约并还原餐饮页面视觉
This commit is contained in:
1 parent
20bcb43534
commit
f4061a24bd
102 files changed
+4510
-870
No files matched your search
@@ -4,7 +4,10 @@ const { openPage } = require("../../utils/navigation");
|
||||
Page({
|
||||
data: {
|
||||
brand: {},
|
||||
trustItems: [],
|
||||
credentials: [],
|
||||
cases: [],
|
||||
promises: [],
|
||||
presentation: {},
|
||||
records: [],
|
||||
error: "",
|
||||
},
|
||||
@@ -13,7 +16,19 @@ Page({
|
||||
.then((workspace) =>
|
||||
this.setData({
|
||||
brand: workspace.brand || {},
|
||||
trustItems: workspace.trustItems || [],
|
||||
presentation: workspace.brand?.visualPresentation?.profile || {},
|
||||
credentials: (workspace.trustItems || []).filter((item) => item.type === "credential"),
|
||||
cases: (workspace.trustItems || [])
|
||||
.filter((item) => item.type === "case")
|
||||
.map((item) => ({
|
||||
...item,
|
||||
entries: (item.config?.entries || []).map((entry, index) => ({
|
||||
...entry,
|
||||
index,
|
||||
tone: index % 3,
|
||||
})),
|
||||
})),
|
||||
promises: (workspace.trustItems || []).filter((item) => item.type === "promise"),
|
||||
records: [],
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user