From 4b0aab8a511a8510d2e6d4d13ffe4732a6f909a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E5=96=B5=E5=92=AA?= <15233722133@163.com>
Date: Mon, 28 Sep 2026 14:00:26 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E7=8E=B0=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E6=9D=83=E9=99=90=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/home/wallet.vue | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/pages/home/wallet.vue b/pages/home/wallet.vue
index 559fdf9..5528715 100644
--- a/pages/home/wallet.vue
+++ b/pages/home/wallet.vue
@@ -27,7 +27,7 @@
可提现金额
-
+
{{ $fen2yuan(money_obj?.withdrawAmount || 0) }}
@@ -105,11 +105,30 @@
return list;
});
+ const withdrawChannelEnabled = computed(() => {
+ const channels = Array.isArray(tradeChannelList.value) ? tradeChannelList.value : [];
+ const exact = channels.find(
+ (it) => String(it?.channelName || it?.name || '').trim() === '去提现'
+ );
+ if (exact) return Number(exact?.status) === 1;
+ const fuzzy = channels.find((it) => {
+ const name = String(it?.channelName || it?.name || '').trim();
+ return name.includes('去提现');
+ });
+ if (fuzzy) return Number(fuzzy?.status) === 1;
+ const anyWithdrawLike = channels.find((it) => {
+ const name = String(it?.channelName || it?.name || '').trim();
+ return name.includes('提现');
+ });
+ if (anyWithdrawLike) return Number(anyWithdrawLike?.status) === 1;
+ return !channels.length;
+ });
+
const fetchTradeChannels = async () => {
try {
const res = await incrementApi.getTradeChannelList();
if (res?.code === 0 && Array.isArray(res?.data)) {
- tradeChannelList.value = res.data.filter((it) => Number(it?.status) === 1);
+ tradeChannelList.value = res.data;
}
} catch (e) {}
};
@@ -137,6 +156,13 @@
fetchTradeChannels();
});
//充值提现弹框提示去跳转
+ function onWithdrawClick() {
+ showLiquidationMenu.value = false;
+ if (!withdrawChannelEnabled.value) {
+ return;
+ }
+ jumpPage('提现', '/pages/home/pay/withdraw');
+ }
function jumpPage(typeTxt, url) {
showLiquidationMenu.value = false;
uni.showModal({