From fc8d5dc12a6bd923d46391e07ad0b3ce1736d53e Mon Sep 17 00:00:00 2001 From: zhx Date: Tue, 12 May 2026 14:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E7=90=86=E4=B8=AD=E5=BF=83=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/api/legacy/pay.ts | 18 + apps/src/router/routes/modules/payment.ts | 6 + .../views/operate/binance-recharge-config.vue | 368 ++++++++++++++++++ apps/src/views/team/manager-list.vue | 6 +- 4 files changed, 397 insertions(+), 1 deletion(-) create mode 100644 apps/src/views/operate/binance-recharge-config.vue diff --git a/apps/src/api/legacy/pay.ts b/apps/src/api/legacy/pay.ts index 0465f04..1c8755d 100644 --- a/apps/src/api/legacy/pay.ts +++ b/apps/src/api/legacy/pay.ts @@ -1,6 +1,24 @@ import { requestClient } from '#/api/request'; import type { LegacyPageResult } from '#/api/legacy/system'; +const BINANCE_RECHARGE_BASE = '/go/payment/binance'; + +export async function getBinanceRechargeConfig(sysOrigin: string) { + return requestClient.get>( + `${BINANCE_RECHARGE_BASE}/config`, + { + params: { sysOrigin }, + }, + ); +} + +export async function saveBinanceRechargeConfig(data: Record) { + return requestClient.post>( + `${BINANCE_RECHARGE_BASE}/config/save`, + data, + ); +} + export async function listPayOpenCountry() { return requestClient.get>>( '/sys-pay-open-country/list', diff --git a/apps/src/router/routes/modules/payment.ts b/apps/src/router/routes/modules/payment.ts index e9a8992..fa2a06a 100644 --- a/apps/src/router/routes/modules/payment.ts +++ b/apps/src/router/routes/modules/payment.ts @@ -25,6 +25,12 @@ const routes: RouteRecordRaw[] = [ component: () => import('#/views/operate/pay-country.vue'), meta: { title: '开通支付国家' }, }, + { + name: 'BinanceRechargeConfig', + path: 'binance/config', + component: () => import('#/views/operate/binance-recharge-config.vue'), + meta: { title: '币安配置' }, + }, { name: 'RegionRelation', path: 'region/relation', diff --git a/apps/src/views/operate/binance-recharge-config.vue b/apps/src/views/operate/binance-recharge-config.vue new file mode 100644 index 0000000..b1cab44 --- /dev/null +++ b/apps/src/views/operate/binance-recharge-config.vue @@ -0,0 +1,368 @@ + + + + + diff --git a/apps/src/views/team/manager-list.vue b/apps/src/views/team/manager-list.vue index d88ce41..d64bec9 100644 --- a/apps/src/views/team/manager-list.vue +++ b/apps/src/views/team/manager-list.vue @@ -71,6 +71,10 @@ const canEdit = computed(() => hasPermission('team:manager:list:edit')); const canDelete = computed(() => hasPermission('team:manager:list:del')); const showOperationCol = computed(() => canEdit.value || canDelete.value); +function getUserShortId(profile?: Record | null) { + return profile?.actualAccount || profile?.account || profile?.id || '-'; +} + async function loadData(reset = false) { if (reset) { query.cursor = 1; @@ -170,7 +174,7 @@ loadData(true);
{{ record.userProfile?.userNickname || '-' }} - 短ID:{{ record.userProfile?.actualAccount || '-' }} + 短ID:{{ getUserShortId(record.userProfile) }}