const app = getApp() Page({ data: { billDetail: {} }, onLoad: function(options) { if (options.billInfo) { try { const billDetail = JSON.parse(decodeURIComponent(options.billInfo)); this.setData({ billDetail: billDetail }); } catch (e) { console.error('解析账单数据失败', e); wx.showToast({ title: '加载账单数据失败', icon: 'none' }); } } }, goBack: function() { wx.navigateBack(); }, getInvoice: function() { wx.showToast({ title: '开具发票功能开发中', icon: 'none' }); } })