Page({ data: { ownertable: null, ownerid: null, detail: {}, tabbarList: [{ icon: "icon-bianji", label: "编辑" }, { icon: "icon-shanchu", label: "作废" }] }, onLoad(options) { this.setData({ ownertable: options.ownertable, ownerid: options.ownerid, detail: { ...wx.getStorageSync('temporary') } }) wx.removeStorage("temporary"); }, tabbarOnClick({ detail }) { const pages = getCurrentPages(), item = this.data.detail; switch (detail.label) { case "编辑": wx.navigateTo({ url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&content=${item.content}&type=${item.type}&sys_datafollowupid=${item.sys_datafollowupid}` }); break; case "作废": wx.navigateTo({ url: `/packageA/setclient/modules/trace/list/delete?item=${JSON.stringify({ "sys_datafollowupid": item.sys_datafollowupid, "ownertable": this.data.ownertable, "ownerid": this.data.ownerid })}`, }) break; } }, onShareAppMessage() {} })