From 60bafdfee839c31bc809c0a8ceb352747fb8771e Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 24 Jul 2023 15:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B4=A6=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pay.js | 7 +- pages.json | 2 +- subpkg/finance/finance.vue | 41 +++++++-- subpkg/orderDetail/orderDetail.vue | 129 +++++++++++++++++++++++++++-- 4 files changed, 166 insertions(+), 13 deletions(-) diff --git a/api/pay.js b/api/pay.js index ec15b28..2fec810 100644 --- a/api/pay.js +++ b/api/pay.js @@ -33,4 +33,9 @@ export const rechargeLists = (data) => oahttp.get('/recharge/lists', data) /** * 余额明细 */ -export const accountLogLists = (data) => oahttp.get('/account_log/lists', data) \ No newline at end of file +export const accountLogLists = (data) => oahttp.get('/account_log/lists', data) + +/** + * 月份统计 + */ +export const accountLogListsMonth = (data) => oahttp.get('/account_log/year_count', data) diff --git a/pages.json b/pages.json index d92a598..83b2e7e 100644 --- a/pages.json +++ b/pages.json @@ -231,7 +231,7 @@ }, { "path": "orderDetail/orderDetail", "style": { - "navigationBarTitleText": "订单详情", + "navigationBarTitleText": "账单详情", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#3175f9", "navigationBarTextStyle": "white" diff --git a/subpkg/finance/finance.vue b/subpkg/finance/finance.vue index 73dbe51..a107e03 100644 --- a/subpkg/finance/finance.vue +++ b/subpkg/finance/finance.vue @@ -47,7 +47,8 @@ 月账单 - + + 账单详情 @@ -55,8 +56,8 @@ - 收益金额(元){{item.change_amount}} - + 收益金额(元) + {{item.change_amount}} 支出金额:{{item.change_amount_desc<0?item.change_amount:'0.00'}} @@ -64,8 +65,28 @@ + + + + + + + 账单详情 + 账单日期:{{item.month}} + + + + 收益金额(元) + {{item.income}} + + + 支出金额:{{item.expenditure>0?item.expenditure:'0.00'}} + 入账金额:{{item.income>0?item.income:'0.00'}} + + + + - @@ -73,7 +94,7 @@