123456789101112131415161718192021222324252627282930313233343536 |
- 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'
- });
- }
- })
|