feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
@@ -34,12 +34,14 @@ Page({
|
||||
formId: "",
|
||||
submitting: false,
|
||||
formError: "",
|
||||
presentation: {},
|
||||
},
|
||||
onLoad(options) {
|
||||
this.offeringId = options.offeringId || "";
|
||||
loadWorkspaceWithFallback()
|
||||
.then((workspace) => {
|
||||
this.forms = workspace.inquiryForms || [];
|
||||
this.setData({ presentation: workspace.brand?.visualPresentation?.inquiry || {} });
|
||||
this.selectForm();
|
||||
})
|
||||
.catch((error) => this.setData({ formError: error.message }));
|
||||
@@ -112,7 +114,7 @@ Page({
|
||||
wx.setStorageSync("latestInquirySubmission", result);
|
||||
this.setData({ submitting: false, subView: "history" });
|
||||
this.loadRecords();
|
||||
wx.showToast({ title: "已提交,阿成会尽快联系你", icon: "none" });
|
||||
wx.showToast({ title: "咨询已提交", icon: "none" });
|
||||
});
|
||||
const fail = (error) =>
|
||||
this.setData({ submitting: false, formError: error.message || "提交失败,请重试" });
|
||||
|
||||
Reference in new issue
Block a user