修改发票详情参数undefined的问题
This commit is contained in:
parent
f8115cf724
commit
63cb2f8250
|
@ -8,6 +8,7 @@ Page({
|
|||
*/
|
||||
data: {
|
||||
detail: {},
|
||||
id: "",
|
||||
header: [
|
||||
{ key: 'time', title: '月份' },
|
||||
{ title: '电表地址',renderBody: (item) => item.meter.address },
|
||||
|
@ -26,12 +27,13 @@ Page({
|
|||
async getDetail(id) {
|
||||
const { code, message, data } = await getInvoiceInfoDetail(id);
|
||||
this.setData({
|
||||
detail: data
|
||||
detail: data,
|
||||
id
|
||||
})
|
||||
},
|
||||
jumpToInvoiceDetail() {
|
||||
wx.redirectTo({
|
||||
url: '/pages/invoiceDetail/index',
|
||||
url: '/pages/invoiceDetail/index?id=' + this.data.id,
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user