From f51ac63e39d0d0760ea90a71332cd65a11c714ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 10 Dec 2024 21:02:48 +0800 Subject: [PATCH] add --- src/views/modules/wallet/index.vue | 75 +++++++++++++++++++----------- 1 file changed, 49 insertions(+), 26 deletions(-) diff --git a/src/views/modules/wallet/index.vue b/src/views/modules/wallet/index.vue index b8ca764..a1d6f98 100644 --- a/src/views/modules/wallet/index.vue +++ b/src/views/modules/wallet/index.vue @@ -104,7 +104,7 @@ - 查询
- + - + - + - +
@@ -184,16 +198,16 @@
总收入
- ¥{{ - TotalData.totalIncome ? TotalData.totalIncome : "0" - }} + ¥{{ TotalData.totalIncome ? TotalData.totalIncome : "0" }}
总支出
¥{{ - TotalData.totalExpenditure ? TotalData.totalExpenditure : "0" + TotalData.totalExpenditure + ? TotalData.totalExpenditure + : "0" }}
@@ -205,23 +219,24 @@
-
12月06日 周五
+
{{ item.billOrderTime }}
-
收入
-
+666
+
订单号:{{ item.billOrderNumber }}
+
订单状态:{{ getBillStatus(item.billStatus) }}
-
转账
-
余额:427
+
{{ item.billTypeName }}
+
余额:{{ item.amountAfterChange }}
@@ -243,7 +258,8 @@ export default { value1: [], userInfo: {}, tableData: [], - TotalData:{}, + TotalData: {}, + billList: [], query: { pageNumber: 1, pageSize: 10, @@ -264,21 +280,17 @@ export default { init() { console.log("1213"); this.$api.wallet.myWallet().then((res) => { - console.log(res); this.userInfo = res.data.data; }); this.$api.wallet.WithdrawalRecord(this.query).then((res) => { - console.log(res, "1122"); - this.tableData = res.data.data.data; }); - this.$api.wallet.totalAmount({amountChangeType:""}).then((res) => { - console.log(res); - this.TotalData = res.data.data - // this.total = res.data.data; + this.$api.wallet.totalAmount({ amountChangeType: "" }).then((res) => { + this.TotalData = res.data.data; }); this.$api.wallet.getBankInfo().then((res) => { - console.log(res); + console.log(res, "bull"); + this.billList = res.data.data.data; // this.total = res.data.data; }); }, @@ -337,6 +349,17 @@ export default { this.formInline.endCashOutTime = ""; } }, + getBillStatus(row) { + if (row == 1) { + return "待同步"; + } else if (row == 2) { + return "同步中"; + } else if (row == 3) { + return "同步成功"; + } else if (row == 4) { + return "同步失败"; + } + }, }, };