diff --git a/net/api/invoiceApi.js b/net/api/invoiceApi.js
index 617c0f7..1609551 100644
--- a/net/api/invoiceApi.js
+++ b/net/api/invoiceApi.js
@@ -17,10 +17,10 @@ const apiPath = {
}
class InvoiceApi {
- static userId = Cache.get('userId')
//获取可以开具发票的订单
static doGetMineInvoiceOrderList(data, status) {
- const path = apiPath.mineInvoiceOrderList.replace('{userId}', this.userId).replace('{status}', status)
+ const userId = Cache.get('userId')
+ const path = apiPath.mineInvoiceOrderList.replace('{userId}', userId).replace('{status}', status)
return request(path, "GET", data, null, 'plug')
}
static doGetDicListByPId(id) {
@@ -29,12 +29,14 @@ class InvoiceApi {
}
//我的开票信息
static doGetMineInvoiceList(data) {
- const path = apiPath.mineInvoiceList.replace('{userId}', this.userId)
+ const userId = Cache.get('userId')
+ const path = apiPath.mineInvoiceList.replace('{userId}', userId)
return request(path, "GET", data, null, 'plug')
}
//保存我的开票信息
static doSaveMineInvoiceInfo(data) {
- const path = apiPath.saveInvoiceInfo.replace('{userId}', this.userId)
+ const userId = Cache.get('userId')
+ const path = apiPath.saveInvoiceInfo.replace('{userId}', userId)
return request(path, "POST", data, null, 'plug')
}
//编辑开票信息
@@ -49,7 +51,8 @@ class InvoiceApi {
}
//开票申请列表
static doGetInvoiceRecordList(data) {
- const path = apiPath.mineInvoiceRecordList.replace('{userId}', this.userId)
+ const userId = Cache.get('userId')
+ const path = apiPath.mineInvoiceRecordList.replace('{userId}', userId)
return request(path, "GET", data, null, 'plug')
}
//取消开票申请
@@ -59,7 +62,8 @@ class InvoiceApi {
}
//提交开票申请
static doSaveInvoiceRecord(data) {
- const path = apiPath.saveInvoiceRecord.replace('{userId}', this.userId)
+ const userId = Cache.get('userId')
+ const path = apiPath.saveInvoiceRecord.replace('{userId}', userId)
return request(path, "POST", data, null, 'plug')
}
//修改开票申请
diff --git a/pages/mine/mineAccount/invoiceOrder/invoiceOrder.wxml b/pages/mine/mineAccount/invoiceOrder/invoiceOrder.wxml
index cc7bcda..dbccb57 100644
--- a/pages/mine/mineAccount/invoiceOrder/invoiceOrder.wxml
+++ b/pages/mine/mineAccount/invoiceOrder/invoiceOrder.wxml
@@ -1,23 +1,9 @@
-
-
+
@@ -36,8 +22,8 @@
-
-
+
+
diff --git a/pages/mine/mineAccount/minePayRecord/minePayRecord.wxml b/pages/mine/mineAccount/minePayRecord/minePayRecord.wxml
index 9c2a146..ffa41f6 100644
--- a/pages/mine/mineAccount/minePayRecord/minePayRecord.wxml
+++ b/pages/mine/mineAccount/minePayRecord/minePayRecord.wxml
@@ -22,7 +22,7 @@
-
+