From bfc56509586696ddbada0136f4f990b553c88dbe Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 23 Oct 2025 18:37:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8E=86=E5=8F=B2=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E9=A1=B5):=20=E5=AF=B9=E6=8E=A5=E8=8E=B7=E5=8F=96=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lottery.js | 12 +++++++++ src/views/Wallet/CashOut/Details.vue | 38 ++++++++++++++++++++-------- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/src/api/lottery.js b/src/api/lottery.js index e737c6a..1f4fd67 100644 --- a/src/api/lottery.js +++ b/src/api/lottery.js @@ -128,3 +128,15 @@ export const withdrawableAmount = async () => { throw error } } + +// 查询提现记录 +export const withdrawRecords = async () => { + try { + const response = await get(`/activity/lottery/withdraw/records`) + return response + } catch (error) { + console.error('Failed to fetch get my withdraw records:', error) + console.error('error:' + error.response.errorMsg) + throw error + } +} diff --git a/src/views/Wallet/CashOut/Details.vue b/src/views/Wallet/CashOut/Details.vue index 9b72334..f18f08c 100644 --- a/src/views/Wallet/CashOut/Details.vue +++ b/src/views/Wallet/CashOut/Details.vue @@ -9,7 +9,7 @@
Cash out
-
${{ item.Amount }}
+
${{ record.amount }}
-
{{ item.date }}
+
+ {{ formatUTCCustom(record.createTime) }} +
- {{ showStatus(item) }} + {{ showStatus(record) }}
@@ -53,12 +55,12 @@