From 7ef86151033323e14c19d6e3ac87c14e7d5c4c56 Mon Sep 17 00:00:00 2001 From: sexygoat <1538832180@qq.com> Date: Wed, 15 Apr 2026 12:09:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=85=85=E5=80=BC?= =?UTF-8?q?=E6=8F=90=E9=86=92,=E9=92=B1=E5=8C=85=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/modules/wallet.js | 18 ++ pages/my-wallet/my-wallet.vue | 335 +++++++++++++++++++------- pages/package-order/package-order.vue | 28 ++- 3 files changed, 286 insertions(+), 95 deletions(-) diff --git a/api/modules/wallet.js b/api/modules/wallet.js index 502353c..e03ba51 100644 --- a/api/modules/wallet.js +++ b/api/modules/wallet.js @@ -34,6 +34,24 @@ export const walletApi = { }); }, + // 新的充值订单接口 + getRechargeOrders(identifier, page, page_size, status) { + return request({ + url: '/api/c/v1/recharge-orders', + method: 'GET', + data: { identifier, page, page_size, status } + }); + }, + + // 获取充值订单详情 + getRechargeOrderDetail(identifier, rechargeOrderId) { + return request({ + url: `/api/c/v1/recharge-orders/${rechargeOrderId}`, + method: 'GET', + data: { identifier } + }); + }, + getTransactions(identifier, page, page_size, params = {}) { return request({ url: '/api/c/v1/wallet/transactions', diff --git a/pages/my-wallet/my-wallet.vue b/pages/my-wallet/my-wallet.vue index 9a80bb1..1c63aa9 100644 --- a/pages/my-wallet/my-wallet.vue +++ b/pages/my-wallet/my-wallet.vue @@ -34,7 +34,8 @@ - + @@ -45,8 +46,9 @@ - {{ item.recharge_no }} - {{ item.status_name }} + {{ item.recharge_order_no || item.recharge_no }} + + {{ item.status_name }} @@ -59,7 +61,8 @@ 自动购包 - {{ item.auto_purchase_status === '1' ? '已开启' : '未开启' }} + + {{ getAutoPurchaseStatusText(item.auto_purchase_status) }} 创建时间 @@ -88,7 +91,8 @@ {{ item.type_name }} - + {{ item.amount >= 0 ? '+' : '' }}{{ formatMoney(item.amount) }} @@ -123,56 +127,53 @@ - - - - 账户充值 - × - - - - - ¥{{ formatDisplayMoney(item.label) }} + + + + + 账户充值 + × - - 自定义 + + + + ¥{{ formatDisplayMoney(item.label) }} + + + 自定义 + + + + + 请输入充值金额(元) + + + + + + - - - 请输入充值金额(元) - - - - - - - - - + +