zdxiangqing.js 658 B

1234567891011121314151617181920212223242526272829303132333435
  1. const app = getApp()
  2. Page({
  3. data: {
  4. billDetail: {}
  5. },
  6. onLoad: function(options) {
  7. if (options.billInfo) {
  8. try {
  9. const billDetail = JSON.parse(decodeURIComponent(options.billInfo));
  10. this.setData({
  11. billDetail: billDetail
  12. });
  13. } catch (e) {
  14. console.error('解析账单数据失败', e);
  15. wx.showToast({
  16. title: '加载账单数据失败',
  17. icon: 'none'
  18. });
  19. }
  20. }
  21. },
  22. goBack: function() {
  23. wx.navigateBack();
  24. },
  25. getInvoice: function() {
  26. wx.showToast({
  27. title: '开具发票功能开发中',
  28. icon: 'none'
  29. });
  30. }
  31. })