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) }}