From d9f4574f336961aca9b234504eecd7ebd7862689 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 7 May 2026 00:48:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=A1=E8=B4=B9?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=98=BE=E7=A4=BA=E3=80=81=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E7=BB=84=E4=BB=B6=E5=92=8C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/admin/agent-apps/create.vue | 28 +++++++++---------- frontend/src/pages/admin/agent-apps/index.vue | 21 ++++---------- 2 files changed, 19 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/admin/agent-apps/create.vue b/frontend/src/pages/admin/agent-apps/create.vue index 2dcfaa6..82d9325 100644 --- a/frontend/src/pages/admin/agent-apps/create.vue +++ b/frontend/src/pages/admin/agent-apps/create.vue @@ -24,7 +24,7 @@ interface Application { interface CardType { id: number name: string - billing_type: string + recharge_type: string price: number } @@ -103,11 +103,10 @@ const enabledCardTypesCount = computed(() => { return form.value.card_types.filter(ct => ct.can_generate).length }) -function getBillingTypeText(type: string) { +function getRechargeTypeText(type: string) { const map: Record = { - subscription: '订阅', - time: '计时', - point: '点卡', + balance: '余额充值', + subscription: '订阅充值', } return map[type] || type } @@ -246,7 +245,7 @@ onMounted(() => { 卡类名称 - 计费类型 + 充值类型 原价 授权价格 @@ -271,21 +270,20 @@ onMounted(() => { - {{ getBillingTypeText(cardTypes[index]?.billing_type || '') }} + {{ getRechargeTypeText(cardTypes[index]?.recharge_type || '') }} ¥{{ cardTypes[index]?.price || 0 }} - + + + + + + + diff --git a/frontend/src/pages/admin/agent-apps/index.vue b/frontend/src/pages/admin/agent-apps/index.vue index e621811..b4dcd9b 100644 --- a/frontend/src/pages/admin/agent-apps/index.vue +++ b/frontend/src/pages/admin/agent-apps/index.vue @@ -1,5 +1,5 @@