feat: 完成真实咨询提交闭环
This commit is contained in:
1 parent
16b0967dc5
commit
ba0069ae6d
9 files changed
+259
-70
No files matched your search
@@ -1 +1,13 @@
|
||||
Page({ data: { record: {} }, onLoad(options) { const records = wx.getStorageSync("linjingInquiryRecords") || []; this.setData({ record: records.find((item) => item.id === options.id) || records[0] || {} }); }, viewRecords() { wx.redirectTo({ url: "/pages/records/index" }); }, home() { wx.switchTab({ url: "/pages/index/index" }); } });
|
||||
Page({
|
||||
data: { record: {} },
|
||||
onLoad(options) {
|
||||
const record = wx.getStorageSync("latestInquirySubmission") || {};
|
||||
this.setData({ record: record.id === options.id ? record : {} });
|
||||
},
|
||||
viewRecords() {
|
||||
wx.redirectTo({ url: "/pages/records/index" });
|
||||
},
|
||||
home() {
|
||||
wx.switchTab({ url: "/pages/index/index" });
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user